Hi,
I have to write a little tool that configures some aspects of an IIS 6 via the C++ ADSI API.
One of its tasks is to retrieve information wheter an entry is inherited. Regarding to the MSDN documentation (http://msdn.microsoft.com/en-us/library/ms525121.aspx) the IISPropertyAttribute Interface is what i need. So i tried the following to get this interface from an path:
ADsGetObject(path, IID_IADs, (void **)&pADs);
IISPropertyAttribute *pPropAttr = NULL;
pADs->QueryInterface(IID_IISPropertyAttribute, (void **)&pPropAttr);
The code compiles but cant be linked (unresolved external symbol _IID_IISPropertyAttribute). Querying an other interface (e.g. IISApp3) works as expected:
ADsGetObject(path, IID_IADs, (void **)&pADs);
IISApp3 *pApp3 = NULL;
pADs->QueryInterface( IID_IISApp3, (void **)&pApp3 );
I wonder what im doing wrong here (wrong ADSI libs? .. they are from the plattform sdk).
Thanks in advance for your help,
Holger