The SetUserObjectInformation function sets information about a window station or desktop object.
BOOL SetUserObjectInformation(
HANDLE hObj, // handle to the object for which to set information
int nIndex, // type of information to set
PVOID pvInfo, // pointer to a buffer that contains the information
DWORD nLength // size, in bytes, of pvInfo buffer
);
Value | Description |
---|---|
UOI_FLAGS | Sets the object's handle flags. The pvInfo parameter must point to a USEROBJECTFLAGS structure. |
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.
Windows NT: Requires version 3.51 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in winuser.h.
Import Library: Use user32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.
Window Stations and Desktops Overview, Window Station and Desktop Functions, CreateDesktop, CreateWindowStation, GetUserObjectInformation, OpenDesktop,.OpenWindowStation, USEROBJECTFLAGS