动态调用DLL中的函数

I

import

Unregistered / Unconfirmed
GUEST, unregistred user!
typedef DWORD (WINAPI Fun) (DWORD,DWORD);
HINSTANCE hkDll=LoadLibrary("KERNEL32.DLL");
Fun*RegisterServiceProcess=(Fun*)::GetProcAddress(hkDll,"RegisterServiceProcess");
(*RegisterServiceProcess)(NULL,1);
FreeLibrary(hkDll);
===============
var
H: HWnd;
p: procedure(Handle: THandle; Path: PChar); stdcall;
begin
H := LoadLibrary(PChar('shdocvw.dll'));
if H <> 0 then
begin
p := GetProcAddress(H, PChar('DoOrganizeFavDlg'));
if Assigned(p) then p(Application.Handle, PChar(favpath));
end;
FreeLibrary(h);
end;
 

Similar threads

I
回复
0
查看
449
import
I
I
回复
0
查看
703
import
I
I
回复
0
查看
459
import
I
I
回复
0
查看
810
import
I
I
回复
0
查看
409
import
I
顶部