windows-nt/Source/XPSP1/NT/printscan/print/spooler/localspl/varconv.hxx

85 lines
1.3 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
//---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1995
//
// File: varconv.h
//
// Contents: Ansi to Unicode conversions
//
// History: SWilson Nov 1996
//----------------------------------------------------------------------------
#define BAIL_ON_FAILURE(hr) \
if (FAILED(hr)) { \
goto error; \
}
HRESULT
PackString2Variant(
LPCWSTR lpszData,
VARIANT * pvData
);
HRESULT
UnpackStringfromVariant(
VARIANT varSrcData,
BSTR * pbstrDestString
);
HRESULT
PackDWORD2Variant(
DWORD dwData,
VARIANT * pvData
);
HRESULT
UnpackDWORDfromVariant(
VARIANT varSrcData,
DWORD *pdwData
);
HRESULT
PackBOOL2Variant(
BOOL fData,
VARIANT * pvData
);
HRESULT
PackDispatch2Variant(
IDispatch *pDispatch,
VARIANT *pvData
);
HRESULT
UnpackDispatchfromVariant(
VARIANT varSrcData,
IDispatch **ppDispatch
);
HRESULT
PackVARIANTinVariant(
VARIANT vaValue,
VARIANT * pvarInputData
);
HRESULT
MakeVariantFromStringArray(
BSTR *bstrList,
VARIANT *pvVariant
);
HRESULT
PrintVariantArray(
VARIANT var
);
HRESULT
UI1Array2IID(
VARIANT var,
IID *pIID
);