78 API Command Reference
Personal488 User's Manual For Windows95 and Windows NT
MakeNewDevice
Syntax
DevHandleT WINAPI MakeNewDevice(LPSTR iName, LPSTR aName,BYTE
primary,BYTE secondary,TermPT In,TermPT Out,DWORD tOut);
devHandle
refers to the new external device.
iName
is the user name of the interface on which the device is to be created.
aName
is the user name of the device.
primary
and
secondary
are the secondary and primary bus addresses to be specified.
For no secondary address, a
-1
must be specified.
In
and
Out
are pointers to terminator structures specified to set up the respective input and
output terminators of the device.
tOut
is the timeout parameter to be specified.
Returns
-1
if error
otherwise, the
DevHandleT
of the new device, based on the parameters specified.
Mode
Any
Bus State
None
Example
DevHandleT anotherDevice;
anotherDevice =
MakeNewDevice(“IEEE0”,
“Scope”,13,-1,NULL,
NULL,10000);
Specifies parameters for: Pointer to the interface,
pointer to the device name,
primary
and
secondary
addresses, pointers to the term
In
and
Out
structures, and timeout in
milliseconds.
See Also
MakeDevice, KeepDevice, RemoveDevice, OpenName, Close
This is a new function in Driver488/W95 and in Driver488/WNT. This function is similar to the
MakeDevice
function except that
MakeNewDevice
will create a new device based on the parameters
specified, instead of simply cloning an existing device.
The
MakeNewDevice
command does not save the parameters of the newly created device in the system
registry. To keep the device, it is necessary to call the
KeepDevice
function.
Note:
The
MakeNewDevice
command will only create, not save, a new device. Interface
descriptions are created and maintained by the configuration utility and the IEEE 488
configuration applet in the Windows Control Panel.
Summary of Contents for OMB-PER-488/W95
Page 1: ......
Page 4: ...ii Personal488 User s Manual For Windows 95 and Windows NT Notes...
Page 38: ...32 Personal488 with GP488B Personal488 User s Manual For Windows95 and Windows NT Notes...
Page 52: ...46 Driver488 W95 Driver488 WNT Personal488 User s Manual For Windows95 and Windows NT Notes...
Page 136: ...130 Appendix Personal488 User s Manual For Windows95 and Windows NT Notes...
Page 139: ...Personal488 User s Manual For Windows 95 and Windows NT Index 133 Notes...
Page 142: ...136 Abbreviations Personal488 User s Manual For Windows95 and Windows NT Notes...