Partager via


Fonction InitPropVariantFromUInt64 (propvarutil.h)

Initialise une structure PROPVARIANT avec une valeur entière non signée 64 bits.

Syntaxe

HRESULT InitPropVariantFromUInt64(
  [in]  ULONGLONG   ullVal,
  [out] PROPVARIANT *ppropvar
);

Paramètres

[in] ullVal

Type : ULONGLONG

Valeur ULONGLONG source .

[out] ppropvar

Type : PROPVARIANT*

Lorsque cette fonction retourne, contient la structure PROPVARIANT initialisée.

Valeur retournée

Type : HRESULT

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

Notes

Crée un VT_UI8 propvariant.

Il s’agit d’une fonction inline, avec son code source fourni dans l’en-tête. Il n’est inclus dans aucun fichier .dll ou .lib.

Exemples

L’exemple suivant, à inclure dans le cadre d’un programme plus grand, montre comment utiliser InitPropVariantFromUInt64.

PROPVARIANT propvar;

HRESULT hr = InitPropVariantFromUInt64(563, &propvar);

if (SUCCEEDED(hr))
{
    // propvar now is valid and has type VT_UI8.
    PropVariantClear(&propvar);
}

Spécifications

   
Client minimal pris en charge Windows XP avec SP2, Windows Vista [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2003 avec SP1 [applications de bureau uniquement]
Plateforme cible Windows
En-tête propvarutil.h
Composant redistribuable Windows Desktop Search (WDS) 3.0

Voir aussi

InitVariantFromUInt64

PropVariantToUInt64

PropVariantToUInt64WithDefault