Unit 'amigados' Package
[Overview][Constants][Types][Procedures and functions][Index] [#os4units]

DeviceProc

Return the process MsgPort of specific I/O handler

Declaration

Source position: amigados.pas line 2454

function DeviceProc(

  const Name: PChar

):PMsgPort;

Arguments

Name

  

The name of the DOS device, INCLUDING the ':'

Function result

A message port or nil

Description

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.

See also

GetDeviceProc

  

Finds a handler to send a message to

FreeDeviceProc

  

Releases port returned by GetDeviceProc()

DupLock

  

Duplicate a lock

UnLock

  

Unlock a directory or file

Examine

  

Examine a directory or file associated with a lock


Documentation generated on: 2021-07-30