SetUserObjectInformation function user32

Win32Result<bool> SetUserObjectInformation(
  1. HANDLE hObj,
  2. int nIndex,
  3. Pointer<NativeType> pvInfo,
  4. 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);
}