public void CloseHandle()
        {
            int iRetValue;

            iRetValue = ProcessMemoryReaderApi.CloseHandle(m_hProcess);
            if (iRetValue == 0)
            {
                throw new Exception("CloseHandle failed");
            }
        }
示例#2
0
 public void CloseHandle()
 {
     try
     {
         int iRetValue;
         iRetValue = ProcessMemoryReaderApi.CloseHandle(m_hProcess);
         if (iRetValue == 0)
         {
             throw new Exception("CloseHandle failed");
         }
     }
     catch (Exception ex)
     {
         System.Windows.Forms.MessageBox.Show(ex.Message, "error", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Warning);
     }
 }