Return the process MsgPort of specific I/O handler
Source position: amigados.pas line 2227
function DeviceProc( |
const Name: PChar |
):PMsgPort; |
Name |
|
The name of the DOS device, INCLUDING the ':' |
A message port or nil
DeviceProc() is an obsolete function that returns the MsgPort responsible for a DOS device.
DeviceProc() will fail if you ask for the MsgPort of a device created with AssignPath() as there is no process to return. If the device requested is an assign, the IoErr() will contain the Lock to the directory (the function will return the device on which the lock is set).
You should really use GetDeviceProc(), as that function returns a more useful structure (TDevProc), that will persist until FreeDeviceProc() is called on it.
|
Finds a handler to send a message to |
|
|
Releases port returned by GetDeviceProc() |
|
|
Duplicate a lock |
|
|
Unlock a directory or file |
|
|
Examine a directory or file associated with a lock |