阅读:1074回复:3
请高手指教
BUILD: Computing Include file dependencies:
BUILD: Examining d:\\progra~1\\ntddk\\src\\wdm\\gkadsp\\wdmdriver\\driver directory for files to compile. BUILD: d:\\progra~1\\ntddk\\src\\wdm\\gkadsp\\wdmdriver\\driver\\wdmdriver.rc: d:\\program files\\ntddk\\inc\\winbase.h: cannot find include file <macwin32.h> BUILD: d:\\progra~1\\ntddk\\src\\wdm\\gkadsp\\wdmdriver\\driver\\wdmdriver.rc: d:\\program files\\ntddk\\inc\\wingdi.h: cannot find include file <macwin32.h> BUILD: d:\\progra~1\\ntddk\\src\\wdm\\gkadsp\\wdmdriver\\driver\\wdmdriver.rc: d:\\program files\\ntddk\\inc\\winuser.h: cannot find include file <macwin32.h> BUILD: d:\\progra~1\\ntddk\\src\\wdm\\gkadsp\\wdmdriver\\driver\\wdmdriver.rc: d:\\program files\\ntddk\\inc\\winnls.h: cannot find include file <macwin32.h> BUILD: d:\\progra~1\\ntddk\\src\\wdm\\gkadsp\\wdmdriver\\driver\\wdmdriver.rc: d:\\program files\\ntddk\\inc\\winreg.h: cannot find include file <macwin32.h> BUILD: d:\\progra~1\\ntddk\\src\\wdm\\gkadsp\\wdmdriver\\driver\\wdmdriver.rc: d:\\program files\\ntddk\\inc\\mmsystem.h: cannot find include file <macwin32.h> Compiling d:\\progra~1\\ntddk\\src\\wdm\\gkadsp\\wdmdriver\\driver directory ******************** \'nmake.exe /c BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 NOPASS0=1 386=1\' cl -nologo -Ii386\\ -I. -Id:\\ProgramFiles\\NTDDK\\inc -Id:\\ProgramFiles\\NTDDK\\inc\\ddk -Id:\\PROGRA~1\\NTDDK\\inc -Id:\\PROGRA~1\\NTDDK\\inc -Id:\\PROGRA~1\\NTDDK\\inc\\ddk\\wdm -Id:\\PROGRA~1\\NTDDK\\private\\inc -Id:\\PROGRA~1\\NTDDK\\inc -D_X86_=1 -Di386=1 -DSTD_CALL -DCONDITION_HANDLING=1 -DNT_UP=1 -DNT_INST=0 -DWIN32=100 -D_NT1X_=100 -DWINNT=1 -D_WIN32_WINNT=0x0500 -DWINVER=0x0500 -D_WIN32_IE=0x0501 -DWIN32_LEAN_AND_MEAN=1 -DDBG=1 -DDEVL=1 -DFPO=0 -DNDEBUG -D_DLL=1 /c /Zel /Zp8 /Gy -cbstring /W3 /Gz /QIfdiv- /QIf /QI0f /GB /Gi- /Gm- /GX- /GR- /GF -Z7 /Oxs /Oy- -FId:\\PROGRA~1\\NTDDK\\inc\\warning.h .\\pnp.cpp pnp.cpp d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(40) : error C2146: syntax error : missing \';\' before identifier \'Guid\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(40) : error C2501: \'LPCGUID\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(40) : error C2501: \'Guid\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(41) : error C2146: syntax error : missing \';\' before identifier \'InstanceCount\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(41) : error C2501: \'ULONG\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(41) : error C2501: \'InstanceCount\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(42) : error C2146: syntax error : missing \';\' before identifier \'Flags\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(42) : error C2501: \'ULONG\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(42) : error C2501: \'Flags\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(47) : error C2065: \'PWMI_QUERY_REGINFO\' : undeclared identifier d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(47) : error C2100: illegal indirection d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(47) : error C2501: \'NTSTATUS\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(47) : error C2143: syntax error : missing \';\' before \'(\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(48) : error C2146: syntax error : missing \')\' before identifier \'PDEVICE_OBJECT\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(48) : error C2146: syntax error : missing \';\' before identifier \'PDEVICE_OBJECT\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(48) : error C2501: \'IN\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(48) : fatal error C1004: unexpected end of file found cl -nologo -Ii386\\ -I. -Id:\\ProgramFiles\\NTDDK\\inc -Id:\\ProgramFiles\\NTDDK\\inc\\ddk -Id:\\PROGRA~1\\NTDDK\\inc -Id:\\PROGRA~1\\NTDDK\\inc -Id:\\PROGRA~1\\NTDDK\\inc\\ddk\\wdm -Id:\\PROGRA~1\\NTDDK\\private\\inc -Id:\\PROGRA~1\\NTDDK\\inc -D_X86_=1 -Di386=1 -DSTD_CALL -DCONDITION_HANDLING=1 -DNT_UP=1 -DNT_INST=0 -DWIN32=100 -D_NT1X_=100 -DWINNT=1 -D_WIN32_WINNT=0x0500 -DWINVER=0x0500 -D_WIN32_IE=0x0501 -DWIN32_LEAN_AND_MEAN=1 -DDBG=1 -DDEVL=1 -DFPO=0 -DNDEBUG -D_DLL=1 /c /Zel /Zp8 /Gy -cbstring /W3 /Gz /QIfdiv- /QIf /QI0f /GB /Gi- /Gm- /GX- /GR- /GF -Z7 /Oxs /Oy- -FId:\\PROGRA~1\\NTDDK\\inc\\warning.h .\\wmi.cpp wmi.cpp d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(40) : error C2146: syntax error : missing \';\' before identifier \'Guid\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(40) : error C2501: \'LPCGUID\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(40) : error C2501: \'Guid\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(41) : error C2146: syntax error : missing \';\' before identifier \'InstanceCount\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(41) : error C2501: \'ULONG\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(41) : error C2501: \'InstanceCount\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(42) : error C2146: syntax error : missing \';\' before identifier \'Flags\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(42) : error C2501: \'ULONG\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(42) : error C2501: \'Flags\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(47) : error C2065: \'PWMI_QUERY_REGINFO\' : undeclared identifier d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(47) : error C2100: illegal indirection d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(47) : error C2501: \'NTSTATUS\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(47) : error C2143: syntax error : missing \';\' before \'(\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(48) : error C2146: syntax error : missing \')\' before identifier \'PDEVICE_OBJECT\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(48) : error C2146: syntax error : missing \';\' before identifier \'PDEVICE_OBJECT\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(48) : error C2501: \'IN\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(48) : fatal error C1004: unexpected end of file found Stop. Compile errors: not linking d:\\progra~1\\ntddk\\src\\wdm\\gkadsp\\wdmdriver\\driver directory ******************** |
|
沙发#
发布于:2005-04-07 08:34
把整个工程贴出来看看.
|
|
|
板凳#
发布于:2005-04-07 09:11
把整个工程贴出来看看. |
|
|
地板#
发布于:2005-04-07 09:35
这是我照着书上的例子敲进出的,代码在附件内。
|
|
|