Dynamic Linked Library
動態連結函式庫

結構

#pragma comment(lib,"user32.lib")//include user32.lib
 
DllMain (HANDLE hDLL, DWORD dwReason, LPVOID LpReserved) {
 
}

編譯

dll

g++ file.c -shared -o file.dll

執行

rundll32 name.dll,function