about Parallel Port
-
Dear All I should write one program which uses parallel port of computer in ECP mode. I should use CreateFile and DeviceIOControl routines for this purpose. Is there any resource that help me about this project. another problem : When I include both stdafx.h and ntddk.h in my project, I find that some redefinition errors and warnings occured. some variables and structures are defined in both ntddk and some header file which is defined in some other header files. Does anyone have any idea to remove this problem. REgards Mahdi
-
Dear All I should write one program which uses parallel port of computer in ECP mode. I should use CreateFile and DeviceIOControl routines for this purpose. Is there any resource that help me about this project. another problem : When I include both stdafx.h and ntddk.h in my project, I find that some redefinition errors and warnings occured. some variables and structures are defined in both ntddk and some header file which is defined in some other header files. Does anyone have any idea to remove this problem. REgards Mahdi
ntddk.h is a file used in driver development - it should not be included in user-mode programs. Use CreateFile to open a handle to the parallele port, then control it via commands you issue with the DeviceIOControl. You need to be looking for a document that describes the available IOCTL commands that can be issued via DeviceIOControl. And, no, I don't know where one is. Judy