SetUserObjectInformation function
Applies to: desktop apps only
Sets information about the specified window station or desktop object.
Syntax
BOOL WINAPI SetUserObjectInformation( __in HANDLE hObj, __in int nIndex, __in PVOID pvInfo, __in DWORD nLength );
Parameters
- hObj [in]
-
A handle to the window station or desktop object. This handle can be returned by the CreateWindowStation, OpenWindowStation, CreateDesktop, or OpenDesktop function.
- nIndex [in]
-
The object information to be set. This parameter can be the following value.
Value Meaning - UOI_FLAGS
- 1
Sets the object's handle flags. The pvInfo parameter must point to a USEROBJECTFLAGS structure.
- pvInfo [in]
-
A pointer to a buffer containing the object information.
- nLength [in]
-
The size of the information contained in the buffer pointed to by pvInfo, in bytes.
Return value
If the function succeeds, the return value is nonzero.
If the function fails the return value is zero. To get extended error information, call GetLastError.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names | SetUserObjectInformationW (Unicode) and SetUserObjectInformationA (ANSI) |
See also
- CreateDesktop
- CreateWindowStation
- GetUserObjectInformation
- OpenDesktop
- OpenWindowStation
- USEROBJECTFLAGS
- Window Station and Desktop Functions
- Window Stations
Send comments about this topic to Microsoft
Build date: 2/3/2012