Board index » delphi » C++ translation (one more please :)

C++ translation (one more please :)

typedef DWORD (APIENTRY PM_OPEN_PROC) (LPWSTR);
typedef DWORD (APIENTRY PM_COLLECT_PROC) (LPWSTR, LPVOID *, LPDWORD,
LPDWORD);
typedef DWORD (APIENTRY PM_CLOSE_PROC) (void);

How'd I translate this to delphi 3?

 

Re:C++ translation (one more please :)


typedef DWORD (APIENTRY PM_OPEN_PROC) (LPWSTR);
type TPM_OPEN_PROC = function(p1: PWideChar): DWORD; stdcall;

typedef DWORD (APIENTRY PM_COLLECT_PROC) (LPWSTR, LPVOID *, LPDWORD,
LPDWORD);
type TPM_COLLECT_PROC = function(p1: PWideChar; p2: PPointer; p3, p4:
PWord): DWORD; stdcall;

typedef DWORD (APIENTRY PM_CLOSE_PROC) (void);
type TPM_CLOSE_PROC = function: DWORD; stdcall;

Ciao, Mike

Other Threads