propvarutil.h: Added InitPropVariantFromInt64 declaration and inline implementation.
This commit is contained in:
parent
40a69ae868
commit
9f781a06dc
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue