Здравствуйте, randydom, Вы писали:
R>I DID it but i get an Exception :
R>Scanner : Error replying message .Error = 0x800703E6
That is not an exception, that is function return error value:
Invalid access to memory location.
Maybe wrong function prototype again, eg. check FilterReplyMessage argument dwReplyBufferSize (must be DWORD):
HRESULT
WINAPI
FilterReplyMessage(
__in HANDLE hPort,
__in PFILTER_REPLY_HEADER lpReplyBuffer,
__in DWORD dwReplyBufferSize
);