Hello,
I suggest to use SDK functions.
You will find explanations about SDK function on
Micrsoft web site. Have a look at Win 32 & COM Development >> System Services >> Device I/O.
Moreover,
here an explanation about using SDK functions.
Hope this help,
Isabelle
Ingénieur d'applications
National Instruments France