Partager via


Fonction UShortToUInt8 (intsafe.h)

Convertit une valeur de type USHORT en valeur de type UINT8.

Syntaxe

HRESULT UShortToUInt8(
  [in]  USHORT usOperand,
  [out] UINT8  *pui8Result
);

Paramètres

[in] usOperand

La valeur à convertir.

[out] pui8Result

Valeur convertie.

Valeur retournée

Si cette fonction réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.

Notes

WordToByte est un alias pour cette fonction.

UShortToByte est un alias pour cette fonction.

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 intsafe.h