GetStartupInfo

  VOID GetStartupInfo(lpStartupInfo)    
  LPSTARTUPINFO lpStartupInfo; /* address of startup structure */

The GetStartupInfo function retrieves startup information for the current process.

Parameters

lpStartupInfo

Points to a STARTUPINFO structure that will be filled in by the function.

The STARTUPINFO structure has the following format:

typedef struct _STARTUPINFO { /* si */

DWORD cb;

LPTSTR lpReserved;

LPTSTR lpDesktop;

LPSTR lpTitle;

DWORD dwX;

DWORD dwY;

DWORD dwXSize;

DWORD dwYSize;

DWORD dwXCountChars;

DWORD dwYCountChars;

DWORD dwFillAttribute;

DWORD dwFlags;

WORD wShowWindow;

WORD cbReserved2;

LPBYTE lpReserved2;

} STARTUPINFO, *LPSTARTUPINFO;

Return Value

This function does not return a value.

Comments

The GetStartupInfo function may be used as either a wide-character function (where text arguments must use Unicode) or an ANSI function (where text arguments must use characters from the Windows 3.x character set installed).

See Also

GetCommandLine, CreateProcess, GetEnvironmentVariable, SetEnvironmentVariable, STARTUPINFO