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.

86 lines
3.0 KiB

  1. //--------------------------------------------------------------------------
  2. // VarSetInterface.idl
  3. //
  4. //
  5. //
  6. // (c) Copyright 1999, Mission Critical Software, Inc., All Rights Reserved
  7. //
  8. // Proprietary and confidential to Mission Critical Software, Inc.
  9. //--------------------------------------------------------------------------
  10. import "oaidl.idl";
  11. import "ocidl.idl";
  12. [
  13. object,
  14. #ifdef OFA
  15. uuid(6173AFF9-8FFA-4afa-81E8-64AAC99F549E),
  16. #else
  17. uuid(C7C70F26-7E34-11D2-A1D6-00A0C9AFE114),
  18. #endif
  19. dual,
  20. helpstring("IVarSet Interface"),
  21. pointer_default(unique)
  22. ]
  23. interface IVarSet : IDispatch
  24. {
  25. [propget, helpstring("Returns total number of items in the set.")]
  26. HRESULT Count([out, retval] long* count);
  27. [propget, helpstring("Returns the number of immediate children for a node.")]
  28. HRESULT NumChildren([in] BSTR parentKey,[out,retval] long*count);
  29. HRESULT get([in] BSTR property, [out, retval] VARIANT * value );
  30. HRESULT put([in] BSTR property, [in] VARIANT value );
  31. HRESULT putObject([in] BSTR property, [in] VARIANT value);
  32. [propget, restricted, id(DISPID_NEWENUM)] // Must be propget.
  33. HRESULT _NewEnum([out, retval] IUnknown** retval);
  34. [propget, id(1), helpstring("property Indexed (sorted)")]
  35. HRESULT Indexed([out, retval] BOOL *pVal);
  36. [propput, id(1), helpstring("property Indexed (sorted)")]
  37. HRESULT Indexed([in] BOOL newVal);
  38. HRESULT getItems([in] BSTR basepoint,
  39. [in] BSTR startAfter,
  40. [in] BOOL bRecursive,
  41. [in] ULONG bSize,
  42. [out] SAFEARRAY(BSTR) * keys,
  43. [out] SAFEARRAY(VARIANT) * values,
  44. [out] LONG * nReturned);
  45. HRESULT getItems2([in] VARIANT basepoint,
  46. [in] VARIANT startAfter,
  47. [in] VARIANT bRecursive,
  48. [in] VARIANT bSize,
  49. [out] VARIANT * keys,
  50. [out] VARIANT * values,
  51. [out] VARIANT * nReturned);
  52. [helpstring("Removes all definitions from the collection.")]
  53. HRESULT Clear();
  54. [propget, helpstring("property - specifies whether the keys are case-sensitive.")]
  55. HRESULT CaseSensitive([out,retval] BOOL * bIsCaseSensitive);
  56. [propput, helpstring("property - specifies whether the keys are case-sensitive.")]
  57. HRESULT CaseSensitive([in] BOOL bNewVal );
  58. [propget]
  59. HRESULT AllowRehashing([out,retval] BOOL * bAllowResizing);
  60. [propput]
  61. HRESULT AllowRehashing([in] BOOL bNewVal );
  62. HRESULT DumpToFile( [in] BSTR filename);
  63. HRESULT ImportSubTree([in] BSTR key, [in] IVarSet * pVarSet);
  64. HRESULT getReference( [in] BSTR key,[out,retval] IVarSet ** pVarSet);
  65. [propget]
  66. HRESULT Restrictions([out,retval] DWORD * restrictions);
  67. [propput]
  68. HRESULT Restrictions([in] DWORD newRestrictions);
  69. };