Question: What is the return result of this function (SF_REQ_GET_PROPERTY)? It says that pData will contain the property requested. pData is a pointer, but a pointer to what in this case?
The SF_REQ_GET_PROPERTY is poorly documented, IIS documentation says: "This value is used to get an IIS property as defined in SF_PROPERTY_IIS."SF_REQ_GET_PROPERTY is passed to ServerSupportFunction as sfReq parameter, pData contaions pointer to DWORD which returns InstanceID and ul2 is zero. Next GetInstanceID function is a sample of the ServerSupportFunction/SF_PROPERTY_INSTANCE_NUM_ID call.
for 'Get Instance ID from IIS Filter context (SF_REQ_GET_PROPERTY - SF_PROPERTY_INSTANCE_NUM_ID)' articleRead LogFileDirectory and Path properties using C++/ADSI
Copyright and use this code
The source code on this page and other samples at https://www.motobit.com/tips/ are a free code, you can use it as you want: copy it, modify it, use it in your products, ...
If you use this code, please:
1. Leave the author note in the source.
2. Link this sample from you page.
<A Href="https://www.motobit.com/tips/detpg_INSTANCE_NUM/" Title="Short sample to get an IIS property using ServerSupportFunction" >Get Instance ID from IIS Filter context (SF_REQ_GET_PROPERTY - SF_PROPERTY_INSTANCE_NUM_ID)</A>
Do you like it? Rate me on LinkedIn
© 1996 - 2019 Antonin Foller, Motobit Software | About, Contacts