NtIsProcessInJob - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTPSAPI_H
// Job objects
#if (PHNT_MODE != PHNT_MODE_KERNEL)

/**
 * Checks if a process is associated with a job object.
 *
 * @param ProcessHandle A handle to the process to be checked.
 * @param JobHandle An optional handle to the job object. If this parameter is NULL, the function checks if the process is associated with any job object.
 * @return NTSTATUS Successful or errant status.
 * @remarks This function can be used to determine if a process is running within a job object, which can be useful for managing process resources and constraints.
 */
NTSYSCALLAPI
NTSTATUS
NTAPI
NtIsProcessInJob(
    _In_ HANDLE ProcessHandle,
    _In_opt_ HANDLE JobHandle
    );

#endif
#endif

View code on GitHub
#ifndef _NTZWAPI_H

NTSYSCALLAPI
NTSTATUS
NTAPI
ZwIsProcessInJob(
    _In_ HANDLE ProcessHandle,
    _In_opt_ HANDLE JobHandle
    );

#endif

View code on GitHub

No description available.