| wscapi.h (6.1.7601.17514-Windows_7.0) | | wscapi.h (6.3.9600.17415-Windows_8.1) |
|
| | // |
| | // Copyright (C) Microsoft. All rights reserved. |
| | // |
| #pragma once | | #pragma once |
|
| | #include <winapifamily.h> |
| | |
| | #pragma region Desktop Family |
| | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) |
| | |
| #if(_WIN32_WINNT >= 0x0600) | | #if(_WIN32_WINNT >= 0x0600) |
| typedef enum _WSC_SECURITY_PROVIDER | | typedef enum _WSC_SECURITY_PROVIDER |
| { | | { |
| // Represents the aggregation of all firewalls for this computer. | | // Represents the aggregation of all firewalls for this computer. |
| WSC_SECURITY_PROVIDER_FIREWALL = 0x1, | | WSC_SECURITY_PROVIDER_FIREWALL = 0x1, |
| // Represents the Automatic updating settings for this computer. | | // Represents the Automatic updating settings for this computer. |
| WSC_SECURITY_PROVIDER_AUTOUPDATE_SETTINGS = 0x2, | | WSC_SECURITY_PROVIDER_AUTOUPDATE_SETTINGS = 0x2, |
| // Represents the aggregation of all antivirus products for this comptuer. | | // Represents the aggregation of all antivirus products for this comptuer. |
| WSC_SECURITY_PROVIDER_ANTIVIRUS = 0x4, | | WSC_SECURITY_PROVIDER_ANTIVIRUS = 0x4, |
| | |
| skipping to change at line 77 | | skipping to change at line 84 |
| // | | // |
| // Parameters: | | // Parameters: |
| // hRegistrationHandle [in]: The handle to the registration context returned as
the phCallbackRegistration of the | | // hRegistrationHandle [in]: The handle to the registration context returned as
the phCallbackRegistration of the |
| // WscRegisterForChanges function. | | // WscRegisterForChanges function. |
| // | | // |
| // Return Values: | | // Return Values: |
| // Returns S_OK if the function succeeds, otherwise returns an error code. | | // Returns S_OK if the function succeeds, otherwise returns an error code. |
| | |
| STDAPI WscUnRegisterChanges(HANDLE hRegistrationHandle); | | STDAPI WscUnRegisterChanges(HANDLE hRegistrationHandle); |
| | |
|
| | // The WscRegisterForUserNotifications function registers a callback function to |
| | be run when the Security Center service |
| | // fires a WNF event. |
| | // |
| | // Parameters: |
| | // |
| | // Return Values: |
| | // Returns S_OK if the function succeeds, otherwise returns an error code. |
| | |
| | STDAPI WscRegisterForUserNotifications(); |
| | |
| // The WscGetSecurityProviderHealth function gets the aggregate health state of
the security provider categories represented | | // The WscGetSecurityProviderHealth function gets the aggregate health state of
the security provider categories represented |
| // by the specified WSC_SECURITY_PROVIDER enumeration values. | | // by the specified WSC_SECURITY_PROVIDER enumeration values. |
| // | | // |
| // Parameters: | | // Parameters: |
| // Providers [in]: One or more of the values in the WSC_SECURITY_PROVIDER enumer
ation. To specify more than one value, | | // Providers [in]: One or more of the values in the WSC_SECURITY_PROVIDER enumer
ation. To specify more than one value, |
| // combine the individual values by performing a bitwise OR oper
ation. | | // combine the individual values by performing a bitwise OR oper
ation. |
| // pHealth [out]: A pointer to a variable that takes the value of one of the mem
bers of the WSC_SECURITY_PROVIDER_HEALTH | | // pHealth [out]: A pointer to a variable that takes the value of one of the mem
bers of the WSC_SECURITY_PROVIDER_HEALTH |
| // enumeration. If more than one provider is specified in the Pro
viders parameter, the value of this parameter | | // enumeration. If more than one provider is specified in the Pro
viders parameter, the value of this parameter |
| // is the health of the least healthy of the specified provider c
ategories. | | // is the health of the least healthy of the specified provider c
ategories. |
| // | | // |
| // Return values: | | // Return values: |
| // Returns S_OK if the function succeeds, otherwise returns an error code. If th
e WSC service is not running, the return value | | // Returns S_OK if the function succeeds, otherwise returns an error code. If th
e 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. | | // is always S_FALSE and the pHealth out parameter is always set to WSC_SECURITY
_PROVIDER_HEALTH_POOR. |
| // | | // |
| | |
| STDAPI WscGetSecurityProviderHealth(DWORD Providers, | | STDAPI WscGetSecurityProviderHealth(DWORD Providers, |
| PWSC_SECURITY_PROVIDER_HEALTH pHealth); | | PWSC_SECURITY_PROVIDER_HEALTH pHealth); |
|
| | |
| | HRESULT wscShowAMSCN(_In_ DWORD InputFlags, _Out_opt_ PDWORD pdwResultFlags); |
| | |
| | // The WscQueryAntiMalwareUri function attempts to call the Windows Store API to |
| | retrieve the uri for the antimalware page. |
| | // If the call succeeds, the uri for invoking the store is returned, and will be |
| | used to redirect the user to the Windows |
| | // store for purchases. If the uri cannot be retrieved, the handler functions in |
| | wscui.cpl will fall back to sending users to |
| | // the landing page. The uri can fail to be retrieved if the store is not availa |
| | ble for the user's locale, or if there |
| | // are no antimalware products in the store for the user's locale. |
| | // |
| | STDAPI WscQueryAntiMalwareUri(); |
| | |
| | // The WscGetAntiMalwareUri function retrieves the Windows Store uri that was ob |
| | tained by WscQueryAntiMalwareUri. If |
| | // the uri could not be retrieved, then null is returned. |
| | // |
| | // Parameters: |
| | // ppszUri [out] The Windows Store uri string used to launch the antimalware pag |
| | e of the store. |
| | // |
| | STDAPI WscGetAntiMalwareUri(_Outptr_ LPWSTR *ppszUri); |
| | |
| #endif | | #endif |
|
| | |
| | #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ |
| | #pragma endregion |
| | |
| End of changes. 5 change blocks. |
| 0 lines changed or deleted | | 43 lines changed or added |
|