3.2.4.1.2 SetOCSPProperty (Opnum 4)
This method configures the value of a responder property on the server.
-
HRESULT SetOCSPProperty( [in, ref] const BSTR bstrEntryName, [in, ref] const VARIANT* pEntryValue );
bstrEntryName: A BSTR that specifies the name of the property to set. The Unicode string value SHOULD be one of the property name values listed in ResponderProperties.
pEntryValue: A pointer to VARIANT data.
The following processing rules apply:
The vt member of the VARIANT referenced by pEntryValue SHOULD match the type specified in section 3.2.4.1.1 for the property corresponding to the bstrEntryName value.<13>
If the vt member of the VARIANT referenced by pEntryValue is VT_EMPTY and the server has a property configured with the same name as the value of bstrEntryName, the server MUST delete the property identified by bstrEntryName and return success.
If the vt member of the VARIANT referenced by pEntryValue is VT_EMPTY and the server does not have a property configured with the same name as the value of bstrEntryName, the server MUST return an error. The error code SHOULD be 0x80070002.
If bstrEntryName matches one of the properties specified in section 3.2.1.2:
If the server has a property configured with the same name, the server MUST replace the existing value with the value specified in the VARIANT data referenced by pEntryValue.
If the server does not have a property configured with the same name, the server MUST store the property and value specified in the VARIANT data referenced by pEntryValue in its configuration.
If bstrEntryName is NULL or empty, the server SHOULD return the error E_INVALIDARG (0x80000003L).
If bstrEntryName is not empty and does not match one of the properties specified in section 3.2.1.2, the server SHOULD store the property and value specified in the VARIANT data referenced by pEntryValue in its configuration. The values "CAEntries" and "AllEntries" SHOULD NOT be used for bstrEntryName because of their special treatment by the GetOCSPProperty method.