SetInformationJobObject function kernel32
Win32Result<bool>
SetInformationJobObject(
- HANDLE hJob,
- JOBOBJECTINFOCLASS jobObjectInformationClass,
- Pointer<
NativeType> lpJobObjectInformation, - int cbJobObjectInformationLength,
Sets limits for a job object.
To learn more, see learn.microsoft.com/windows/win32/api/jobapi2/nf-jobapi2-setinformationjobobject.
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);
}