大
大王生
Unregistered / Unconfirmed
GUEST, unregistred user!
请帮忙将调用C++的DLL改为Delphi调用DLL,谢谢
加入我的收藏
楼主: 以下为C++调用方式:
int UMDLL_EnumerateDevices();
int UMDLL_GetDriveList(int DevIndex,char *strDriveList);
BOOL UMDLL_IsDriveReady(int DevIndex,UCHAR LunIndex);
void UMDLL_CloseAllDevices();
//Get Total Lun
int UMDLL_GetTotalLunNumber(int DevIndex);
//Get Capacity
DWORD UMDLL_GetTotalCapacity(int DevIndex);
DWORD UMDLL_GetHiddenCapacity(int DevIndex);
DWORD UMDLL_GetLUN0Capacity(int DevIndex);
DWORD UMDLL_GetLUN1Capacity(int DevIndex);
DWORD UMDLL_GetLUN2Capacity(int DevIndex);
//Hidden Buffer
BOOL UMDLL_ReadHiddenSectors(int DevIndex,DWORD dwStartSector,DWORD dwSectorCount,LPBYTE pReadBuffer);
BOOL UMDLL_WriteHiddenSectors(int DevIndex,DWORD dwStartSector,DWORD dwSectorCount,LPBYTE pWriteBuffer);
下面是Delphi调用方式我试出了第一个,请大家帮忙将其它的定义写出来,谢谢!)
function UMDLL_EnumerateDevices(): integer;stdcall;external 'UM02FPS.dll';
加入我的收藏
楼主: 以下为C++调用方式:
int UMDLL_EnumerateDevices();
int UMDLL_GetDriveList(int DevIndex,char *strDriveList);
BOOL UMDLL_IsDriveReady(int DevIndex,UCHAR LunIndex);
void UMDLL_CloseAllDevices();
//Get Total Lun
int UMDLL_GetTotalLunNumber(int DevIndex);
//Get Capacity
DWORD UMDLL_GetTotalCapacity(int DevIndex);
DWORD UMDLL_GetHiddenCapacity(int DevIndex);
DWORD UMDLL_GetLUN0Capacity(int DevIndex);
DWORD UMDLL_GetLUN1Capacity(int DevIndex);
DWORD UMDLL_GetLUN2Capacity(int DevIndex);
//Hidden Buffer
BOOL UMDLL_ReadHiddenSectors(int DevIndex,DWORD dwStartSector,DWORD dwSectorCount,LPBYTE pReadBuffer);
BOOL UMDLL_WriteHiddenSectors(int DevIndex,DWORD dwStartSector,DWORD dwSectorCount,LPBYTE pWriteBuffer);
下面是Delphi调用方式我试出了第一个,请大家帮忙将其它的定义写出来,谢谢!)
function UMDLL_EnumerateDevices(): integer;stdcall;external 'UM02FPS.dll';