#ifndef _NTPSAPI_H
//
// Job objects
//
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* Retrieves information about a job object.
*
* @param JobHandle An optional handle to the job object. If this parameter is NULL, the function retrieves information about the job object associated with the calling process.
* @param JobObjectInformationClass The type of job object information to be retrieved.
* @param JobObjectInformation A pointer to a buffer that receives the job object information.
* @param JobObjectInformationLength The size of the buffer pointed to by the JobObjectInformation parameter.
* @param ReturnLength An optional pointer to a variable that receives the size of the data returned.
* @return NTSTATUS Successful or errant status.
* @remarks This function can be used to query various types of information about a job object, such as accounting information, limit information, and process ID list.
*/
NTSYSCALLAPI
NTSTATUS
NTAPI
NtQueryInformationJobObject(
_In_opt_ HANDLE JobHandle,
_In_ JOBOBJECTINFOCLASS JobObjectInformationClass,
_Out_writes_bytes_(JobObjectInformationLength) PVOID JobObjectInformation,
_In_ ULONG JobObjectInformationLength,
_Out_opt_ PULONG ReturnLength
);
View code on GitHub
#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwQueryInformationJobObject(
_In_opt_ HANDLE JobHandle,
_In_ JOBOBJECTINFOCLASS JobObjectInformationClass,
_Out_writes_bytes_(JobObjectInformationLength) PVOID JobObjectInformation,
_In_ ULONG JobObjectInformationLength,
_Out_opt_ PULONG ReturnLength
);
View code on GitHub
No description available.