Prev: Fatal error LNK1104:File "C:\Programme\Microsoft.obj"can not be opened!!
Next: Problem when defining my own string.h
From: zhang on 15 Dec 2007 07:14 The following is ok ::SetSecurityInfo(hProcess,SE_KERNEL_OBJECT,DACL_SECURITY_INFORMATION ,NULL,NULL,pAcl,NULL) but error C2065: 'PROTECTED_DACL_SECURITY_INFORMATION' : undeclared identifier ::SetSecurityInfo(hProcess,SE_KERNEL_OBJECT,DACL_SECURITY_INFORMATION | PROTECTED_DACL_SECURITY_INFORMATION,NULL,NULL,pAcl,NULL); why??????
From: Alexander Nickolov on 18 Dec 2007 19:56
More likely OP needs to update the _WIN32_WINNT value for the project to 0x500 (Win2K) or later. -- ===================================== Alexander Nickolov Microsoft MVP [VC], MCSD email: agnickolov(a)mvps.org MVP VC FAQ: http://vcfaq.mvps.org ===================================== "Norbert Unterberg" <nunterberg(a)newsgroups.nospam> wrote in message news:es2KeHyPIHA.4440(a)TK2MSFTNGP06.phx.gbl... > > zhang schrieb: >> The following is ok >> >> ::SetSecurityInfo(hProcess,SE_KERNEL_OBJECT,DACL_SECURITY_INFORMATION >> ,NULL,NULL,pAcl,NULL) >> >> >> but error C2065: 'PROTECTED_DACL_SECURITY_INFORMATION' : undeclared >> identifier >> >> ::SetSecurityInfo(hProcess,SE_KERNEL_OBJECT,DACL_SECURITY_INFORMATION | >> PROTECTED_DACL_SECURITY_INFORMATION,NULL,NULL,pAcl,NULL); >> >> >> why?????? > > PROTECTED_DACL_SECURITY_INFORMATION was not supported unter Windows NT. > Maybe you need a more recent platform SDK? > > Norbert |