home *** CD-ROM | disk | FTP | other *** search
/ PC Press 1997 July / Sezamfile97_2.iso / windows / program / activex / axtsamp.exe / TSBRANCH.EXE / MARSHAL / MICARS.IDL < prev   
Text File  |  1996-12-29  |  3KB  |  72 lines

  1. /*+==========================================================================
  2.   File:      MICARS.IDL
  3.  
  4.   Summary:   Interface definition file for use by the MIDL compiler.
  5.              Defines following interfaces: ICar, IUtilityCar, and
  6.              ICruiseCar. Part of the MARSHAL code sample which is used by
  7.              later code samples in the series (eg, the LOCSERVE and
  8.              LOCCLIEN local server and client lessons).
  9.  
  10.              Compilation of this file using the MIDL.EXE compiler produces
  11.              additional source files MICARS.H, MICARS_I.C, MICARS_P.C,
  12.              and DLLDATA.C.  They are in turn compiled by the MARSHAL
  13.              Makefile to produce the MARSHAL.DLL server which is used by
  14.              later code samples to marshal the interfaces it handles.
  15.  
  16.              For a comprehensive tutorial code tour of MARSHAL's
  17.              contents and offerings see the tutorial MARSHAL.HTM file.
  18.  
  19.   Origin:    11-24-95: atrent - Created for the MARSHAL lesson and for
  20.              later use by the LOCSERVE & LOCCLIEN code samples.  Editor
  21.              inheritance from the DLLSERVE source.
  22.  
  23. ----------------------------------------------------------------------------
  24.   This file is part of the Microsoft ActiveX Tutorial Code Samples.
  25.  
  26.   Copyright (C) Microsoft Corporation, 1997.  All rights reserved.
  27.  
  28.   This source code is intended only as a supplement to Microsoft
  29.   Development Tools and/or on-line documentation.  See these other
  30.   materials for detailed information regarding Microsoft code samples.
  31.  
  32.   THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  33.   KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  34.   IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  35.   PARTICULAR PURPOSE.
  36. ==========================================================================+*/
  37.  
  38. [uuid(0002da00-0000-0000-c000-000000000046),
  39.     object
  40. ]
  41. interface ICar : IUnknown
  42. {
  43.   import "unknwn.idl";
  44.  
  45.   HRESULT Shift([in] short nGear);
  46.   HRESULT Clutch([in] short nEngaged);
  47.   HRESULT Speed([in] short nMph);
  48.   HRESULT Steer([in] short nAngle);
  49. }
  50.  
  51. [uuid(0002da01-0000-0000-c000-000000000046),
  52.     object
  53. ]
  54. interface IUtility : IUnknown
  55. {
  56.   import "unknwn.idl";
  57.  
  58.   HRESULT Offroad([in] short nGear);
  59.   HRESULT Winch([in] short nRpm);
  60. }
  61.  
  62. [uuid(0002da02-0000-0000-c000-000000000046),
  63.     object
  64. ]
  65. interface ICruise : IUnknown
  66. {
  67.   import "unknwn.idl";
  68.  
  69.   HRESULT Engage([in] BOOL bOnOff);
  70.   HRESULT Adjust([in] BOOL bUpDown);
  71. }
  72.