home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / dcom / drawctl / drawctl.idl < prev    next >
Text File  |  1998-04-02  |  1KB  |  58 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.         HRESULT Clear();
  23.     };
  24. [
  25.     uuid(48DDCC1B-1FE0-11D0-B91B-000000000000),
  26.     version(1.0),
  27.     helpstring("DrawCtl 1.0 Type Library")
  28. ]
  29. library DRAWCTLLib
  30. {
  31.     importlib("stdole32.tlb");
  32.  
  33.     [
  34.         uuid(48DDCC1D-1FE0-11D0-B91B-000000000000),
  35.         helpstring("DrawCtl Class")
  36.     ]
  37.     coclass CDrawCtl
  38.     {
  39.         [default] interface IDrawCtl;
  40.     };
  41.  
  42.     [
  43.         object,
  44.         uuid(330E9E75-DF48-11CF-8E2C-00A0C90DC94B),
  45.         dual,
  46.         helpstring("IDrawServ Interface"),
  47.         pointer_default(unique)
  48.     ]
  49.     interface IDrawServ : IDispatch
  50.     {
  51.         import "oaidl.idl";
  52.         HRESULT Draw(
  53.             [in] long x1, [in] long y1,
  54.             [in] long x2, [in] long y2,
  55.             [in] unsigned long col);
  56.     };
  57. };
  58.