複製鏈接
請複製以下鏈接發送給好友

GetStartupInfo

鎖定
Windows API函數。 該函數取得進程在啓動時被指定的 STARTUPINFO 結構。
中文名
GetStartupInfo
庫文件
kernel32.lib
Windows CE
不支持
頭文件
winbase.h.

GetStartupInfo基本信息

GetStartupInfo 函數取得在進程啓動時被指定的STARTUPINFO 結構
The GetStartupInfo function retrieves the contents of the STARTUPINFO structure that was specified when the calling process was created.
函數原型
VOID GetStartupInfo(
LPSTARTUPINFO lpStartupInfo // address of STARTUPINFO structure
);
Parameters參數
lpStartupInfo
Pointer to a STARTUPINFO structure that is filled in by the function.
一個指向用來存放要獲取的 STARTUPINFO 結構的指針。
Return Values返回值
This function does not return a value.
該函數無返回值。
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.
該STARTUPINFO結構由當前進程的父進程指定。它可用於指定在當前進程的主窗口的相關屬性。
QuickInfo
Windows NT: 要求3.1或更高版本
Windows: 要求windows 95或更高版本
Windows CE: 不支持。
頭文件 winbase.h.
庫文件 kernel32.lib
Unicode 在Windows NT上有Unicode 和 ANSI 兩個版本

GetStartupInfoGetStartupInfoA

VB聲明
Declare Sub GetStartupInfo Lib "kernel32" Alias "GetStartupInfoA" (lpStartupInfo As STARTUPINFO)
説明 獲取一個進程的啓動信息
參數表 參數 類型及説明 lpStartupInfo STARTUPINFO,指定一個STARTUPINFO結構,用於最終載入進程的啓動信息
易語言聲明
.版本 2
.DLL命令 GetStartupInfoA, 整數型, "kernel32", "GetStartupInfoA", , 獲取啓動信息
.參數 lpStartupInfo, STARTUPINFO, 傳址, 啓動信息