Partager via


structure SERVICE_LAUNCH_PROTECTED_INFO (winsvc.h)

Indique un type de protection de service.

Syntaxe

typedef struct _SERVICE_LAUNCH_PROTECTED_INFO {
  DWORD dwLaunchProtected;
} SERVICE_LAUNCH_PROTECTED_INFO, *PSERVICE_LAUNCH_PROTECTED_INFO;

Membres

dwLaunchProtected

Type de protection du service. Ce membre peut être l’une des valeurs suivantes :

SERVICE_LAUNCH_PROTECTED_NONE (0)

SERVICE_LAUNCH_PROTECTED_WINDOWS (1)

SERVICE_LAUNCH_PROTECTED_WINDOWS_LIGHT (2)

SERVICE_LAUNCH_PROTECTED_ANTIMALWARE_LIGHT (3)

Remarques

Cette structure est utilisée par la fonction ChangeServiceConfig2 pour spécifier le type de protection du service, et elle est utilisée avec QueryServiceConfig2 pour récupérer les informations de configuration du service pour les services protégés. Pour appliquer n’importe quel type de protection à un service, le service doit être signé avec un certificat approprié.

Les types de protection SERVICE_LAUNCH_PROTECTED_WINDOWS et SERVICE_LAUNCH_PROTECTED_WINDOWS_LIGHT sont réservés uniquement à une utilisation interne de Windows.

Le type de protection SERVICE_LAUNCH_PROTECTED_ANTIMALWARE_LIGHT peut être utilisé par les fournisseurs anti-programme malveillant pour lancer leur service anti-programme malveillant comme protégé. Pour plus d’informations, consultez Protection des services anti-programme malveillant .

Une fois le service lancé en tant que protégé, d’autres processus non protégés ne peuvent pas appeler les API suivantes sur le service protégé.

Configuration requise

   
Client minimal pris en charge Windows 8.1 [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2012 R2 [applications de bureau uniquement]
En-tête winsvc.h