SetUserObjectInformation function

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.

ValueMeaning
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 [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft