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

RemDevice

Remove a device from the system

Declaration

Source position: exec.pas line 1838

function RemDevice(

  Device: PDevice

):LongWord;

Arguments

Device

  

A pointer to a device node

Description

This function calls the device's EXPUNGE vector, which requests that a device delete itself. The device may refuse to do this if it is busy or currently open. This is not typically called by user code.

There are certain, limited circumstances where it may be appropriate to attempt to specifically flush a certain device.

See also

AddDevice

  

Adds a device to the system

OpenDevice

  

Open a device for use

CloseDevice

  

Close access to a device.


Documentation generated on: 2021-07-30