int WINAPI BiMICRSetReadBackFunction(
int nHandle,
int (CALLBACK *pMicrCB)(void),
LPBYTE pReadBuffSize,
LPBYTE readCharBuff,
LPBYTE pStatus,
LPBYTE pDetail);
typedef int (CALLBACK* MICRCallback)(void);
typedef int (CALLBACK* StatusCallback)(DWORD);
int WINAPI BiSetInkStatusBackFunction(int nHandle,
int (CALLBACK *pStatusCB)(DWORD dwStatus)
);
I need to convert this function to Delphi.
I tried to use headconv4.2 but the resulting static unit is not completed, and errors occur when compiling.
Thanks in advance for your kind help 😀
Supposing
WINAPIandCALLBACKalways being__stdcall,DWORDbeingunsigned intandLPBYTEasunsigned char *, you could try this dirty conversion I made:I’m not entirely sure, though, if this is correct… but this could be a path for you to try to convert it yourself.