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.

94 lines
3.0 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992-1998.
  5. //
  6. // File: vervec.idl
  7. //
  8. // Contents: IVersionVector interfaces
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 04-23-98 DBau (David Bau) Created
  15. //
  16. //----------------------------------------------------------------------------
  17. cpp_quote("//=--------------------------------------------------------------------------=")
  18. cpp_quote("// version.h")
  19. cpp_quote("//=--------------------------------------------------------------------------=")
  20. cpp_quote("// (C) Copyright 1995-1998 Microsoft Corporation. All Rights Reserved.")
  21. cpp_quote("//")
  22. cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF")
  23. cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO")
  24. cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A")
  25. cpp_quote("// PARTICULAR PURPOSE.")
  26. cpp_quote("//=--------------------------------------------------------------------------=")
  27. cpp_quote("")
  28. cpp_quote("#pragma comment(lib,\"uuid.lib\")")
  29. cpp_quote("")
  30. cpp_quote("//---------------------------------------------------------------------------=")
  31. cpp_quote("// IVersionVector Interface.")
  32. cpp_quote("")
  33. import "objidl.idl";
  34. import "oleidl.idl";
  35. interface IVersionVector;
  36. //+---------------------------------------------------------------------------
  37. //
  38. // Copyright (C) Microsoft Corporation, 1995-1998.
  39. //
  40. // Contents: IVersionVector interface definition
  41. //
  42. //----------------------------------------------------------------------------
  43. cpp_quote("#ifndef _LPVERSION_DEFINED")
  44. cpp_quote("#define _LPVERSION_DEFINED")
  45. [object, uuid(4eb01410-db1a-11d1-ba53-00c04fc2040e), pointer_default(unique)]
  46. interface IVersionVector : IUnknown
  47. {
  48. typedef [unique] IVersionVector *LPVERSION;
  49. HRESULT SetVersion(
  50. [in]const OLECHAR *pchComponent,
  51. [in]const OLECHAR *pchVersion);
  52. HRESULT GetVersion(
  53. [in]const OLECHAR *pchComponent,
  54. [out]OLECHAR *pchVersion,
  55. [in, out]ULONG *pcchVersion);
  56. }
  57. cpp_quote("#endif")
  58. //+---------------------------------------------------------------------------
  59. //
  60. // Copyright (C) Microsoft Corporation, 1995-1998.
  61. //
  62. // Contents: IVersionVectorHost interface definition
  63. //
  64. //----------------------------------------------------------------------------
  65. cpp_quote("EXTERN_C const GUID SID_SVersionHost;")
  66. cpp_quote("#ifndef _LPVERSIONHOST_DEFINED")
  67. cpp_quote("#define _LPVERSIONHOST_DEFINED")
  68. [object, uuid(667115ac-dc02-11d1-ba57-00c04fc2040e), pointer_default(unique)]
  69. interface IVersionHost : IUnknown
  70. {
  71. typedef [unique] IVersionHost *LPVERSIONHOST;
  72. HRESULT QueryUseLocalVersionVector(
  73. [out]BOOL *fUseLocal);
  74. HRESULT QueryVersionVector(
  75. [in]IVersionVector *pVersion);
  76. }
  77. cpp_quote("#endif")