HMODULE hModule = LoadLibrary("ntdll.h")
HMODULE hModule = GetModuleHandle("ntdll.h")
LoadLibrary ⊃ GetModuleHandle
>> LoadLibrary = GetModuleHandle + "LoadCount++" + "Load DLL if Count is zero"
FreeLibrary unloads DLL if count is zero else just LoadCount--
* LoadCount belongs to process, means, each process has own module count evenif those are loading same module
if process ends :
unload module, ignoring LoadCount
---
참조 :
https://docs.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-loadlibrarya
'Programming Logs > Windows' 카테고리의 다른 글
unix 시간을 windows의 FILETIME으로 변환하기 (0) | 2020.03.01 |
---|---|
왜 System pid는 1이 아니고 4일까? (0) | 2019.12.08 |