views:

75

answers:

0

I'm trying to write a value to IO port 0x0466 in Windows. Normally, it is 0x0000. To change it, I can physically short-circuit two headers on the board, and the value changes to 0x0001. And it will stay 0x0001 even when I open the circuit, until I restart/etc.

Now, the problem is, using software/IO port dll, I can write 0x0000 to port 0x0466 when it is at 0x0001, and it will change to 0x0000; but I can't successfully write 0x0001 to it.

I'm using C++ for a dll wrapper, and C# for my program.

Any suggestions?