home *** CD-ROM | disk | FTP | other *** search
-
- Input Device ToolKit
-
-
- DTInputCreateLike (1.1) DTInputCreateLike (1.1)
-
-
- NAME
-
- DTInputCreateLike Create and Initialize an Input
- Control Structure Based on an
- Existing Input Control Structure
-
- SYNOPSIS
-
- #include "DeviceToolKits/Input.h"
- #include "DeviceToolKits/proto/Input.h"
-
- DTInput = DTInputCreateLike(OldDTInput,status);
-
- DTInput_t OldDTInput; Existing Input control
- structure
- LONG *status; Returned status
-
- DTInput_t DTInput; Returned control
- structure
-
- FUNCTION
-
- This function creates and initializes a new Input device
- control structure based on an existing Input device control
- structure. The following are allocated for the control
- structure: (Be sure to call DTInputFree to release these
- resources)
-
- Memory for the control structure.
- A private write reply port (no name, priority 0).
- A write request block (IOStdReq).
- A private timer reply port (no name, priority 0).
- A timer request block (timerequest).
-
- Upon successful allocation of all of the above, the
- pertinent open device information from the existing control
- structure is copied to the new control structure.
-
- RETURNS
-
- A Input control structure is returned for use in all other
- DTInput calls. If NULL is returned, the variable 'status'
- will contain the error code.
-
-
-
-
-
-
-
-
-
-
- 1
- Printed September 10, 1990 Page
-
-
-
-
-
-
-