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.

84 lines
1.3 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. UnpackDWORDfromVariant(
  33. VARIANT varSrcData,
  34. DWORD *pdwData
  35. );
  36. HRESULT
  37. PackBOOL2Variant(
  38. BOOL fData,
  39. VARIANT * pvData
  40. );
  41. HRESULT
  42. PackDispatch2Variant(
  43. IDispatch *pDispatch,
  44. VARIANT *pvData
  45. );
  46. HRESULT
  47. UnpackDispatchfromVariant(
  48. VARIANT varSrcData,
  49. IDispatch **ppDispatch
  50. );
  51. HRESULT
  52. PackVARIANTinVariant(
  53. VARIANT vaValue,
  54. VARIANT * pvarInputData
  55. );
  56. HRESULT
  57. MakeVariantFromStringArray(
  58. BSTR *bstrList,
  59. VARIANT *pvVariant
  60. );
  61. HRESULT
  62. PrintVariantArray(
  63. VARIANT var
  64. );
  65. HRESULT
  66. UI1Array2IID(
  67. VARIANT var,
  68. IID *pIID
  69. );