home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / atl / dcom / drawctl / drawctl.idl < prev    next >
Text File  |  1998-03-26  |  1KB  |  57 lines

  1. // DrawCtl.idl : IDL source for DrawCtl.dll
  2. //
  3.  
  4. // This file will be processed by the MIDL tool to
  5. // produce the type library (DrawCtl.tlb) and marshalling code.
  6.  
  7.     
  8.  
  9.     [
  10.         object,
  11.         uuid(48DDCC1E-1FE0-11D0-B91B-000000000000),
  12.         dual,
  13.         helpstring("IDrawCtl Interface"),
  14.         pointer_default(unique)
  15.     ]
  16.     interface IDrawCtl : IDispatch
  17.     {
  18.         import "oaidl.idl";
  19.  
  20.         HRESULT Connect([in]BSTR pMachineName);
  21.         HRESULT Disconnect();
  22.     };
  23. [
  24.     uuid(48DDCC1B-1FE0-11D0-B91B-000000000000),
  25.     version(1.0),
  26.     helpstring("DrawCtl 1.0 Type Library")
  27. ]
  28. library DRAWCTLLib
  29. {
  30.     importlib("stdole32.tlb");
  31.  
  32.     [
  33.         uuid(48DDCC1D-1FE0-11D0-B91B-000000000000),
  34.         helpstring("DrawCtl Class")
  35.     ]
  36.     coclass CDrawCtl
  37.     {
  38.         [default] interface IDrawCtl;
  39.     };
  40.  
  41.     [
  42.         object,
  43.         uuid(330E9E75-DF48-11CF-8E2C-00A0C90DC94B),
  44.         dual,
  45.         helpstring("IDrawServ Interface"),
  46.         pointer_default(unique)
  47.     ]
  48.     interface IDrawServ : IDispatch
  49.     {
  50.         import "oaidl.idl";
  51.         HRESULT Draw(
  52.             [in] long x1, [in] long y1,
  53.             [in] long x2, [in] long y2,
  54.             [in] unsigned long col);
  55.     };
  56. };
  57.