GetStartupInfoA function

Retrieves the contents of the STARTUPINFO structure that was specified when the calling process was created.

Syntax

void GetStartupInfoA(
  LPSTARTUPINFOA lpStartupInfo
);

Parameters

lpStartupInfo

A pointer to a STARTUPINFO structure that receives the startup information.

Return Value

This function does not return a value.

If an error occurs, the ANSI version of this function (GetStartupInfoA) can raise an exception. The Unicode version (GetStartupInfoW) does not fail.

Remarks

The STARTUPINFO structure was specified by the process that created the calling process. It can be used to specify properties associated with the main window of the calling process.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header winbase.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll

See Also

CreateProcess

Process and Thread Functions

Processes

STARTUPINFO