SetUserObjectInformation function user32
Win32Result<bool>
SetUserObjectInformation(
- HANDLE hObj,
- int nIndex,
- Pointer<
NativeType> pvInfo, - int nLength,
Sets information about the specified window station or desktop object.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-setuserobjectinformationw.
Implementation
Win32Result<bool> SetUserObjectInformation(
HANDLE hObj,
int nIndex,
Pointer pvInfo,
int nLength,
) {
final result_ = SetUserObjectInformationW_Wrapper(
hObj,
nIndex,
pvInfo,
nLength,
);
return .new(value: result_.value.i32 != FALSE, error: result_.error);
}