/[ProcessMemoryDumper]/branches/pmd_18_x86/ProcListP.h
ViewVC logotype

Contents of /branches/pmd_18_x86/ProcListP.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (show annotations) (download)
Fri Aug 31 04:08:07 2012 UTC (7 years, 4 months ago) by william
File MIME type: text/plain
File size: 2820 byte(s)
commit upstream branch code
1 // proclistP.h
2 #ifndef PROCLISTP_H
3 #define PROCLISTP_H 1
4 #include <afxcoll.h>
5 #include <Afxtempl.h>
6
7 #define MAXCOUNT 4000
8
9 class CModuleDetails; // Forward declaration
10
11 class CEnumProcessList
12 {
13 public:
14 CEnumProcessList();
15 CEnumProcessList(DWORD dwProcessID);
16 ~CEnumProcessList();
17
18 BOOL GetModuleVersion(CString ModuleName,CString &VersionString);
19 BOOL SearchProcessOrModule(CString ModuleName,CModuleDetails* pModuleData);
20 BOOL HasFailed();
21 POSITION GetHeadPosition();
22 CModuleDetails* GetNext(POSITION &Pos);
23 DWORD LastError();
24 static CString FormatError(DWORD dwError);
25
26 private:
27 CTypedPtrList <CObList,CModuleDetails*> m_ModulesList;
28 BOOL m_bRead;
29 HANDLE m_hProcess;
30 DWORD m_dwError;
31 };
32
33
34
35 struct TRANSLATIONS {
36 WORD m_wLangID;
37 WORD m_wCharSet;
38 };
39
40 class CModuleDetails : public CObject
41 {
42 public :
43 BOOL TerminateProcess();
44 BOOL IsProcessTrue();
45 BOOL m_bIsProcess;
46 HICON GetAssociatedIcon();
47
48 CModuleDetails(const HANDLE hProcessID,const HMODULE hModuleID);
49 CModuleDetails();
50 ~CModuleDetails();
51
52 BOOL HasFailed() const;
53
54 ///////////////////////////////////////////////////////////////////////////////
55 //
56 // CModule Data "properties"
57 //
58 // version details
59 VS_FIXEDFILEINFO GetVersion();
60 CString GetComments() const;
61 CString GetCompanyName() const;
62 CString GetFileDescription() const;
63 CString GetFileVersion() const;
64 CString GetInternalName() const;
65 CString GetProductName() const;
66 CString GetProductVersion() const;
67 CString GetLegalCopyright() const;
68 CString GetLegalTrademarks() const;
69 CString GetOriginalFilename() const;
70 CString GetPrivateBuild() const;
71 CString GetSpecialBuild() const;
72 CString GetFullFileName() const;
73 CString GetModuleName() const;
74 long GetFileSize() const;
75 CTime GetFileDate() const;
76 DWORD GetLastError() const;
77 DWORD pProcessID;
78
79 protected:
80
81 private:
82
83 CModuleDetails(CModuleDetails &rCopy);
84 CString GetVersionString(char *pVersionInfo, char *pKey);
85
86 HANDLE m_hProcessHandle;
87 HMODULE m_hModuleHandle;
88 CString m_ModuleType;
89 CString m_ModuleName;
90 CString m_FullFileName;
91 CString m_BaseName;
92
93
94 // File Data
95 long m_lFileSize;
96 CTime m_FileDate;
97
98 // Language Block Information
99 WORD m_wLangID;
100 WORD m_wCharSet;
101
102 // Version Data
103 CString m_Comments;
104 CString m_CompanyName;
105 CString m_FileDescription;
106 CString m_FileVersion;
107 CString m_InternalName;
108 CString m_LegalCopyright;
109 CString m_LegalTrademarks;
110 CString m_OriginalFilename;
111 CString m_PrivateBuild;
112 CString m_ProductName;
113 CString m_ProductVersion;
114 CString m_SpecialBuild;
115 DWORD m_dwError;
116 };
117 #endif // PROCLIST_H
118

  ViewVC Help
Powered by ViewVC 1.1.22