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

GetProgramName

Returns the current program name

Declaration

Source position: amigados.pas line 2296

function GetProgramName(

  Buf: PChar;

  Len: LongInt

):LongBool;

Arguments

Buf

  

Buffer to hold extracted name

Len

  

Number of bytes of space in buffer

Description

Extracts the program name from the CLI structure and puts it into the buffer. If the buffer is too small, the name is truncated. 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

SetProgramName

  

Sets the name of the program being run


Documentation generated on: 2021-07-30