Desktop Functions: Smart Device Functions:
|
Search Results for "GetStartupInfo" in [All]kernel32
[DllImport("kernel32.dll",EntryPoint="GetStartupInfoW")]
static extern void GetStartupInfo(out STARTUPINFO lpStartupInfo);
Declare Sub GetStartupInfo Lib "kernel32.dll" (<Out> ByRef _ Because .NET is in Unicode, one needs to call the wide character version of this call GetStartupInfoW. On my W10x64 my vshost.exe died by caling the GetStartupInfoW method. So i changed it to GetStartupInfoA and also changed the 'STARTUPINFO's StructureLayout-Attribute to CharSet.Ansi instead of Unicode.
[DllImport("kernel32.dll", SetLastError = true, EntryPoint = "GetStartupInfoA")]
public static extern void GetStartupInfo(out STARTUPINFO lpStartupInfo); |