Share via


WSManCloseCommand, fonction (wsman.h)

Supprime une commande et libère les ressources qui lui sont associées.

Syntaxe

void WSManCloseCommand(
  [in, out, optional] WSMAN_COMMAND_HANDLE commandHandle,
                      DWORD                flags,
  [in]                WSMAN_SHELL_ASYNC    *async
);

Paramètres

[in, out, optional] commandHandle

Spécifie le handle de commande à fermer. Ce handle est retourné par un appel WSManRunShellCommand .

flags

Réservé pour un usage futur. Doit être défini sur zéro.

[in] async

Définit une structure asynchrone. La structure asynchrone contient un contexte utilisateur facultatif et une fonction de rappel obligatoire. Pour plus d’informations, consultez la structure WSMAN_SHELL_ASYNC. Ce paramètre ne peut pas être NULL.

Valeur de retour

None

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows 7
Serveur minimal pris en charge Windows Server 2008 R2
Plateforme cible Windows
En-tête wsman.h
Bibliothèque WsmSvc.lib
DLL WsmSvc.dll
Composant redistribuable Windows Management Framework sur Windows Server 2008 avec SP2 et Windows Vista avec SP2