home *** CD-ROM | disk | FTP | other *** search
/ BUG 4 / BUGCD1997_05.BIN / aplic / visualj / vjtrial.exe / RCDATA / CABINET / Unknwn.idl < prev    next >
Text File  |  1996-01-07  |  2KB  |  77 lines

  1. //+-------------------------------------------------------------------------
  2. //
  3. //  Microsoft Windows
  4. //  Copyright (C) Microsoft Corporation, 1992 - 1996.
  5. //
  6. //  File: unknwn.idl
  7. //
  8. //  Contents: IUnknown interface definition
  9. //
  10. //
  11. //--------------------------------------------------------------------------
  12.  
  13. #ifndef DO_NO_IMPORTS
  14. import "wtypes.idl";
  15. #endif
  16.  
  17. [
  18.   local,
  19.   object,
  20.   uuid(00000000-0000-0000-C000-000000000046),
  21.   pointer_default(unique)
  22. ]
  23.  
  24. interface IUnknown
  25. {
  26. cpp_quote("//+-------------------------------------------------------------------------")
  27. cpp_quote("//")
  28. cpp_quote("//  Microsoft Windows")
  29. cpp_quote("//  Copyright (C) Microsoft Corporation, 1992 - 1996.")
  30. cpp_quote("//")
  31. cpp_quote("//--------------------------------------------------------------------------")
  32.  
  33.  
  34.     typedef [unique] IUnknown *LPUNKNOWN;
  35.  
  36. cpp_quote("//////////////////////////////////////////////////////////////////" )
  37. cpp_quote("// IID_IUnknown and all other system IIDs are provided in UUID.LIB" )
  38. cpp_quote("// Link that library in with your proxies, clients and servers")
  39. cpp_quote("//////////////////////////////////////////////////////////////////" )
  40.  
  41.     HRESULT QueryInterface(
  42.     [in] REFIID riid,
  43.     [out] void **ppvObject);
  44.  
  45.     ULONG AddRef();
  46.  
  47.     ULONG Release();
  48. }
  49.  
  50. [
  51.     object,
  52.     uuid(00000001-0000-0000-C000-000000000046),
  53.     pointer_default(unique)
  54. ]
  55.  
  56. interface IClassFactory : IUnknown
  57. {
  58.  
  59.     typedef [unique] IClassFactory *LPCLASSFACTORY;
  60.  
  61.     [local]
  62.     HRESULT __stdcall CreateInstance(
  63.         [in, unique] IUnknown *pUnkOuter,
  64.         [in] REFIID riid,
  65.         [out] void **ppvObject);
  66.  
  67.     [call_as(CreateInstance)]
  68.     HRESULT __stdcall RemoteCreateInstance(
  69.         [in] REFIID riid,
  70.         [out, iid_is(riid)] IUnknown **ppvObject);
  71.  
  72.     HRESULT LockServer(
  73.         [in] BOOL fLock);
  74. }
  75.  
  76.  
  77.