home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 499.lha / InputDeviceToolKit / input.lzh / src / DeviceToolKits / Input / docs / DTInputCreateLike.doc < prev    next >
Encoding:
Text File  |  1991-01-05  |  2.0 KB  |  67 lines

  1.  
  2.                              Input Device ToolKit
  3.  
  4.  
  5.      DTInputCreateLike (1.1)                        DTInputCreateLike (1.1)
  6.  
  7.  
  8.      NAME
  9.  
  10.                DTInputCreateLike        Create and Initialize an Input
  11.                                         Control Structure Based on an
  12.                                         Existing Input Control Structure
  13.  
  14.      SYNOPSIS
  15.  
  16.                #include  "DeviceToolKits/Input.h"
  17.                #include  "DeviceToolKits/proto/Input.h"
  18.  
  19.                DTInput = DTInputCreateLike(OldDTInput,status);
  20.  
  21.                DTInput_t OldDTInput;              Existing Input control
  22.                                                   structure
  23.                LONG      *status;                 Returned status
  24.  
  25.                DTInput_t DTInput;                 Returned control
  26.                                                   structure
  27.  
  28.      FUNCTION
  29.  
  30.                This function creates and initializes a new Input device
  31.                control structure based on an existing Input device control
  32.                structure.  The following are allocated for the control
  33.                structure:  (Be sure to call DTInputFree to release these
  34.                resources)
  35.  
  36.                     Memory for the control structure.
  37.                     A private write reply port (no name, priority 0).
  38.                     A write request block (IOStdReq).
  39.                     A private timer reply port (no name, priority 0).
  40.                     A timer request block (timerequest).
  41.  
  42.                Upon successful allocation of all of the above, the
  43.                pertinent open device information from the existing control
  44.                structure is copied to the new control structure.
  45.  
  46.      RETURNS
  47.  
  48.                A Input control structure is returned for use in all other
  49.                DTInput calls.  If NULL is returned, the variable 'status'
  50.                will contain the error code.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                                                                           1
  62.           Printed September 10, 1990                                 Page  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.