home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / common / msdev98 / template / atl / cmprgco.idl < prev    next >
Encoding:
INI File  |  1998-06-16  |  745 b   |  27 lines

  1. [!crlf]
  2.     [
  3.         object,
  4.         uuid(a817e7a2-43fa-11d0-9e44-00aa00b6770a),
  5.         dual,
  6.         helpstring("IComponentRegistrar Interface"),
  7.         pointer_default(unique)
  8.     ]
  9.     interface IComponentRegistrar : IDispatch
  10.     {
  11.         [id(1)]    HRESULT Attach([in] BSTR bstrPath);
  12.         [id(2)]    HRESULT RegisterAll();
  13.         [id(3)]    HRESULT UnregisterAll();
  14.         [id(4)]    HRESULT GetComponents([out] SAFEARRAY(BSTR)* pbstrCLSIDs, [out] SAFEARRAY(BSTR)* pbstrDescriptions);
  15.         [id(5)]    HRESULT RegisterComponent([in] BSTR bstrCLSID);
  16.         [id(6)] HRESULT UnregisterComponent([in] BSTR bstrCLSID);
  17.     };
  18. [!crlf]
  19.     [
  20.         uuid(a817e7a0-43fa-11d0-9e44-00aa00b6770a),
  21.         helpstring("ComponentRegistrar Class")
  22.     ]
  23.     coclass [!CoClassName]
  24.     {
  25.         [default] interface IComponentRegistrar;
  26.     };
  27.