SetInformationJobObject function kernel32

Win32Result<bool> SetInformationJobObject(
  1. HANDLE hJob,
  2. JOBOBJECTINFOCLASS jobObjectInformationClass,
  3. Pointer<NativeType> lpJobObjectInformation,
  4. int cbJobObjectInformationLength,
)

Implementation

Win32Result<bool> SetInformationJobObject(
  HANDLE hJob,
  JOBOBJECTINFOCLASS jobObjectInformationClass,
  Pointer lpJobObjectInformation,
  int cbJobObjectInformationLength,
) {
  final result_ = SetInformationJobObject_Wrapper(
    hJob,
    jobObjectInformationClass,
    lpJobObjectInformation,
    cbJobObjectInformationLength,
  );
  return .new(value: result_.value.i32 != FALSE, error: result_.error);
}