NtQueryInformationWorkerFactory - NtDoc

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

/**
 * The NtQueryInformationWorkerFactory routine retrieves information about the specified worker factory.
 *
 * \param WorkerFactoryHandle A handle to the worker factory object.
 * \param WorkerFactoryInformationClass The type of information to be retrieved.
 * \param WorkerFactoryInformation A pointer to a buffer that receives the requested information.
 * \param WorkerFactoryInformationLength The size of the \c WorkerFactoryInformation buffer, in bytes.
 * \param ReturnLength A pointer to a variable that receives the number of bytes written to the \c WorkerFactoryInformation buffer. This parameter is optional.
 * \return NTSTATUS Successful or errant status.
 * \remarks The native entry supports WorkerFactoryBasicInformation (7),
 * requires exactly 120 bytes and worker-factory query access 0x8. It probes the fixed native record before
 * testing the supplied length, so a short-length test must still use valid backing storage. WoW64 converts the
 * basic record to 96 bytes; the mere presence of a thunk for another class does not establish native support.
 */
_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
NtQueryInformationWorkerFactory(
    _In_ HANDLE WorkerFactoryHandle,
    _In_ WORKERFACTORYINFOCLASS WorkerFactoryInformationClass,
    _Out_writes_bytes_(WorkerFactoryInformationLength) PVOID WorkerFactoryInformation,
    _In_ ULONG WorkerFactoryInformationLength,
    _Out_opt_ PULONG ReturnLength
    );

#endif
#endif

View code on GitHub
#ifndef _NTZWAPI_H

_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwQueryInformationWorkerFactory(
    _In_ HANDLE WorkerFactoryHandle,
    _In_ WORKERFACTORYINFOCLASS WorkerFactoryInformationClass,
    _Out_writes_bytes_(WorkerFactoryInformationLength) PVOID WorkerFactoryInformation,
    _In_ ULONG WorkerFactoryInformationLength,
    _Out_opt_ PULONG ReturnLength
    );

#endif

View code on GitHub

NtDoc

No description available.