Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I've been reading up, trying to get

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I've been reading up, trying to get this to work. I'm creating a DLL similar to ntport's version that can unlock any IO port in NT/2K, then read and write to those ports directly. I've read that a call to Ke386QueryIoAccessMap, Ke386SetIoAccessMap, and Ke386IoSetAccessProcess can successfully change the IOPM. My problems is that it's my first DLL to be written in C++. I can successfully compile a DLL, and call it, but to use any of the Ke386SetIoAccessMap or similar processes, I need to include ntddk.h(right?). I do have the most recent ntddk installed, VC6.0 includes the ntddk.h header file but always reports these errors in ntddk.h:
C2146 missing ';' before identifier 'Lock'
C2501 PULONG_PTR missing storage-class or type specifier
C2501 'Lock' missing storage-class or typer speficier
C2146 missing ';' before identifier KSPIN_Lock
C1004 unexpected end of file found

Is there something I'm doing wrong? This is also my first venture into the DDK. I want this to be a simple one-file dll for simplicity so that I can use universally with any program I need.

Thanks for any help, advice, or links you can provide!
 
You've installed the DDK. You'll probably also have to install the Win2000 SDK where things such as PULONG_PTR are defined. If you've already installed it, then make sure the "library" and "include" paths in Visual Studio include the Win2000 SDK's directories.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top