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

AssignPath

Creates an assignment to a specified path

Declaration

Source position: amigados.pas line 1589

function AssignPath(

  const name: pCHAR;

  const path: pCHAR

):LongBool;

function AssignPath(

  const name: string;

  const path: pCHAR

):Boolean;

function AssignPath(

  const name: pCHAR;

  const path: string

):Boolean;

function AssignPath(

  const name: string;

  const path: string

):Boolean;

Arguments

name

  

Name of device to be assigned (without trailing ':')

path

  

Name of late assignment to be resolved at each reference

Function result

IoErr() gives more information of fail

Arguments

name

  

Name of device to be assigned (without trailing ':')

path

  

Name of late assignment to be resolved at each reference

Arguments

name

  

Name of device to be assigned (without trailing ':')

path

  

Name of late assignment to be resolved at each reference

Arguments

name

  

Name of device to be assigned (without trailing ':')

path

  

Name of late assignment to be resolved at each reference

Description

Sets up a assignment that is expanded upon EACH reference to the name. This is implemented through a new device list type. The path (a string) would be attached to the node. When the name is referenced (DosOpen("FOO:xyzzy"...), the string will be used to determine where to do the open. No permanent lock will be part of it. For example, you could AssignPath() c2: to df2:c, and references to c2: would go to df2:c, even if you change disks.

The other major advantage is assigning things to unmounted volumes, which will be requested upon access (useful in startup sequences).


Documentation generated on: 2021-07-30