Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.2 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995
  5. //
  6. // File: varconv.h
  7. //
  8. // Contents: Ansi to Unicode conversions
  9. //
  10. // History: SWilson Nov 1996
  11. //----------------------------------------------------------------------------
  12. #define BAIL_ON_FAILURE(hr) \
  13. if (FAILED(hr)) { \
  14. goto error; \
  15. }
  16. HRESULT
  17. PackString2Variant(
  18. LPCWSTR lpszData,
  19. VARIANT * pvData
  20. );
  21. HRESULT
  22. UnpackStringfromVariant(
  23. VARIANT varSrcData,
  24. BSTR * pbstrDestString
  25. );
  26. HRESULT
  27. PackDWORD2Variant(
  28. DWORD dwData,
  29. VARIANT * pvData
  30. );
  31. HRESULT
  32. PackBOOL2Variant(
  33. BOOL fData,
  34. VARIANT * pvData
  35. );
  36. HRESULT
  37. PackDispatch2Variant(
  38. IDispatch *pDispatch,
  39. VARIANT *pvData
  40. );
  41. HRESULT
  42. UnpackDispatchfromVariant(
  43. VARIANT varSrcData,
  44. IDispatch **ppDispatch
  45. );
  46. HRESULT
  47. PackVARIANTinVariant(
  48. VARIANT vaValue,
  49. VARIANT * pvarInputData
  50. );
  51. HRESULT
  52. MakeVariantFromStringArray(
  53. BSTR *bstrList,
  54. VARIANT *pvVariant
  55. );
  56. HRESULT
  57. PrintVariantArray(
  58. VARIANT var
  59. );
  60. HRESULT
  61. UI1Array2IID(
  62. VARIANT var,
  63. IID *pIID
  64. );