Hfile for files own code
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
HI , Ijust was wondering how can I get the handle (hfile) of my application file from its code (i.e to get the hfile of the exe and the code to do so is in the same exe too) thanks in advance
What's about retrieving the module file name and path with GetModuleFileName() and then just open it with CreateFile() ;P -- Daniel Lohmann http://www.losoft.de
-
HI , Ijust was wondering how can I get the handle (hfile) of my application file from its code (i.e to get the hfile of the exe and the code to do so is in the same exe too) thanks in advance
GetCurrentProcess() does that.