All Databases
Inside Mac - Basic Toolbox
Control
OpenDriver
CloseDriver
FSRead
FSWrite
Status
KillIO
Control
Send control information to the device driver
#include <
Devices.h
>
Device Manager
OSErr
Control
(
refNum
,
csCode
,
csParamPtr
);
short
refNum
; driver reference as obtained from
OpenDriver
short
csCode
; value specifying information type
Ptr
csParamPtr
; address of parameter block containing control code
returns
Error Code
; 0=no error
Control
sends control information from memory to an open device driver.
refNum
is the reference number of an open device driver. See
OpenDriver
.
csCode
is a short specifying the kind of control code contained in the
parameter block.
csParamPtr
is the address of parameter block containing the control code.
Returns
: an operating system
Error Code
. It will be one of:
noErr (0) No error
controlErr (-17) Driver can't respond to Call
badUnitErr (-21)
refNum
doesn't match unit table
unitEmptyErr (-22)
refNum
specifies NIL handle in unit table
notOpenErr (-28) Driver not open
Notes: The values passed in csCode and pointed at by the parameter pointer vary,
depending on which driver is being called.
Referenced by (394):
About Graphics Devices
About the Serial Drivers
SerHShake
SerReset
SerSetBuf
SetTagBuffer
The 'cdev' Resource
A Topics (MacTech Index)
B Authors (MacTech Index)
C Topics (MacTech Index)
D Authors (MacTech Index)
F Topics (MacTech Index)
G Authors (MacTech Index)
L Languages (MacTech Index)
S Authors (MacTech Index)
V Topics (MacTech Index)
Vol 10 Issues (MacTech Index)
Vol 14 Issues (MacTech Index)
Vol 16 Issues (MacTech Index)
Vol 3 Issues (MacTech Index)
Vol 6 Issues (MacTech Index)
W Authors (MacTech Index)
January 92 - Object Master 1.0ß4 (Frameworks Archive)
January 94 - AAIS Prolog (Frameworks Archive)
January 94 - Editor's Notes (Frameworks Archive)
March 93 - Front-ending in MacApp (Frameworks Archive)
March 94 - Editor's Notes (Frameworks Archive)
May 93 - A CASE tool for OOA, OOD and OOP (Frameworks Archive)
November 92 - Comparing C-Based Object Systems (Frameworks Archive)
November 93 - Editor’s Notes: Overview (Frameworks Archive)
Apple Event Mgr (Inside Mac - Index)
CntrlParam (Inside Mac - Index)
Control Panel (Inside Mac - Index)
Device Control Entry (Inside Mac - Index)
Device Manager (Inside Mac - Index)
Printing Manager (Inside Mac - Index)
Sound Data Chunk (Inside Mac - Index)
Sound Manager (Inside Mac - Index)
Standard Resource Types (Inside Mac - Index)
VolumeType (Inside Mac - Index)
nextControl (Inside Mac - Index)
reqPointer (Inside Mac - Index)
ttSelectedOpen (Inside Mac - Index)
userFlags (Inside Mac - Index)
vAxisOnly (Inside Mac - Index)
venice (Inside Mac - Index)
wrUnderrun (Inside Mac - Index)
zipGetZoneList (Inside Mac - Index)
ASPAbortOS (Inside Mac - AppleTalk)
ATPKillAllGetReq (Inside Mac - AppleTalk)
ATPReqCancel (Inside Mac - AppleTalk)
ATPRspCancel (Inside Mac - AppleTalk)
About the AppleTalk Manager-1 (Inside Mac - AppleTalk)
CCB Sizes (Inside Mac - AppleTalk)
Calling the .XPP Driver (Inside Mac - AppleTalk)
Connection Listener Setup (Inside Mac - AppleTalk)
How to Access the .XPP Driver (Inside Mac - AppleTalk)
Making a Connection Listener (Inside Mac - AppleTalk)
Opening and Maintaining an ADSP Connection (Inside Mac - AppleTalk)
The .XPP Driver (Inside Mac - AppleTalk)
The Preferred Interface (Inside Mac - AppleTalk)
Writing a Connection Routine (Inside Mac - AppleTalk)
A Sample of an Extension to the Monitors Control Panel (Inside Mac - Basic Toolbox)
About Color QuickDraw and System 7.0 (Inside Mac - Basic Toolbox)
About Control Panels (Inside Mac - Basic Toolbox)
About Deferred Tasks (Inside Mac - Basic Toolbox)
About Graphics Devices (Inside Mac - Basic Toolbox)
About The Control Panel (Inside Mac - Basic Toolbox)
About The Help Manager (Inside Mac - Basic Toolbox)
About the Device Manager (Inside Mac - Basic Toolbox)
About the Memory Manager (Inside Mac - Basic Toolbox)
Application Resource Types (Inside Mac - Basic Toolbox)
Auxiliary Controls (Inside Mac - Basic Toolbox)
BackPat (Inside Mac - Basic Toolbox)
BeginUpdate (Inside Mac - Basic Toolbox)
Color Design for System 7.0 (Inside Mac - Basic Toolbox)
Custom Controls (Inside Mac - Basic Toolbox)
Designing an Extension for the Monitors Control Panel (Inside Mac - Basic Toolbox)
Dialog Boxes (Inside Mac - Basic Toolbox)
DiskEject (Inside Mac - Basic Toolbox)
DisposeControl (Inside Mac - Basic Toolbox)
DragControl (Inside Mac - Basic Toolbox)
Draw1Control (Inside Mac - Basic Toolbox)
DrawControls (Inside Mac - Basic Toolbox)
Enhanced User Interface (Inside Mac - Basic Toolbox)
FindControl (Inside Mac - Basic Toolbox)
FindFolder (Inside Mac - Basic Toolbox)
GetAuxCtl (Inside Mac - Basic Toolbox)
GetCRefCon (Inside Mac - Basic Toolbox)
GetCTitle (Inside Mac - Basic Toolbox)
GetCVariant (Inside Mac - Basic Toolbox)
GetCaretTime (Inside Mac - Basic Toolbox)
GetCtlAction (Inside Mac - Basic Toolbox)
GetCtlMax (Inside Mac - Basic Toolbox)
GetCtlMin (Inside Mac - Basic Toolbox)
GetCtlValue (Inside Mac - Basic Toolbox)
GetDCtlEntry (Inside Mac - Basic Toolbox)
GetDblTime (Inside Mac - Basic Toolbox)
GetNewControl (Inside Mac - Basic Toolbox)
GlobalToLocal (Inside Mac - Basic Toolbox)
HideControl (Inside Mac - Basic Toolbox)
HiliteControl (Inside Mac - Basic Toolbox)
Including Another Control Panel Definition in a Monitors Extension File (Inside Mac - Basic Toolbox)
KillControls (Inside Mac - Basic Toolbox)
ModalDialog (Inside Mac - Basic Toolbox)
Monitors Control Panel (Inside Mac - Basic Toolbox)
MoveControl (Inside Mac - Basic Toolbox)
NewCDialog (Inside Mac - Basic Toolbox)
NewControl (Inside Mac - Basic Toolbox)
PBControlSync (Inside Mac - Basic Toolbox)
PBStatusSync (Inside Mac - Basic Toolbox)
PenPat (Inside Mac - Basic Toolbox)
PrCtlCall (Inside Mac - Basic Toolbox)
PrDrvrDCE (Inside Mac - Basic Toolbox)
ReadDateTime (Inside Mac - Basic Toolbox)
Running Macintosh Programs Under A/UX (Inside Mac - Basic Toolbox)
ScriptUtil (Inside Mac - Basic Toolbox)
SerClrBrk (Inside Mac - Basic Toolbox)
SerHShake (Inside Mac - Basic Toolbox)
SerReset (Inside Mac - Basic Toolbox)
SerSetBrk (Inside Mac - Basic Toolbox)
SerSetBuf (Inside Mac - Basic Toolbox)
SetCRefCon (Inside Mac - Basic Toolbox)
SetCTitle (Inside Mac - Basic Toolbox)
SetCtlAction (Inside Mac - Basic Toolbox)
SetCtlColor (Inside Mac - Basic Toolbox)
SetCtlMax (Inside Mac - Basic Toolbox)
SetCtlMin (Inside Mac - Basic Toolbox)
SetCtlValue (Inside Mac - Basic Toolbox)
SetDateTime (Inside Mac - Basic Toolbox)
SetDeskCPat (Inside Mac - Basic Toolbox)
SetMenuFlash (Inside Mac - Basic Toolbox)
SetTagBuffer (Inside Mac - Basic Toolbox)
SetTime (Inside Mac - Basic Toolbox)
ShowControl (Inside Mac - Basic Toolbox)
SizeControl (Inside Mac - Basic Toolbox)
System Folder (Inside Mac - Basic Toolbox)
TEIdle (Inside Mac - Basic Toolbox)
TestControl (Inside Mac - Basic Toolbox)
The 'DITL' Resource (Inside Mac - Basic Toolbox)
The 'INIT' Resource (Inside Mac - Basic Toolbox)
The 'cdev' Resource (Inside Mac - Basic Toolbox)
TrackControl (Inside Mac - Basic Toolbox)
Trash (Inside Mac - Basic Toolbox)
UpdtControl (Inside Mac - Basic Toolbox)
WriteParam (Inside Mac - Basic Toolbox)
Writing Control Panel Files (Inside Mac - Basic Toolbox)
cdev (Inside Mac - Basic Toolbox)
signature resource (Inside Mac - Basic Toolbox)
General Guidelines for the User Interface (Inside Mac - DAM-Ed-PPC-Slot)
Searching for Disabled SResource Data Structures (Inside Mac - DAM-Ed-PPC-Slot)
Setting Up Authenticated Sessions (Inside Mac - DAM-Ed-PPC-Slot)
Specifying Port Names and Location Names (Inside Mac - DAM-Ed-PPC-Slot)
SndPlayDoubleBuffer (Inside Mac - Sound Mgr)
About the Script Manager and System 7.0 (Inside Mac - WWSO Mgr)
Keyboard Types and Modifier Bits (Inside Mac - WWSO Mgr)
Related Worldwide Components (Inside Mac - WWSO Mgr)
The Keyboard (Inside Mac - WWSO Mgr)
Anchored Variables (MacTech Vol 01-1984-5)
Christmas Graphics (MacTech Vol 01-1984-5)
Constructing Apps (MacTech Vol 01-1984-5)
DAs in C (MacTech Vol 01-1984-5)
Function Resources (MacTech Vol 01-1984-5)
HFS File Structure (MacTech Vol 01-1984-5)
IO Routines (MacTech Vol 01-1984-5)
Letters, Mousehole (MacTech Vol 01-1984-5)
Listbox in Dialog (MacTech Vol 01-1984-5)
Networking (MacTech Vol 01-1984-5)
Paint Simulator (MacTech Vol 01-1984-5)
Sep 85 Mousehole (MacTech Vol 01-1984-5)
Sound Wired (MacTech Vol 01-1984-5)
Text Window (MacTech Vol 01-1984-5)
Toolbox Calls (MacTech Vol 01-1984-5)
Using Controls (MacTech Vol 01-1984-5)
Using Windows (MacTech Vol 01-1984-5)
ATalk Connections (MacTech Vol 02-1986)
Apr 86 Tech Questions (MacTech Vol 02-1986)
BitNapper (MacTech Vol 02-1986)
Button DA (MacTech Vol 02-1986)
Code Re-construction (MacTech Vol 02-1986)
DA Prototype (MacTech Vol 02-1986)
Definition Routines (MacTech Vol 02-1986)
Fat Bits (MacTech Vol 02-1986)
Generic App (MacTech Vol 02-1986)
Globals (MacTech Vol 02-1986)
Keyboard Sleuth (MacTech Vol 02-1986)
Menu Selection (MacTech Vol 02-1986)
Resource Editors (MacTech Vol 02-1986)
Serial Port Access (MacTech Vol 02-1986)
Terminal Emulation (MacTech Vol 02-1986)
AppleTalk Fundamentals (MacTech Vol 03-1987)
Control Panel Files (MacTech Vol 03-1987)
Controls FORTRAN (MacTech Vol 03-1987)
File, Disk Servers (MacTech Vol 03-1987)
Forth DA (MacTech Vol 03-1987)
GoodbyE Kiss (MacTech Vol 03-1987)
Jul 87 Mousehole (MacTech Vol 03-1987)
Life (MacTech Vol 03-1987)
Monkey CDEV (MacTech Vol 03-1987)
Oct 87 Letters (MacTech Vol 03-1987)
Oct 87 Mousehole (MacTech Vol 03-1987)
Printer Resource 2 (MacTech Vol 03-1987)
Rez-ervations (MacTech Vol 03-1987)
Rom Ref DA (MacTech Vol 03-1987)
SCSI Intro (MacTech Vol 03-1987)
Sep 87 Letters (MacTech Vol 03-1987)
Data Conversion (MacTech Vol 04-1988)
Devices (MacTech Vol 04-1988)
Feb 88 Mousehole (MacTech Vol 04-1988)
Font Dialog (MacTech Vol 04-1988)
IAC Driver 2 (MacTech Vol 04-1988)
Jan 88 Letters (MacTech Vol 04-1988)
Jan 88 Mousehole (MacTech Vol 04-1988)
Keyboard Wars (MacTech Vol 04-1988)
MacBox (MacTech Vol 04-1988)
MacHack (MacTech Vol 04-1988)
MatLab (MacTech Vol 04-1988)
Measure Load (MacTech Vol 04-1988)
Modifying SCSI (MacTech Vol 04-1988)
Pop-up CDEF (MacTech Vol 04-1988)
SCSI Driver (MacTech Vol 04-1988)
Screen Dump (MacTech Vol 04-1988)
Boot Disk Icon (MacTech Vol 05-1989)
CDEF Messages (MacTech Vol 05-1989)
Cursor Wrap (MacTech Vol 05-1989)
Designer CDEF (MacTech Vol 05-1989)
Doodats (MacTech Vol 05-1989)
Finder Icons (MacTech Vol 05-1989)
IAC in Sys 7 (MacTech Vol 05-1989)
INIT in C (MacTech Vol 05-1989)
Icon in DA Menu (MacTech Vol 05-1989)
Jan 89 Mousehole (MacTech Vol 05-1989)
List of Controls (MacTech Vol 05-1989)
MIDI User Interface (MacTech Vol 05-1989)
Mar 89 Mousehole (MacTech Vol 05-1989)
Meter Control (MacTech Vol 05-1989)
Meter Control (code) (MacTech Vol 05-1989)
Prograph 1.1 (MacTech Vol 05-1989)
Real-time Driver (MacTech Vol 05-1989)
Screen Saver (MacTech Vol 05-1989)
Scroll Bar CDEF (MacTech Vol 05-1989)
Scrollbars XCMD (MacTech Vol 05-1989)
System CDEV (MacTech Vol 05-1989)
Advanced Help (MacTech Vol 06-1990)
Cursor Control 1 (MacTech Vol 06-1990)
Cursor Control 2 (MacTech Vol 06-1990)
Debugging Code Res (MacTech Vol 06-1990)
Dec 90 Mousehole (MacTech Vol 06-1990)
Designing an Object (MacTech Vol 06-1990)
Discrete Simulations (MacTech Vol 06-1990)
Fine Tune MPW (MacTech Vol 06-1990)
Ghost Fonts (MacTech Vol 06-1990)
Inside Mac XCMD (MacTech Vol 06-1990)
LS FORTRAN 2.0 (MacTech Vol 06-1990)
New Toolbox (MacTech Vol 06-1990)
New Toolbox (code) (MacTech Vol 06-1990)
Printing Windows (MacTech Vol 06-1990)
Resorcerer (MacTech Vol 06-1990)
Serius89, Freditor (MacTech Vol 06-1990)
Spiffy Color 1 (MacTech Vol 06-1990)
Spiffy Color 2 (MacTech Vol 06-1990)
Track, Field 1 (MacTech Vol 06-1990)
Track, Field 2 (MacTech Vol 06-1990)
cdev Debugging (MacTech Vol 06-1990)
Jul 91 Mousehole (MacTech Vol 07-1991)
Kolorize (MacTech Vol 07-1991)
MacWorld 91 (MacTech Vol 07-1991)
MultiWindow DA (MacTech Vol 07-1991)
OOP Architectures 1 (MacTech Vol 07-1991)
OOP Code Resources (MacTech Vol 07-1991)
Object Toolbox (MacTech Vol 07-1991)
Self Paced Lessons (MacTech Vol 07-1991)
Vital Signs (MacTech Vol 07-1991)
Apple Menu Utils (MacTech Vol 08-1992)
Function Logging (MacTech Vol 08-1992)
Jun 92 Mousehole (MacTech Vol 08-1992)
Macsbug Template (MacTech Vol 08-1992)
Nov 92 Newsbits (MacTech Vol 08-1992)
Print Dialogs (MacTech Vol 08-1992)
ScreenPicker (MacTech Vol 08-1992)
Sep 92 Mousehole (MacTech Vol 08-1992)
ViewIt (MacTech Vol 08-1992)
Virus Detection (MacTech Vol 08-1992)
AppleScript 1.0 (MacTech Vol 09-1993)
Color Basics (MacTech Vol 09-1993)
ColorMondrian (MacTech Vol 09-1993)
DialogKeyFilter (MacTech Vol 09-1993)
FORTRAN Debugging (MacTech Vol 09-1993)
Feb 93 Tips, Tidbits (MacTech Vol 09-1993)
Forth News, Tricks (MacTech Vol 09-1993)
FutureBASIC (MacTech Vol 09-1993)
PictButton (MacTech Vol 09-1993)
WWDC 93 (MacTech Vol 09-1993)
Control Strip (MacTech Vol 10-1994)
Dec 94 Dialog (MacTech Vol 10-1994)
Internet (MacTech Vol 10-1994)
May 94 Newsbits (MacTech Vol 10-1994)
Object Master (MacTech Vol 10-1994)
Oct 94 Newsbits (MacTech Vol 10-1994)
Software 94 (MacTech Vol 10-1994)
Thread Manager (MacTech Vol 10-1994)
Apr 95 Dialog Box (MacTech Vol 11-1995)
Apr 95 Newsbits (MacTech Vol 11-1995)
Frontier CGIs (MacTech Vol 11-1995)
Jul 95 Newsbits (MacTech Vol 11-1995)
Jun 95 Newsbits (MacTech Vol 11-1995)
Nov 95 Crabbs Apple (MacTech Vol 11-1995)
Apr 96 Newsbits (MacTech Vol 12-1996)
Cyberdog Intro (MacTech Vol 12-1996)
IDE Review 96 (MacTech Vol 12-1996)
Java Events (MacTech Vol 12-1996)
OS8 Checklist (MacTech Vol 12-1996)
Oct 96 Top 10 (MacTech Vol 12-1996)
QC Review (MacTech Vol 12-1996)
Revisionist History (MacTech Vol 12-1996)
Voodoo Review (MacTech Vol 12-1996)
WWDC 96 Report (MacTech Vol 12-1996)
Appearance Extension (MacTech Vol 13-1997)
Apr 97 Newsbits (MacTech Vol 13-1997)
Apr 97 URLs (MacTech Vol 13-1997)
Aug 97 - Macintosh Q and A (MacTech Vol 13-1997)
Aug 97 - NewsBits (MacTech Vol 13-1997)
Aug 97 Viewpoint (MacTech Vol 13-1997)
Building Beans (MacTech Vol 13-1997)
Jul 97 - Macintosh Q and A (MacTech Vol 13-1997)
Jul 97 Factory Floor (MacTech Vol 13-1997)
Location Manager Pref Treatment (MacTech Vol 13-1997)
Multifile Dialogs in CPX (MacTech Vol 13-1997)
Oct 97 - NewsBits (MacTech Vol 13-1997)
Software Test Automation (MacTech Vol 13-1997)
WebObjects Overview (MacTech Vol 13-1997)
Appearance-savvy Apps (MacTech Vol 14-1998)
BBEdit Plug-In Programming (MacTech Vol 14-1998)
Contextual Menu Basics (MacTech Vol 14-1998)
Dec 98 Newsbits (MacTech Vol 14-1998)
Libraries On The Mac (MacTech Vol 14-1998)
Mar 98 - NewsBits (MacTech Vol 14-1998)
Oct 98 Tips (MacTech Vol 14-1998)
OpenGL for Mac Users 1 (MacTech Vol 14-1998)
Sep 98 Newsbits (MacTech Vol 14-1998)
Sep 98 Prog Challenge (MacTech Vol 14-1998)
Version Control And The Developer (MacTech Vol 14-1998)
Vol 14 Issues (MacTech Vol 14-1998)
After Effects Plugins (MacTech Vol 15-1999)
AppleShare IP Additions (MacTech Vol 15-1999)
Are You Being Served (MacTech Vol 15-1999)
Jan 99 Factory Floor (MacTech Vol 15-1999)
Jul 99 Getting Started (MacTech Vol 15-1999)
Mac Net Manage 101 (MacTech Vol 15-1999)
Mac OS 9 (MacTech Vol 15-1999)
May 99 Factory Floor (MacTech Vol 15-1999)
Open Source Macintosh (MacTech Vol 15-1999)
Scripting Languages (MacTech Vol 15-1999)
The LayerGroup (MacTech Vol 15-1999)
Wireless Networking (MacTech Vol 15-1999)
Control Freaks Alert (MacTech Vol 16-2000)
Jul 00 Getting Started (MacTech Vol 16-2000)
MindVision Installer (MacTech Vol 16-2000)
Networking REALbasic (MacTech Vol 16-2000)
Oct 00 Online (MacTech Vol 16-2000)
Vol 16 Issues (MacTech Vol 16-2000)
WebObjects 4 Everyone (MacTech Vol 16-2000)
2001 A Space Odyssey (MacTech Vol 17-2001)
Carbonization 101 (MacTech Vol 17-2001)
Feb 01 Viewpoint (MacTech Vol 17-2001)
Help On The Way (MacTech Vol 17-2001)
DEVELOP by Author (J-M) (develop - Index)
January 90 - APPLE II Q&A (develop - 1990)
July 90 - MACINTOSH DISPLAY CARD 8*24 GC: THE NAKED TRUTH (develop - 1990)
October 90 - SYSTEM 7.0 SNEAKS (develop - 1990)
October 90 - WRITING A DEVICE DRIVER IN C++ (WHAT? IN C++?) (develop - 1990)
Autumn 91 - MACINTOSH Q & A (develop - 1991)
Spring 91 - MACTCP COOKBOOK: CONSTRUCTING NETWORK-AWARE APPLICATIONS (develop - 1991)
December 92 - ANOTHER TAKE ON GLOBALS IN STANDALONE CODE (develop - 1992)
Winter 92 - TRACKS: A NEW TOOL FOR DEBUGGING DRIVERS (develop - 1992)
December 93 - INTERNATIONAL NUMBER FORMATTING (develop - 1993)
June 93 - 3-D ROTATION USING A 2-D INPUT DEVICE (develop - 1993)
September 93 - QUICKDRAW GX FOR POSTSCRIPT PROGRAMMERS (develop - 1993)
December 94 - KON & BAL'S PUZZLE PAGE (develop - 1994)
December 94 - LETTERS (develop - 1994)
June 94 - Displaying Hierarchical Lists (develop - 1994)
March 94 - DEBUGGING ON POWERPC (develop - 1994)
March 94 - KON & BAL'S PUZZLE PAGE (develop - 1994)
December 95 - Balance Of Power: Advanced Performance Profiling (develop - 1995)
December 95 - Letters (develop - 1995)
Develop Index 1995 (develop - 1995)
March 95 - KON & BAL'S PUZZLE PAGE (develop - 1995)
September 95 - MPW Tips and Tricks: Customizing Source Control With SourceServer (develop - 1995)
September 95 - Multipane Dialogs (develop - 1995)
December 96 - KON & BAL'S PUZZLE PAGE: Folder Fun (develop - 1996)
December 96 - MPW Tips and Tricks: Automated Editing With StreamEdit (develop - 1996)
September 96 - Letters (develop - 1996)
September 96 - MPW TIPS AND TRICKS: Automated Editing With StreamEdit (develop - 1996)
March 97 - Kon & Bal's Puzzle Page (develop - 1997)