static extern Boolean KernelLibIoControl(IntPtr hLib, int dwIoControlCode, IntPtr lpOutBuf, int nInBufSize, ref PROCVMINFO lpInBuf, int nOutBufSize, IntPtr lpBytesReturned);
public static int CeGetProcVMInfo(int idxProc, int cbSize, ref PROCVMINFO pinfo) { if (KernelLibIoControl((IntPtr)KMOD_CORE, IOCTL_KLIB_GETPROCMEMINFO, IntPtr.Zero, idxProc, ref pinfo, cbSize, IntPtr.Zero)) { System.Diagnostics.Debug.WriteLine(cbSize.ToString()); } return(cbSize); }
public static int CeGetProcVMInfo(int idxProc, int cbSize, ref PROCVMINFO pinfo) { if (KernelLibIoControl((IntPtr)KMOD_CORE, IOCTL_KLIB_GETPROCMEMINFO, IntPtr.Zero, idxProc, ref pinfo, cbSize, IntPtr.Zero)) { System.Diagnostics.Debug.WriteLine( cbSize.ToString() ); } return cbSize; }
static extern Boolean KernelLibIoControl(IntPtr hLib, int dwIoControlCode, IntPtr lpOutBuf, int nInBufSize, ref PROCVMINFO lpInBuf, int nOutBufSize, IntPtr lpBytesReturned);