Desktop Functions:

   Smart Device Functions:

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

Terms of Use
Privacy Policy
STARTUPINFO (Structures)

C# Definition:

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct STARTUPINFOEX
     public STARTUPINFO StartupInfo;
     public IntPtr lpAttributeList;

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
     public Int32 cb;
     public string lpReserved;
     public string lpDesktop;
     public string lpTitle;
     public Int32 dwX;
     public Int32 dwY;
     public Int32 dwXSize;
     public Int32 dwYSize;
     public Int32 dwXCountChars;
     public Int32 dwYCountChars;
     public Int32 dwFillAttribute;
     public Int32 dwFlags;
     public Int16 wShowWindow;
     public Int16 cbReserved2;
     public IntPtr lpReserved2;
     public IntPtr hStdInput;
     public IntPtr hStdOutput;
     public IntPtr hStdError;

VB Definition:

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure STARTUPINFOEX
   Public StartupInfo As STARTUPINFO
   Public lpAttributeList As IntPtr
End Structure

  <StructLayout(LayoutKind.Sequential)> _
  Public Structure STARTUPINFO
   Public cb As Integer
   Public lpReserved As String
   Public lpDesktop As String
   Public lpTitle As String
   Public dwX As Integer
   Public dwY As Integer
   Public dwXSize As Integer
   Public dwYSize As Integer
   Public dwXCountChars As Integer
   Public dwYCountChars As Integer
   Public dwFillAttribute As Integer
   Public dwFlags As Integer
   Public wShowWindow As Short
   Public cbReserved2 As Short
   Public lpReserved2 As Integer
   Public hStdInput As Integer
   Public hStdOutput As Integer
   Public hStdError As Integer
  End Structure

User-Defined Field Types:



See CreateProcess and InitializeProcThreadAttributeList,UpdateProcThreadAttribute

Do not forget to set the size of your object after filling in the attributes, before calling CreateProcess

        startupInfoEx.StartupInfo.cb = Marshal.SizeOf(startupInfoEx);


Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

Access directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version