BlackBone
Windows memory hacking library
 All Classes Functions
ImageNET.h
1 #pragma once
2 #include "../Config.h"
3 #ifdef COMPILER_MSVC
4 
5 #include "../Include/Winheaders.h"
6 
7 #include <cor.h>
8 #include <CorError.h>
9 
10 #include <map>
11 #include <atlbase.h>
12 
13 namespace blackbone
14 {
15 
19 class ImageNET
20 {
21 public:
22  typedef std::map<std::pair<std::wstring, std::wstring>, size_t> mapMethodRVA;
23 
24 public:
25  BLACKBONE_API ImageNET(void);
26  BLACKBONE_API ~ImageNET(void);
27 
33  BLACKBONE_API bool Init( const std::wstring& path );
34 
40  BLACKBONE_API bool Parse( mapMethodRVA& methods );
41 
46  BLACKBONE_API static std::wstring GetImageRuntimeVer( const wchar_t* ImagePath );
47 
48 private:
49  std::wstring _path; // Image path
50  mapMethodRVA _methods; // Image methods
51 
52  // COM helpers
53  CComPtr<IMetaDataDispenserEx> _pMetaDisp;
54  CComPtr<IMetaDataImport> _pMetaImport;
55  CComPtr<IMetaDataAssemblyImport> _pAssemblyImport;
56 };
57 
58 }
59 
60 #endif
Definition: AsmHelper32.cpp:6