| 95 | } |
| 96 | |
| 97 | LRESULT CProcessPropertiesDlg::OnShowEnvironment(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) { |
| 98 | HANDLE hProcess = DriverHelper::OpenProcess(m_px.GetProcessInfo()->Id, PROCESS_QUERY_INFORMATION | PROCESS_VM_READ); |
| 99 | if (!hProcess) { |
| 100 | AtlMessageBox(*this, L"Failed to open process", IDS_TITLE, MB_ICONERROR); |
| 101 | return 0; |
| 102 | } |
| 103 | |
| 104 | CEnvironmentDlg dlg(hProcess); |
| 105 | dlg.DoModal(); |
| 106 | ::CloseHandle(hProcess); |
| 107 | return 0; |
| 108 | } |
| 109 | |
| 110 | LRESULT CProcessPropertiesDlg::OnShowToken(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) { |
| 111 | HANDLE hToken = nullptr; |
nothing calls this directly
no test coverage detected