Leaked source code of windows server 2003
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.

83 lines
1.4 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. UI1Array2IID(
  63. VARIANT var,
  64. IID *pIID
  65. );
  66. HRESULT
  67. UI1Array2SID(
  68. VARIANT var,
  69. LPWSTR *pszSID
  70. );