WscGetSecurityProviderHealth function
Gets the aggregate health state of the security provider categories represented by the specified WSC_SECURITY_PROVIDER enumeration values.
Syntax
HRESULT WINAPI WscGetSecurityProviderHealth( _In_ DWORD Providers, _Out_ PWSC_SECURITY_PROVIDER_HEALTH pHealth );
Parameters
- Providers [in]
-
One or more of the values in the WSC_SECURITY_PROVIDER enumeration. To specify more than one value, combine the individual values by performing a bitwise OR operation.
- pHealth [out]
-
A pointer to a variable that takes the value of one of the members of the WSC_SECURITY_PROVIDER_HEALTH enumeration. If more than one provider is specified in the Providers parameter, the value of this parameter is the health of the least healthy of the specified provider categories.
Return value
Returns S_OK if the function succeeds, otherwise returns an error code. If the WSC service is not running, the return value is always S_FALSE and the pHealth out parameter is always set to WSC_SECURITY_PROVIDER_HEALTH_POOR.
Requirements
|
Minimum supported client | Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server | None supported [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 12/7/2012