mirror of
https://github.com/SafeBreach-Labs/PoolParty
synced 2026-06-06 16:44:29 +00:00
37 lines
1.0 KiB
C++
37 lines
1.0 KiB
C++
#include "WorkerFactory.hpp"
|
|
|
|
void w_NtQueryInformationWorkerFactory(
|
|
HANDLE hWorkerFactory,
|
|
QUERY_WORKERFACTORYINFOCLASS WorkerFactoryInformationClass,
|
|
PVOID WorkerFactoryInformation,
|
|
ULONG WorkerFactoryInformationLength,
|
|
PULONG ReturnLength
|
|
)
|
|
{
|
|
NT_SUCCESS_OR_RAISE(
|
|
"NtQueryInformationWorkerFactory",
|
|
NtQueryInformationWorkerFactory(
|
|
hWorkerFactory,
|
|
WorkerFactoryInformationClass,
|
|
WorkerFactoryInformation,
|
|
WorkerFactoryInformationLength,
|
|
ReturnLength)
|
|
);
|
|
}
|
|
|
|
void w_NtSetInformationWorkerFactory(
|
|
HANDLE hWorkerFactory,
|
|
SET_WORKERFACTORYINFOCLASS WorkerFactoryInformationClass,
|
|
PVOID WorkerFactoryInformation,
|
|
ULONG WorkerFactoryInformationLength
|
|
)
|
|
{
|
|
NT_SUCCESS_OR_RAISE(
|
|
"NtSetInformationWorkerFactory",
|
|
NtSetInformationWorkerFactory(
|
|
hWorkerFactory,
|
|
WorkerFactoryInformationClass,
|
|
WorkerFactoryInformation,
|
|
WorkerFactoryInformationLength)
|
|
);
|
|
} |