The GetModuleHandle function retrieves a module handle for the specified module if the file has been mapped into the address space of the calling process.
HMODULE GetModuleHandle(
LPCTSTR lpModuleName // module name
);
BTW:Windows 核心编程?英文名叫"Programming Applications for Microsoft Windows"吧,这里有下载