-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathProcessList.h
32 lines (25 loc) · 937 Bytes
/
ProcessList.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// ProcessList.h: interface for the CProcessList class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PROCESSLIST_H__3A77A369_CD09_4A33_9CF2_BC09501ACCCF__INCLUDED_)
#define AFX_PROCESSLIST_H__3A77A369_CD09_4A33_9CF2_BC09501ACCCF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <wchar.h>
#include <stdio.h>
#include "PSAPI.h"
class CProcessList : public CPSAPI
{
public:
LPCWSTR GetExeName(void) { return m_szExeName; }
BOOL OnProcess(LPCWSTR lpszFileName, DWORD ProcessID);
CProcessList(DWORD dwProcessID = 0);
virtual ~CProcessList();
protected:
WCHAR m_szExeName[MAX_PATH];
DWORD m_dwProcessID;
BOOL OnModule(HMODULE hModule, LPCWSTR lpszModuleName, LPCWSTR lpszPathName);
void SetPriority(DWORD dwID, DWORD dwPriority);
};
#endif // !defined(AFX_PROCESSLIST_H__3A77A369_CD09_4A33_9CF2_BC09501ACCCF__INCLUDED_)