propvarutil.h: Added InitPropVariantFromInt64 declaration and inline implementation.

This commit is contained in:
Jacek Caban 2012-12-19 12:41:55 +01:00 committed by Alexandre Julliard
parent 40a69ae868
commit 9f781a06dc
1 changed files with 8 additions and 0 deletions

View File

@ -81,6 +81,7 @@ HRESULT WINAPI PropVariantToUInt64(REFPROPVARIANT propvarIn, ULONGLONG *ret);
HRESULT InitPropVariantFromBoolean(BOOL fVal, PROPVARIANT *ppropvar); HRESULT InitPropVariantFromBoolean(BOOL fVal, PROPVARIANT *ppropvar);
HRESULT InitPropVariantFromString(PCWSTR psz, PROPVARIANT *ppropvar); HRESULT InitPropVariantFromString(PCWSTR psz, PROPVARIANT *ppropvar);
HRESULT InitPropVariantFromInt64(LONGLONG llVal, PROPVARIANT *ppropvar);
#ifndef NO_PROPVAR_INLINES #ifndef NO_PROPVAR_INLINES
@ -104,6 +105,13 @@ inline HRESULT InitPropVariantFromString(PCWSTR psz, PROPVARIANT *ppropvar)
return hres; return hres;
} }
inline HRESULT InitPropVariantFromInt64(LONGLONG llVal, PROPVARIANT *ppropvar)
{
ppropvar->vt = VT_I8;
ppropvar->hVal.QuadPart = llVal;
return S_OK;
}
#endif #endif
#endif #endif