예제 #1
0
 public static extern uint LeCreateProcess(ref LEB leb,
                                           [MarshalAs(UnmanagedType.LPWStr), In] string applicationName,
                                           [MarshalAs(UnmanagedType.LPWStr), In] string commandLine,
                                           [MarshalAs(UnmanagedType.LPWStr), In] string currentDirectory,
                                           ulong creationFlags,
                                           IntPtr startupInfo,
                                           IntPtr processInformation,
                                           IntPtr processAttributes,
                                           IntPtr threadAttributes,
                                           IntPtr environment,
                                           IntPtr token);
예제 #2
0
        internal LoaderWrapper(string applicationName, string commandLine, string currentDirectory)
        {
            ApplicationName  = applicationName;
            CommandLine      = commandLine;
            CurrentDirectory = currentDirectory;

            _leb = new LEB
            {
                AnsiCodePage   = 932,
                OemCodePage    = 932,
                LocaleID       = 0x411,
                DefaultCharset = 128,
                // As we have abandoned the "default font" parameter,
                // we decide to put here some empty bytes.
                DefaultFaceName = new byte[64],
            };
            Timezone = "Tokyo Standard Time";
        }
예제 #3
0
        internal LoaderWrapper(string applicationName, string commandLine, string currentDirectory)
        {
            ApplicationName = applicationName;
            CommandLine = commandLine;
            CurrentDirectory = currentDirectory;

            _leb = new LEB
                {
                    AnsiCodePage = 932,
                    OemCodePage = 932,
                    LocaleID = 0x411,
                    DefaultCharset = 128,
                    DefaultFaceName = SetBytes(new byte[64], Encoding.Unicode.GetBytes("MS Gothic")),
                    Timezone =
                        {
                            Bias = -540,
                            DaylightBias = 0,
                            StandardName = SetBytes(new byte[64], Encoding.Unicode.GetBytes("@tzres.dll,-632")),
                            DaylightName = SetBytes(new byte[64], Encoding.Unicode.GetBytes("@tzres.dll,-631"))
                        }
                };
        }
예제 #4
0
        internal LoaderWrapper(string applicationName, string commandLine, string currentDirectory)
        {
            ApplicationName  = applicationName;
            CommandLine      = commandLine;
            CurrentDirectory = currentDirectory;

            _leb = new LEB
            {
                AnsiCodePage    = 932,
                OemCodePage     = 932,
                LocaleID        = 0x411,
                DefaultCharset  = 128,
                DefaultFaceName = SetBytes(new byte[64], Encoding.Unicode.GetBytes("MS Gothic")),
                Timezone        =
                {
                    Bias         =                  -540,
                    DaylightBias =                     0,
                    StandardName = SetBytes(new byte[64],Encoding.Unicode.GetBytes("@tzres.dll,-632")),
                    DaylightName = SetBytes(new byte[64],Encoding.Unicode.GetBytes("@tzres.dll,-631"))
                }
            };
        }
        internal LoaderWrapper(string applicationName, string commandLine, string currentDirectory)
        {
            ApplicationName  = applicationName;
            CommandLine      = commandLine;
            CurrentDirectory = currentDirectory;

            _leb = new LEB
            {
                AnsiCodePage   = 932,
                OemCodePage    = 932,
                LocaleID       = 0x411,
                DefaultCharset = 128,
                // As we have abandoned the "default font" parameter,
                // we decide to put here some empty bytes.
                DefaultFaceName = new byte[64],
                Timezone        =
                {
                    Bias         =                  -540,
                    DaylightBias =                     0,
                    StandardName = SetBytes(new byte[64],Encoding.Unicode.GetBytes("@tzres.dll,-632")),
                    DaylightName = SetBytes(new byte[64],Encoding.Unicode.GetBytes("@tzres.dll,-631"))
                }
            };
        }
예제 #6
0
        internal LoaderWrapper(string applicationName, string commandLine, string currentDirectory)
        {
            ApplicationName = applicationName;
            CommandLine = commandLine;
            CurrentDirectory = currentDirectory;

            _leb = new LEB
                   {
                       AnsiCodePage = 932,
                       OemCodePage = 932,
                       LocaleID = 0x411,
                       DefaultCharset = 128,
                       // As we have abandoned the "default font" parameter,
                       // we decide to put here some empty bytes.
                       DefaultFaceName = new byte[64],
                       Timezone =
                       {
                           Bias = -540,
                           DaylightBias = 0,
                           StandardName = SetBytes(new byte[64], Encoding.Unicode.GetBytes("@tzres.dll,-632")),
                           DaylightName = SetBytes(new byte[64], Encoding.Unicode.GetBytes("@tzres.dll,-631"))
                       }
                   };
        }
예제 #7
0
 public static extern uint LeCreateProcess(ref LEB leb,
                                           [MarshalAs(UnmanagedType.LPWStr), In] string applicationName,
                                           [MarshalAs(UnmanagedType.LPWStr), In] string commandLine,
                                           [MarshalAs(UnmanagedType.LPWStr), In] string currentDirectory,
                                           ulong creationFlags,
                                           IntPtr startupInfo,
                                           IntPtr processInformation,
                                           IntPtr processAttributes,
                                           IntPtr threadAttributes,
                                           IntPtr environment,
                                           IntPtr token);