-
EnumWindowStations
鎖定
EnumWindowStations (MSDN)
Enumerates all window stations in the current session. The function passes the name of each window station, in turn, to an application-defined callback function.
BOOL WINAPI EnumWindowStations(
__in WINSTAENUMPROC lpEnumFunc,
__in LPARAM lParam );Parameters
- 外文名
- EnumWindowStations
- 屬 性
- 英語單詞
目錄
- 1 單詞簡介
- ▪ Return Value
- ▪ Remarks
- 2 Requirements
EnumWindowStations單詞簡介
lpEnumFunc
A pointer to an application-defined EnumWindowStationProc callback function.
lParam
An application-defined value to be passed to the callback function.
EnumWindowStationsReturn Value
If the function succeeds, it returns the nonzero value returned by the callback function that was pointed to by lpEnumFunc.
If the function is unable to perform the enumeration, the return value is zero. Call GetLastError to get extended error information.
If the callback function fails, the return value is zero. The callback function can call SetLastError to set an error code for the caller to retrieve by calling GetLastError
EnumWindowStationsRemarks
The EnumWindowStations function enumerates only those window stations for which the calling process has the WINSTA_ENUMERATE access right. For more information, see Window Station Security and Access Rights.
EnumWindowStations repeatedly invokes the lpEnumFunc callback function until the last window station is enumerated or the callback function returns FALSE.
EnumWindowStationsRequirements
Client | Requires Windows Vista, Windows XP, Windows 2000 Professional, or Windows NT Workstation 3.51 and later. |
---|---|
Server | Requires Windows Server 2008, Windows Server 2003, Windows 2000 Server, or Windows NT Server 3.51 and later. |
Header | Declared in Winuser.h; include Windows.h. |
Library | Use User32.lib. |
DLL | Requires User32.dll. |
Unicode | Implemented as EnumWindowStationsW (Unicode) and EnumWindowStationsA (ANSI). |
- 詞條統計
-
- 瀏覽次數:次
- 編輯次數:6次歷史版本
- 最近更新: 泡沫之夏吹泡泡