|
#pragma once
#include "afxwin.h"
#include "ProcessPrivilegeMgr.h"
// CPrivilegeMgrDlg dialog
class CPrivilegeMgrDlg : public CDialog
{
DECLARE_DYNAMIC(CPrivilegeMgrDlg)
public:
CPrivilegeMgrDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CPrivilegeMgrDlg();
bool SetProcessHandle( HANDLE hProcess )
{
ASSERT( hProcess );
if( !m_ProcessPrivMgr.OpenKeepProcessToken( hProcess ))
{
Utils::GetLastErrorMsg();
return false;
}
return true;
}
// Dialog Data
enum { IDD = IDD_PRIVILEGE_MGR };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnInitDialog();
void Refresh();
void OnCheckPrivilegeList();
private:
CCheckListBox m_PrivilegeLstBx;
CProcessPrivilegeMgr m_ProcessPrivMgr;
DECLARE_MESSAGE_MAP()
afx_msg void OnBnClickedButtonDisableall();
afx_msg void OnBnClickedButtonEnableAll();
afx_msg void OnBnClickedButtonRemoveAll();
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.