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,functionDynamic Linked Library
動態連結函式庫
#pragma comment(lib,"user32.lib")//include user32.lib
DllMain (HANDLE hDLL, DWORD dwReason, LPVOID LpReserved) {
}dll
g++ file.c -shared -o file.dllrundll32 name.dll,function