Interfacing DLL usbcddll.dll with fivewin

Interfacing DLL usbcddll.dll with fivewin

Postby vensanto » Fri Nov 10, 2006 12:21 pm

I don't know how use the function into the DLL usbcddll.dll with the fivewin
Please Help me !

the USBCDDLL.DLL is for delphi 5
http://www.eurosoftsnc.net/download/CDLIB_D5.ZIP

I need to use the following functions in USBCDDLL.DLL
InitUSBCDLibrary
CloseUSBCDLibrary
SetCDCallbackProc
GetDeviceNumber
EnumDevice
USBCDReset
USBCDMoveto
USBCDGetCDDown
USBCDLEDON
USBCDLEDOFF
USBCDGetStatus

-----------------------------------------------------------

example in C

#ifndef _USBCDDLL_HPP
#define _USBCDDLL_HPP

#define DEVICE_COMMANDOK 0
#define DEVICE_IDERROR 1
#define DEVICE_BUSY 2
#define DEVICE_UNKNOWERROR 3

extern "C"
{
typedef void (CALLBACK* CDDeviceChangePROC )(int);

WINUSERAPI VOID WINAPI InitUSBCDLibrary();
WINUSERAPI VOID WINAPI CloseUSBCDLibrary();
WINUSERAPI VOID WINAPI SetCDCallbackProc( CDDeviceChangePROC lpProc );
WINUSERAPI int WINAPI GetDeviceNumber();
WINUSERAPI int WINAPI EnumDevice( int);

// CD Device Operate function below
WINUSERAPI int WINAPI USBCDReset( int ID );
WINUSERAPI int WINAPI USBCDMoveto( int ID, int Index );
WINUSERAPI int WINAPI USBCDGetCDDown( int ID );
WINUSERAPI int WINAPI USBCDLEDON( int ID );
WINUSERAPI int WINAPI USBCDLEDOFF( int ID );
WINUSERAPI int WINAPI USBCDGetStatus( int ID );
}
#endif

=================All Dll Functions (Copied From Dll Extractor)========================
Function Name Address Relative Ad Ordinal Filename
CloseUSBCDLibrary 0x0043f470 0x0003f470 23 (0x17) USBCDDLL.dll
CloseUSBCDLibrary@0 0x0043f470 0x0003f470 11 (0xb)
EnumDevice 0x0043f498 0x0003f498 20 (0x14)
EnumDevice@4 0x0043f498 0x0003f498 8 (0x8)
GetDeviceNumber 0x0043f48c 0x0003f48c 21 (0x15)
GetDeviceNumber@0 0x0043f48c 0x0003f48c 9 (0x9)
InitUSBCDLibrary 0x0043f448 0x0003f448 24 (0x18)
InitUSBCDLibrary@0 0x0043f448 0x0003f448 12 (0xc)
SetCDCallbackProc 0x0043f47c 0x0003f47c 22 (0x16)
SetCDCallbackProc@4 0x0043f47c 0x0003f47c 10 (0xa)
USBCDGetCDDown 0x0043f4d8 0x0003f4d8 17 (0x11)
USBCDGetCDDown@4 0x0043f4d8 0x0003f4d8 5 (0x5)
USBCDGetCDUp 0x0043f4ec 0x0003f4ec 16 (0x10)
USBCDGetCDUp@4 0x0043f4ec 0x0003f4ec 4 (0x4)
USBCDGetStatus 0x0043f528 0x0003f528 13 (0xd)
USBCDGetStatus@4 0x0043f528 0x0003f528 1 (0x1)
USBCDLEDOFF 0x0043f514 0x0003f514 14 (0xe)
USBCDLEDOFF@4 0x0043f514 0x0003f514 2 (0x2)
USBCDLEDON 0x0043f500 0x0003f500 15 (0xf)
USBCDLEDON@4 0x0043f500 0x0003f500 3 (0x3)
USBCDMoveto 0x0043f4c0 0x0003f4c0 18 (0x12)
USBCDMoveto@8 0x0043f4c0 0x0003f4c0 6 (0x6)
USBCDReset 0x0043f4ac 0x0003f4ac 19 (0x13)
USBCDReset@4 0x0043f4ac 0x0003f4ac 7 (0x7)
User avatar
vensanto
 
Posts: 58
Joined: Thu Oct 13, 2005 1:26 pm
Location: ITALIA

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 69 guests