I am trying to see when a new process is loaded into memory, and, for that I am intend to use PsSetCreateProcessNotifyRoutineEx method. In MSDN documentation say that this method has need
Code:
#include "Ntddk.h"
Ok, for that, I have installed WinDDK in C:\WinDDK\7600.16385.1\, and I set additional include directory: C:\WinDDK\7600.16385.1\inc\ddk\
but soon after I set this, I got the following errors:
Code:
1>Compiling...
1>stdafx.cpp
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(60) : error C2065: '_In_opt_' : undeclared identifier
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(60) : error C2146: syntax error : missing ')' before identifier 'new_handler'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(60) : warning C4229: anachronism used : modifiers on data are ignored
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(60) : error C2491: 'std::set_new_handler' : definition of dllimport data not allowed
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(60) : error C2059: syntax error : ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(85) : error C2065: '_Size' : undeclared identifier
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(85) : error C2448: '_Ret_opt_bytecap_' : function-style initializer appears to be a function definition
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(86) : error C2065: '_Size' : undeclared identifier
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(86) : error C2448: '_Ret_opt_bytecap_' : function-style initializer appears to be a function definition
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(107) : error C2065: '_In_' : undeclared identifier
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(107) : error C2144: syntax error : 'int' should be preceded by ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(107) : error C2448: '_set_new_mode' : function-style initializer appears to be a function definition
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(107) : error C2059: syntax error : ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(118) : error C2143: syntax error : missing ';' before '__cdecl'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(119) : error C2143: syntax error : missing ';' before '__cdecl'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(119) : error C2065: '_In_opt_' : undeclared identifier
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(119) : error C2146: syntax error : missing ')' before identifier '_PNH'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(119) : warning C4229: anachronism used : modifiers on data are ignored
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(119) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(119) : error C2059: syntax error : ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\excpt.h(59) : error C2143: syntax error : missing ';' before '__cdecl'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\excpt.h(60) : error C2065: '_In_' : undeclared identifier
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\excpt.h(60) : error C2144: syntax error : '_EXCEPTION_RECORD' should be preceded by ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\excpt.h(60) : error C2448: '_except_handler' : function-style initializer appears to be a function definition
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\excpt.h(61) : error C2144: syntax error : 'void' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\excpt.h(62) : error C2144: syntax error : '_CONTEXT' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\excpt.h(63) : error C2144: syntax error : 'void' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\excpt.h(64) : error C2059: syntax error : ')'
1>c:\winddk\7600.16385.1\inc\api\windef.h(49) : error C2143: syntax error : missing ';' before '*'
1>c:\winddk\7600.16385.1\inc\api\windef.h(51) : error C2143: syntax error : missing ';' before '*'
1>c:\winddk\7600.16385.1\inc\api\windef.h(53) : error C2143: syntax error : missing ';' before '*'
1>c:\winddk\7600.16385.1\inc\api\windef.h(157) : error C2143: syntax error : missing ';' before '*'
1>c:\winddk\7600.16385.1\inc\api\windef.h(158) : error C2143: syntax error : missing ';' before '*'
1>c:\winddk\7600.16385.1\inc\api\windef.h(159) : error C2143: syntax error : missing ';' before '*'
1>c:\winddk\7600.16385.1\inc\api\windef.h(160) : error C2143: syntax error : missing ';' before '*'
1>c:\winddk\7600.16385.1\inc\api\windef.h(161) : error C2143: syntax error : missing ';' before '*'
1>c:\winddk\7600.16385.1\inc\api\windef.h(164) : error C2143: syntax error : missing ';' before '*'
1>c:\winddk\7600.16385.1\inc\api\windef.h(165) : error C2143: syntax error : missing ';' before '*'
1>c:\winddk\7600.16385.1\inc\api\windef.h(167) : error C2143: syntax error : missing ';' before '*'
1>c:\winddk\7600.16385.1\inc\api\windef.h(168) : error C2143: syntax error : missing ';' before '*'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(94) : error C2144: syntax error : 'int' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(94) : error C2065: '_In_' : undeclared identifier
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(94) : error C2144: syntax error : 'int' should be preceded by ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(94) : error C2448: '_isctype' : function-style initializer appears to be a function definition
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(94) : error C2144: syntax error : 'int' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(94) : error C2059: syntax error : ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(95) : error C2144: syntax error : 'int' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(95) : error C2065: '_In_' : undeclared identifier
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(95) : error C2144: syntax error : 'int' should be preceded by ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(95) : error C2448: '_isctype_l' : function-style initializer appears to be a function definition
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(95) : error C2144: syntax error : 'int' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(95) : error C2146: syntax error : missing ';' before identifier '_locale_t'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(95) : error C2059: syntax error : ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(96) : error C2144: syntax error : 'int' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(96) : error C2065: '_In_' : undeclared identifier
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(96) : error C2144: syntax error : 'int' should be preceded by ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(96) : error C2448: 'isalpha' : function-style initializer appears to be a function definition
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(96) : error C2059: syntax error : ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(97) : error C2144: syntax error : 'int' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(97) : error C2065: '_In_' : undeclared identifier
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(97) : error C2144: syntax error : 'int' should be preceded by ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(97) : error C2448: '_isalpha_l' : function-style initializer appears to be a function definition
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(97) : error C2146: syntax error : missing ';' before identifier '_locale_t'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(97) : error C2059: syntax error : ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(98) : error C2144: syntax error : 'int' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(98) : error C2065: '_In_' : undeclared identifier
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(98) : error C2144: syntax error : 'int' should be preceded by ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(98) : error C2448: 'isupper' : function-style initializer appears to be a function definition
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(98) : error C2059: syntax error : ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(99) : error C2144: syntax error : 'int' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(99) : error C2065: '_In_' : undeclared identifier
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(99) : error C2144: syntax error : 'int' should be preceded by ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(99) : error C2448: '_isupper_l' : function-style initializer appears to be a function definition
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(99) : error C2146: syntax error : missing ';' before identifier '_locale_t'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(99) : error C2059: syntax error : ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(100) : error C2144: syntax error : 'int' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(100) : error C2065: '_In_' : undeclared identifier
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(100) : error C2144: syntax error : 'int' should be preceded by ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(100) : error C2448: 'islower' : function-style initializer appears to be a function definition
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(100) : error C2059: syntax error : ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(101) : error C2144: syntax error : 'int' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(101) : error C2065: '_In_' : undeclared identifier
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(101) : error C2144: syntax error : 'int' should be preceded by ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(101) : error C2448: '_islower_l' : function-style initializer appears to be a function definition
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(101) : error C2146: syntax error : missing ';' before identifier '_locale_t'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(101) : error C2059: syntax error : ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(102) : error C2144: syntax error : 'int' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(102) : error C2065: '_In_' : undeclared identifier
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(102) : error C2144: syntax error : 'int' should be preceded by ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(102) : error C2448: 'isdigit' : function-style initializer appears to be a function definition
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(102) : error C2059: syntax error : ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(103) : error C2144: syntax error : 'int' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(103) : error C2065: '_In_' : undeclared identifier
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(103) : error C2144: syntax error : 'int' should be preceded by ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(103) : error C2448: '_isdigit_l' : function-style initializer appears to be a function definition
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(103) : error C2146: syntax error : missing ';' before identifier '_locale_t'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(103) : error C2059: syntax error : ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(104) : error C2144: syntax error : 'int' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(104) : error C2065: '_In_' : undeclared identifier
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(104) : error C2144: syntax error : 'int' should be preceded by ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(104) : error C2448: 'isxdigit' : function-style initializer appears to be a function definition
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(104) : error C2059: syntax error : ')'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(105) : error C2144: syntax error : 'int' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(105) : error C2065: '_In_' : undeclared identifier
1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\ctype.h(105) : fatal error C1003: error count exceeds 100; stopping compilation
what could be the problem ? Could you help me ? Thank you.