Fonction InitPropVariantFromInt64 (propvarutil.h)
Initialise une structure PROPVARIANT en fonction d’une valeur Int64 spécifiée.
Syntaxe
HRESULT InitPropVariantFromInt64(
[in] LONGLONG llVal,
[out] PROPVARIANT *ppropvar
);
Paramètres
[in] llVal
Type : LONGLONG
Valeur LONGLONG 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 propvariant VT_I8.
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 un programme plus grand, montre comment utiliser InitPropVariantFromInt64.
PROPVARIANT propvar;
HRESULT hr = InitPropVariantFromInt64(4096, &propvar);
if (SUCCEEDED(hr))
{
// propvar now is valid and has type VT_I8.
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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour