SetCommConfig, fonction (winbase.h)
Définit la configuration actuelle d’un appareil de communication.
BOOL SetCommConfig(
[in] HANDLE hCommDev,
[in] LPCOMMCONFIG lpCC,
[in] DWORD dwSize
);
[in] hCommDev
Handle pour l’appareil de communication ouvert. La fonction CreateFile retourne ce handle.
[in] lpCC
Pointeur vers une structure COMMCONFIG .
[in] dwSize
Taille de la structure pointée par lpCC, en octets.
Si la fonction réussit, la valeur de retour est différente de zéro.
Si la fonction échoue, la valeur de retour est égale à zéro. Pour obtenir des informations détaillées sur l’erreur, appelez GetLastError.
Condition requise | Valeur |
---|---|
Client minimal pris en charge | Windows XP [applications de bureau | applications UWP] |
Serveur minimal pris en charge | Windows Server 2003 [applications de bureau | applications UWP] |
Plateforme cible | Windows |
En-tête | winbase.h (inclure Windows.h) |
Bibliothèque | Kernel32.lib |
DLL | Kernel32.dll |