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.

104 lines
1.7 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  5. //
  6. // File: nt2var.hxx
  7. //
  8. // Contents: NDS Object to Variant Copy Routines
  9. //
  10. // Functions:
  11. //
  12. // History: 06/12/1996 RamV Created.
  13. // cloned from nds code
  14. //
  15. // Issues: Check null ptrs for AllocADsMem and AllocADsStr
  16. //
  17. //
  18. //
  19. //----------------------------------------------------------------------------
  20. typedef VARIANT *PVARIANT, *LPVARIANT;
  21. HRESULT
  22. NTTypeToVarTypeCopyBOOL(
  23. PNTOBJECT pNTSrcValue,
  24. PVARIANT lpVarDestObject
  25. );
  26. HRESULT
  27. NTTypeToVarTypeCopySYSTEMTIME(
  28. PNTOBJECT pNTSrcValue,
  29. PVARIANT lpVarDestObject
  30. );
  31. HRESULT
  32. NTTypeToVarTypeCopyDWORD(
  33. PNTOBJECT pNTSrcValue,
  34. PVARIANT lpVarDestObject
  35. );
  36. HRESULT
  37. NTTypeToVarTypeCopyDATE(
  38. PNTOBJECT pNTSrcValue,
  39. PVARIANT lpVarDestObject
  40. );
  41. HRESULT
  42. NTTypeToVarTypeCopyLPTSTR(
  43. PNTOBJECT pNTSrcValue,
  44. PVARIANT lpVarDestObject
  45. );
  46. HRESULT
  47. NTTypeToVarTypeCopyNulledString(
  48. PNTOBJECT pNTSrcValue,
  49. PVARIANT lpVarDestObject
  50. );
  51. HRESULT
  52. NTTypeToVarTypeCopyDelimitedString(
  53. PNTOBJECT pNTSrcValue,
  54. PVARIANT lpVarDestObject
  55. );
  56. HRESULT
  57. NTTypeToVarTypeCopyDATE70(
  58. PNTOBJECT pNTSrcValue,
  59. PVARIANT lpVarDestObject
  60. );
  61. HRESULT
  62. NtTypeToVarTypeCopy(
  63. PNTOBJECT pNTSrcValue,
  64. PVARIANT lpVarDestObject
  65. );
  66. HRESULT
  67. NtTypeToVarTypeCopyConstruct(
  68. LPNTOBJECT pNTSrcObjects,
  69. DWORD dwNumObjects,
  70. PVARIANT pVarDestObjects
  71. );
  72. void
  73. VarTypeFreeVarObjects(
  74. PVARIANT pVarObject,
  75. DWORD dwNumValues
  76. );