QueryInformationJobObject function kernel32
Win32Result<bool>
QueryInformationJobObject(
- HANDLE? hJob,
- JOBOBJECTINFOCLASS jobObjectInformationClass,
- Pointer<
NativeType> lpJobObjectInformation, - int cbJobObjectInformationLength,
- Pointer<
Uint32> ? lpReturnLength,
Retrieves limit and job state information from the job object.
To learn more, see learn.microsoft.com/windows/win32/api/jobapi2/nf-jobapi2-queryinformationjobobject.
Implementation
Win32Result<bool> QueryInformationJobObject(
HANDLE? hJob,
JOBOBJECTINFOCLASS jobObjectInformationClass,
Pointer lpJobObjectInformation,
int cbJobObjectInformationLength,
Pointer<Uint32>? lpReturnLength,
) {
resolveGetLastError();
final result_ = _QueryInformationJobObject(
hJob ?? nullptr,
jobObjectInformationClass,
lpJobObjectInformation,
cbJobObjectInformationLength,
lpReturnLength ?? nullptr,
);
return .new(value: result_ != FALSE, error: GetLastError());
}