Windows API 函数 GetProcAddress 被广泛用于取得函数指针地址。例如: typedef BOOL(WINAPI*pfnGetProductInfo)(DWORD,DWORD,DWORD,DWORD,PDWORD);pGPI=(pfnGetProductInfo)GetProcAddress(GetModuleHandleW(L...
ProcAddr:=GetProcAddress(nDllAddr,str);if ProcAddr<gt;nil then begin CallWindowProc(ProcAddr,nDllAddr,0,0,0);Result:=True;end;FreeLibrary(nDllAddr);end;end;反注册 function UnRegisterDllServer...
ADDPROC Add=(ADDPROC)GetProcAddress(hInst,MAKEINTRESOURCE(1));The MAKEINTRESOURCE macro converts an integer value to a resource type compatible with the resource-management functions.This macro is ...