Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The SetConfiguration method updates a responder service with configuration changes.
HRESULT SetConfiguration(
[in] const BSTR bstrServerName,
[in] VARIANT_BOOL bForce
);
[in] bstrServerName
A string that contains the responder-service name.
[in] bForce
C++ | VARIANT_TRUE if the method should update the responder service registry when the service is offline or unavailable; otherwise, VARIANT_FALSE. If the service is offline or unavailable and the bForce parameter is VARIANT_TRUE, SetConfiguration updates the responder service registry directly. |
VB | True if the method should update the responder service registry when the service is offline or unavailable; otherwise, False. If the service is offline or unavailable and the bForce parameter is True, SetConfiguration updates the responder service registry directly. |
If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.
The following table lists the effects of the bForce parameter value on the method call.
OCSP responder service on the target server | bForce is VARIANT_TRUE | bForce is VARIANT_FALSE |
---|---|---|
Running | Retrieve configuration from the service. | Retrieve configuration from the service. |
Stopped | Attempt to retrieve configuration from the server registry. If this attempt fails, return an error. | Return an error. |
The following table lists the effects of the bForce parameter value on the method call.
OCSP responder service on the target server | bForce is True | bForce is False |
---|---|---|
Running | Retrieve configuration from the service. | Retrieve configuration from the service. |
Stopped | Attempt to retrieve configuration from the server registry. If this attempt fails, return an error. | Return an error. |
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 Datacenter, Windows Server 2008 Enterprise [desktop apps only] |
Target Platform | Windows |
Header | certadm.h (include Certsrv.h) |
Library | Certadm.lib |
DLL | Certadm.dll |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today