Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "GetStartupInfo" in [All]

kernel32

.
Summary
.

[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);

.
Documentation
[GetStartupInfo] on MSDN

 
Access PInvoke.net directly from VS: