public int KphOpenProcessJob(ProcessHandle processHandle, JobObjectAccess desiredAccess) { byte *inData = stackalloc byte[8]; byte *outData = stackalloc byte[4]; *(int *)inData = processHandle; *(uint *)(inData + 4) = (uint)desiredAccess; _fileHandle.IoControl(CtlCode(Control.KphOpenProcessJob), inData, 8, outData, 4); return(*(int *)outData); }
public int KphOpenProcessJob(ProcessHandle processHandle, JobObjectAccess desiredAccess) { byte* inData = stackalloc byte[8]; byte* outData = stackalloc byte[4]; *(int*)inData = processHandle; *(uint*)(inData + 4) = (uint)desiredAccess; _fileHandle.IoControl(CtlCode(Control.KphOpenProcessJob), inData, 8, outData, 4); return *(int*)outData; }