MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / OnShowEnvironment

Method OnShowEnvironment

WinArk/ProcessPropertiesDlg.cpp:97–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97LRESULT 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
110LRESULT CProcessPropertiesDlg::OnShowToken(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) {
111 HANDLE hToken = nullptr;

Callers

nothing calls this directly

Calls 1

GetProcessInfoMethod · 0.45

Tested by

no test coverage detected