Partager via


WS_SERVICE_SECURITY_CALLBACK fonction de rappel (webservices.h)

Appelé lorsque les en-têtes du message entrant sont reçus et que le corps n’est pas traité.

Syntaxe

WS_SERVICE_SECURITY_CALLBACK WsServiceSecurityCallback;

HRESULT WsServiceSecurityCallback(
  [in]           const WS_OPERATION_CONTEXT *context,
  [out]          BOOL *authorized,
  [in, optional] WS_ERROR *error
)
{...}

Paramètres

[in] context

Message entrant avec des en-têtes uniquement.

[out] authorized

Définissez sur TRUE, si l’autorisation a réussi, FALSE si l’autorisation a échoué.

[in, optional] error

Spécifie l’emplacement où les informations d’erreur supplémentaires doivent être stockées en cas d’échec de la fonction.

Valeur retournée

Cette fonction de rappel ne retourne pas de valeur.

Configuration requise

   
Client minimal pris en charge Windows 7 [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows Server 2008 R2 [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête webservices.h