|
procedure TForm1.Button1Click(Sender: TObject);
var
driveidx:integer;
Drive:Char;
ImgFile:PChar;
Size:int64;
r:integer;
begin
gsgw32_unloaddriver;
r:=GSGW32_LoadDriver;
showmessage(inttostr(r));
Drive:= 'G' ;
driveIdx:=0;
Size := int64(80*1024)*1024*1024;
if GSGW32_mount(driveidx,drive,pointer(@Size),pchar('E:\IIO.IMG'))=0 then
ShowMessage('成功!')
else
ShowMessage('失败!');
end;
哪个可以把这段 Delphi 转换成 AU3 调用的。
下面是我收集整理下的。
function GSGW32_Mount(idx:Integer; Drive:Char; a3:Int64; const
ImgFile:PChar):Cardinal;stdcall; external 'RNDINTER.dll';
function GSGW32_Umount(Drive:Char):Cardinal;stdcall; external 'RNDINTER1.dll';
function GSGW32_GetStatus(Driver:Char; idx:Integer; a3:Integer;
ImgFile:PChar):Cardinal;stdcall; external 'RNDINTER.dll';
function GSGW32_LoadDriver:Integer;stdcall; external 'RNDINTER.dll';
function GSGW32_UnloadDriver:Integer;stdcall; external 'RNDINTER.dll';
function GSGW32_GetAllNetDiskDrive(
lpOutBuffer:PChar):Cardinal;stdcall;external 'RNDINTER.dll'; |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?加入
×
|