public void SsQueryClientEntry( KphSsClientEntryHandle clientEntryHandle, out KphSsClientInformation clientInformation, int clientInformationLength, out int returnLength ) { fixed(KphSsClientInformation *clientInfoPtr = &clientInformation) fixed(int *retLengthPtr = &returnLength) { byte *inData = stackalloc byte[0x10]; *(int *)inData = clientEntryHandle.Handle.ToInt32(); *(int *)(inData + 0x4) = (int)clientInfoPtr; *(int *)(inData + 0x8) = clientInformationLength; *(int *)(inData + 0xc) = (int)retLengthPtr; _fileHandle.IoControl(CtlCode(Control.SsQueryClientEntry), inData, 0x10, null, 0); } }
public void SsQueryClientEntry( KphSsClientEntryHandle clientEntryHandle, out KphSsClientInformation clientInformation, int clientInformationLength, out int returnLength ) { fixed (KphSsClientInformation *clientInfoPtr = &clientInformation) fixed (int* retLengthPtr = &returnLength) { byte* inData = stackalloc byte[0x10]; *(int*)inData = clientEntryHandle.Handle.ToInt32(); *(int*)(inData + 0x4) = (int)clientInfoPtr; *(int*)(inData + 0x8) = clientInformationLength; *(int*)(inData + 0xc) = (int)retLengthPtr; _fileHandle.IoControl(CtlCode(Control.SsQueryClientEntry), inData, 0x10, null, 0); } }