home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / freethrd / server / iball.idl < prev    next >
Encoding:
Text File  |  1998-04-03  |  1.1 KB  |  45 lines

  1. // IBall.idl : IDL source for IBall.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (IBall.tlb) and marshalling code.
  5.  
  6. import "unknwn.idl";
  7.  
  8.     [
  9.         object,
  10.         uuid(F002da32-0000-0000-c000-000000000046),
  11.         helpstring("IBall Interface"),
  12.         pointer_default(unique)
  13.     ]
  14.     interface IBall : IUnknown
  15.     {
  16.         import "oaidl.idl";
  17.  
  18.         // IBall property
  19.         [id(1), propget] HRESULT Ball([out] POINT* pOrg, [out] POINT* pExt, [out, retval] COLORREF* pcrColor);
  20.  
  21.         // IBall methods
  22.         [id(2)] HRESULT Reset([in] RECT* pNewRect, [in] short nBallSize);
  23.         [id(3)] HRESULT Move([in] BOOL bAlive, [out, retval] BOOL* bRet);
  24.     };
  25.  
  26. [
  27.     uuid(F002da31-0000-0000-c000-000000000046),
  28.     version(1.0),
  29.     helpstring("IBall 1.0 Type Library")
  30. ]
  31. library BallLib
  32. {
  33.     importlib("stdole32.tlb");
  34.     [
  35.         uuid(F002da33-0000-0000-c000-000000000046),
  36.         helpstring("Ball Class")
  37.     ]
  38.     coclass Ball
  39.     {
  40.         [default] interface IBall;
  41.     };
  42.  
  43. };
  44.  
  45.