コード例 #1
0
ファイル: toolhelp.cs プロジェクト: YSLFree/VMusage
 static extern Boolean KernelLibIoControl(IntPtr hLib,
                                          int dwIoControlCode,
                                          IntPtr lpOutBuf,
                                          int nInBufSize,
                                          ref PROCVMINFO lpInBuf,
                                          int nOutBufSize,
                                          IntPtr lpBytesReturned);
コード例 #2
0
ファイル: toolhelp.cs プロジェクト: YSLFree/VMusage
 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);
 }
コード例 #3
0
ファイル: toolhelp.cs プロジェクト: hjgode/VMusage
        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;
        }
コード例 #4
0
ファイル: toolhelp.cs プロジェクト: hjgode/VMusage
 static extern Boolean KernelLibIoControl(IntPtr hLib, 
     int dwIoControlCode, 
     IntPtr lpOutBuf, 
     int nInBufSize, 
     ref PROCVMINFO lpInBuf,
     int nOutBufSize, 
     IntPtr lpBytesReturned);