It should work in all cases. Why not?
However, your sample looks strange due to the weird name "hGetProcIDDLL", because first parameter is the DLL module ID obtained, obtained using
LoadLibrary
,
LoadLibraryEx
,
LoadPackagedLibrary
, or
GetModuleHandle
:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms683212%28v=vs.85%29.aspx[
^].
So, your first step should be obtaining the module handler, so you could use it as a first parameter. See the respective MSDN help pages, starting from the page referenced above.
—SA