Expand Minimize

GetStartupInfo function

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

Syntax


VOID WINAPI GetStartupInfo(
  _Out_  LPSTARTUPINFO lpStartupInfo
);

Parameters

lpStartupInfo [out]

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]

Header

WinBase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

Unicode and ANSI names

GetStartupInfoW (Unicode) and GetStartupInfoA (ANSI)

See also

CreateProcess
Process and Thread Functions
Processes
STARTUPINFO

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.