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

GetCurrentDirName

Returns the current directory name

Declaration

Source position: amigados.pas line 1654

function GetCurrentDirName(

  buf: pCHAR;

  len: LongInt

):LongBool;

Arguments

buf

  

Number of bytes of space in buffer

Function result

Buffer to hold extracted name

Description

Extracts the current directory name from the CLI structure and puts it into the buffer. If the buffer is too small, the name is truncated appropriately and a failure code returned. If no CLI structure is present, a null string is returned in the buffer, and failure from the call (with IoErr() = ERROR_OBJECT_WRONG_TYPE);

See also

SetCurrentDirName

  

Sets the directory name for the process


Documentation generated on: 2021-07-30