home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / servprov.idl < prev    next >
Text File  |  1998-04-25  |  2KB  |  76 lines

  1. //+---------------------------------------------------------------------------
  2. //
  3. //  Microsoft Windows
  4. //  Copyright (C) Microsoft Corporation, 1995-1997.
  5. //
  6. //  File:       servprov.idl
  7. //
  8. //  Contents:   IServiceProvider description
  9. //
  10. //  Classes:
  11. //
  12. //  Functions:
  13. //
  14. //  History:    02-15-95        JoePe Created
  15. //
  16. //----------------------------------------------------------------------------
  17.  
  18. cpp_quote("//=--------------------------------------------------------------------------=")
  19. cpp_quote("// ServProv.h")
  20. cpp_quote("//=--------------------------------------------------------------------------=")
  21. cpp_quote("// (C) Copyright 1995 - 1998 Microsoft Corporation.  All Rights Reserved.")
  22. cpp_quote("//")
  23. cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF")
  24. cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO")
  25. cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A")
  26. cpp_quote("// PARTICULAR PURPOSE.")
  27. cpp_quote("//=--------------------------------------------------------------------------=")
  28. cpp_quote("")
  29. cpp_quote("#pragma comment(lib,\"uuid.lib\")")
  30. cpp_quote("")
  31. cpp_quote("//---------------------------------------------------------------------------=")
  32. cpp_quote("// IServiceProvider Interfaces.")
  33. cpp_quote("")
  34.  
  35. import "objidl.idl";
  36. //import "oleidl.idl";
  37.  
  38. interface IServiceProvider;
  39.  
  40. //+---------------------------------------------------------------------------
  41. //
  42. //  Copyright (C) Microsoft Corporation, 1995-1997.
  43. //
  44. //  Contents:  IServiceProvoder interface definition
  45. //
  46. //----------------------------------------------------------------------------
  47.  
  48. cpp_quote("#ifndef _LPSERVICEPROVIDER_DEFINED")
  49. cpp_quote("#define _LPSERVICEPROVIDER_DEFINED")
  50.  
  51. [
  52.         object,
  53.         uuid(6d5140c1-7436-11ce-8034-00aa006009fa),
  54.         pointer_default(unique)
  55. ]
  56.  
  57.  
  58. interface IServiceProvider : IUnknown
  59. {
  60.     typedef [unique] IServiceProvider *LPSERVICEPROVIDER;
  61.  
  62.     [local]
  63.     HRESULT QueryService(
  64.         [in] REFGUID guidService,
  65.         [in] REFIID riid,
  66.         [out] void ** ppvObject);
  67.  
  68.     [call_as(QueryService)]
  69.     HRESULT RemoteQueryService(
  70.         [in] REFGUID guidService,
  71.         [in] REFIID riid,
  72.         [out, iid_is(riid)] IUnknown ** ppvObject);
  73. }
  74.  
  75. cpp_quote("#endif")
  76.