TA的每日心情 | 衰 2026-7-29 14:07 |
|---|
签到天数: 161 天 连续签到: 1 天 [LV.7]常住居民III 初入江湖
 
- UID
- 2
- 小七币
- 335
- 贡献
- 11
- 在线时间
- 226 小时
- 注册时间
- 2011-12-25


|
1 var
TempGetWindowsDirectory : function (lpBuffer: PChar; uSize: UINT): UINT; stdcall;
begin
TempGetWindowsDirectory := GetProcAddress(LoadLibrary('kernel32.dll'),'GetWindowsDirectoryA');
end;
2
var
TempGetWindowsDirectory:function (lpBuffer: PChar; uSize: UINT): UINT; stdcall;
begin
@TempGetWindowsDirectory:= GetProcAddress(LoadLibrary('kernel32.dll'),'GetWindowsDirectoryA');
end;
3
var
TempHWND:HWND; //存取DLL返回的句柄
TempGetWindowsDirectory : function (lpBuffer: PChar; uSize: UINT): UINT; stdcall;
TempWord PCSTR;
begin
TempWord := 'GetWindowsDirectoryA';
TempHWND := LoadLibrary('kernel32.dll');
TempGetWindowsDirectory := GetProcAddress(TempHWND,TempWord);
end;
4
type
TempGetWindowsDirectory = function (lpBuffer: PChar; uSize: UINT): UINT; stdcall;
var
TempHWND:HWND;
TempWord PCSTR;
MSDirectory:TempGetWindowsDirectory;
bagin
TempWord := 'GetWindowsDirectoryA';
TempHWND := LoadLibrary('kernel32.dll');
MSDirectory :=GetProcAddress(TempHWND,TempWord);
end;
|
|