Remote control programming problem
Posted: 10 Nov 2011 15:56
Hi,
I am trying to interface with the pg4uw.exe from my application developed under MS VS 2008 (C++).
When I call the remotelb.dll function lpfnCreatServerAndMakeListenToClients() from my application I get the exception "0xC0000096: Privileged Instruction"
When looking for an explanation of this exception I found this:
"Now Privileged Instruction -
Win32-based applications that call inp(), outp(), and so forth can be successfully compiled and linked. However, these applications will generate the privileged instruction exception because the port I/O functions cannot be called from code running in user mode.
Do not call the following functions from within a Win32-based application executing in user mode:
_inp()
_inpw()
_inpd()
_outp()
_outpw()
_outpd()
"
Does anyone have any idea what I can do to get around this problem?
Cheers
Bridgy
I am trying to interface with the pg4uw.exe from my application developed under MS VS 2008 (C++).
When I call the remotelb.dll function lpfnCreatServerAndMakeListenToClients() from my application I get the exception "0xC0000096: Privileged Instruction"
When looking for an explanation of this exception I found this:
"Now Privileged Instruction -
Win32-based applications that call inp(), outp(), and so forth can be successfully compiled and linked. However, these applications will generate the privileged instruction exception because the port I/O functions cannot be called from code running in user mode.
Do not call the following functions from within a Win32-based application executing in user mode:
_inp()
_inpw()
_inpd()
_outp()
_outpw()
_outpd()
"
Does anyone have any idea what I can do to get around this problem?
Cheers
Bridgy