Delphi/Lazarus - RED Brick

Dies ist die Beschreibung der Delphi/Lazarus API Bindings für den RED Brick. Allgemeine Informationen über die Funktionen und technischen Spezifikationen des RED Brick sind in dessen Hardware Beschreibung zusammengefasst.

Eine Installationanleitung für die Delphi/Lazarus API Bindings ist Teil deren allgemeine Beschreibung.

Beispiele

Der folgende Beispielcode ist Public Domain (CC0 1.0).

Read File

Download (ExampleReadFile.pas)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
program ExampleReadFile;

{$ifdef MSWINDOWS}{$apptype CONSOLE}{$endif}
{$ifdef FPC}{$mode OBJFPC}{$H+}{$endif}

uses
  SysUtils, IPConnection, BrickRED;

type
  TExample = class
  private
    ipcon: TIPConnection;
    red: TBrickRED;
  public
    procedure CheckError(context: string; errorCode: byte);
    function AllocateString(sessionId: word; buffer: string): word;
    procedure ReadFile(remotePath: string; localPath: string);
    procedure Execute;
  end;

const
  HOST = 'localhost';
  PORT = 4223;
  UID = 'XXYYZZ'; { Change XXYYZZ to the UID of your RED Brick }

var
  e: TExample;

procedure TExample.CheckError(context: string; errorCode: byte);
begin
  if (errorCode <> 0) then begin
    raise Exception.Create(Format('%s error occurred: %d', [context, errorCode]));
  end;
end;

function TExample.AllocateString(sessionId: word; buffer: string): word;
var errorCode: byte; stringId: word;
begin
  if (Length(buffer) > 60) then begin
    { FIXME: Currently this helper function only supports strings up to 60 characters }
    raise Exception.Create('String too long');
  end;
  red.AllocateString(Length(buffer), buffer, sessionId, errorCode, stringId);
  CheckError('AllocateString', errorCode);
  result := stringId;
end;

procedure TExample.ReadFile(remotePath: string; localPath: string);
var errorCode: byte; sessionId: word; remotePathStringId: word; remoteFileId: word;
    buffer: TArray0To61OfUInt8; lengthRead: byte; localFile: file; counter: longint;
begin
  { Create session }
  red.CreateSession(60, errorCode, sessionId);
  CheckError('CreateSession', errorCode);

  { Wrap remote path string }
  remotePathStringId := AllocateString(sessionId, remotePath);

  { Open remote file for reading }
  red.OpenFile(remotePathStringId, BRICK_RED_FILE_FLAG_READ_ONLY or BRICK_RED_FILE_FLAG_NON_BLOCKING,
               0, 0, 0, sessionId, errorCode, remoteFileId);
  CheckError('OpenFile', errorCode);

  { Open local file for writing }
  Assign(localFile, localPath);
  Rewrite(localFile, 1);

  { Read remote file and write to local file }
  counter := 500;

  repeat
    red.ReadFile(remoteFileId, 62, errorCode, buffer, lengthRead);
    CheckError('ReadFile', errorCode);
    BlockWrite(localFile, buffer, lengthRead);
    Dec(counter);

    if (counter = 0) then begin
      counter := 500;
      Write('.');
      errorCode := red.KeepSessionAlive(sessionId, 30);
      CheckError('KeepSessionAlive', errorCode);
    end;
  until (lengthRead = 0);

  WriteLn('.');

  { Close local file }
  Close(localFile);

  { Close remote file }
  red.ReleaseObjectUnchecked(remoteFileId, sessionId);

  { Expire session }
  red.ExpireSessionUnchecked(sessionId);
end;

procedure TExample.Execute;
begin
  { Create IP connection }
  ipcon := TIPConnection.Create;

  { Create device object }
  red := TBrickRED.Create(UID, ipcon);

  { Connect to brickd }
  ipcon.Connect(HOST, PORT);
  { Don't use device before ipcon is connected }

  { Read /home/tf/foobar.txt on RED Brick and write it locally to foobar.txt }
  ReadFile('/home/tf/foobar.txt', 'foobar.txt');

  WriteLn('Press key to exit');
  ReadLn;
  ipcon.Destroy; { Calls ipcon.Disconnect internally }
end;

begin
  e := TExample.Create;
  e.Execute;
  e.Destroy;
end.

Write File

Download (ExampleWriteFile.pas)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
program ExampleWriteFile;

{$ifdef MSWINDOWS}{$apptype CONSOLE}{$endif}
{$ifdef FPC}{$mode OBJFPC}{$H+}{$endif}

uses
  SysUtils, IPConnection, BrickRED;

type
  TExample = class
  private
    ipcon: TIPConnection;
    red: TBrickRED;
  public
    procedure CheckError(context: string; errorCode: byte);
    function AllocateString(sessionId: word; buffer: string): word;
    procedure WriteFile(localPath: string; remotePath: string);
    procedure Execute;
  end;

const
  HOST = 'localhost';
  PORT = 4223;
  UID = 'XXYYZZ'; { Change XXYYZZ to the UID of your RED Brick }

var
  e: TExample;

procedure TExample.CheckError(context: string; errorCode: byte);
begin
  if (errorCode <> 0) then begin
    raise Exception.Create(Format('%s error occurred: %d', [context, errorCode]));
  end;
end;

function TExample.AllocateString(sessionId: word; buffer: string): word;
var errorCode: byte; stringId: word;
begin
  if (Length(buffer) > 60) then begin
    { FIXME: Currently this helper function only supports strings up to 60 characters }
    raise Exception.Create('String too long');
  end;
  red.AllocateString(Length(buffer), buffer, sessionId, errorCode, stringId);
  CheckError('AllocateString', errorCode);
  result := stringId;
end;

procedure TExample.WriteFile(localPath: string; remotePath: string);
var errorCode: byte; sessionId: word; remotePathStringId: word; remoteFileId: word;
    buffer: TArray0To60OfUInt8; lengthRead: longint; localFile: file; lengthWritten: byte;
    counter: longint;
begin
  { Open local file for reading }
  Assign(localFile, localPath);
  Reset(localFile, 1);

  { Create session }
  red.CreateSession(60, errorCode, sessionId);
  CheckError('CreateSession', errorCode);

  { Wrap remote path string }
  remotePathStringId := AllocateString(sessionId, remotePath);

  { Create remote non-executable file for writing as user/group tf }
  red.OpenFile(remotePathStringId,
               BRICK_RED_FILE_FLAG_WRITE_ONLY or BRICK_RED_FILE_FLAG_CREATE or
               BRICK_RED_FILE_FLAG_TRUNCATE or BRICK_RED_FILE_FLAG_NON_BLOCKING,
               420 { 0o644 }, 1000, 1000, sessionId, errorCode, remoteFileId);
  CheckError('OpenFile', errorCode);

  { Read local file and write to remote file }
  counter := 500;

  repeat
    BlockRead(localFile, buffer, 61, lengthRead);
    red.WriteFile(remoteFileId, buffer, lengthRead, errorCode, lengthWritten);
    CheckError('WriteFile', errorCode);

    if (lengthRead <> lengthWritten) then begin
      { FIXME: Currently this example doesn't handle short writes }
      raise Exception.Create('Short write');
    end;

    Dec(counter);

    if (counter = 0) then begin
      counter := 500;
      Write('.');
      errorCode := red.KeepSessionAlive(sessionId, 30);
      CheckError('KeepSessionAlive', errorCode);
    end;
  until (lengthRead = 0);

  WriteLn('.');

  { Close remote file }
  red.ReleaseObjectUnchecked(remoteFileId, sessionId);

  { Close local file }
  Close(localFile);

  { Expire session }
  red.ExpireSessionUnchecked(sessionId);
end;

procedure TExample.Execute;
begin
  { Create IP connection }
  ipcon := TIPConnection.Create;

  { Create device object }
  red := TBrickRED.Create(UID, ipcon);

  { Connect to brickd }
  ipcon.Connect(HOST, PORT);
  { Don't use device before ipcon is connected }

  { Read foobar.txt locally and write it to /home/tf/foobar.txt on RED Brick }
  WriteFile('foobar.txt', '/home/tf/foobar.txt');

  WriteLn('Press key to exit');
  ReadLn;
  ipcon.Destroy; { Calls ipcon.Disconnect internally }
end;

begin
  e := TExample.Create;
  e.Execute;
  e.Destroy;
end.

API

Da Delphi nicht mehrere Rückgabewerte direkt unterstützt, wird das out Schlüsselwort genutzt um mehrere Werte von einer Funktion zurückzugeben.

Alle folgend aufgelisteten Funktionen und Prozeduren sind Thread-sicher.

Bemerkung

Die API Dokumentation für den RED Brick ist noch nicht vollständig.

Fortgeschrittene Funktionen

procedure TBrickRED.CreateSession(const lifetime: longword; out errorCode: byte; out sessionId: word)
Parameter:
  • lifetime – Typ: longword, Wertebereich: [0 bis 232 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
function TBrickRED.ExpireSession(const sessionId: word): byte
Parameter:
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.ExpireSessionUnchecked(const sessionId: word)
Parameter:
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
function TBrickRED.KeepSessionAlive(const sessionId: word; const lifetime: longword): byte
Parameter:
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • lifetime – Typ: longword, Wertebereich: [0 bis 232 - 1]
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
function TBrickRED.ReleaseObject(const objectId: word; const sessionId: word): byte
Parameter:
  • objectId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.ReleaseObjectUnchecked(const objectId: word; const sessionId: word)
Parameter:
  • objectId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
procedure TBrickRED.AllocateString(const lengthToReserve: longword; const buffer: string; const sessionId: word; out errorCode: byte; out stringId: word)
Parameter:
  • lengthToReserve – Typ: longword, Einheit: 1 B, Wertebereich: [0 bis 232 - 1]
  • buffer – Typ: string, Länge: bis zu 58
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • stringId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
function TBrickRED.TruncateString(const stringId: word; const length: longword): byte
Parameter:
  • stringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • length – Typ: longword, Einheit: 1 B, Wertebereich: [0 bis 232 - 1]
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetStringLength(const stringId: word; out errorCode: byte; out length: longword)
Parameter:
  • stringId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • length – Typ: longword, Einheit: 1 B, Wertebereich: [0 bis 232 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
function TBrickRED.SetStringChunk(const stringId: word; const offset: longword; const buffer: string): byte
Parameter:
  • stringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • offset – Typ: longword, Einheit: 1 B, Wertebereich: [0 bis 232 - 1]
  • buffer – Typ: string, Länge: bis zu 58
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetStringChunk(const stringId: word; const offset: longword; out errorCode: byte; out buffer: string)
Parameter:
  • stringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • offset – Typ: longword, Einheit: 1 B, Wertebereich: [0 bis 232 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • buffer – Typ: string, Länge: bis zu 63

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.AllocateList(const lengthToReserve: word; const sessionId: word; out errorCode: byte; out listId: word)
Parameter:
  • lengthToReserve – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • listId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetListLength(const listId: word; out errorCode: byte; out length: word)
Parameter:
  • listId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • length – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetListItem(const listId: word; const index: word; const sessionId: word; out errorCode: byte; out itemObjectId: word; out type: byte)
Parameter:
  • listId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • index – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • itemObjectId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • type – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144

Für type:

  • BRICK_RED_OBJECT_TYPE_STRING = 0
  • BRICK_RED_OBJECT_TYPE_LIST = 1
  • BRICK_RED_OBJECT_TYPE_FILE = 2
  • BRICK_RED_OBJECT_TYPE_DIRECTORY = 3
  • BRICK_RED_OBJECT_TYPE_PROCESS = 4
  • BRICK_RED_OBJECT_TYPE_PROGRAM = 5
function TBrickRED.AppendToList(const listId: word; const itemObjectId: word): byte
Parameter:
  • listId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • itemObjectId – Typ: word, Wertebereich: [0 bis 216 - 1]
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
function TBrickRED.RemoveFromList(const listId: word; const index: word): byte
Parameter:
  • listId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • index – Typ: word, Wertebereich: [0 bis 216 - 1]
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.OpenFile(const nameStringId: word; const flags: longword; const permissions: word; const uid: longword; const gid: longword; const sessionId: word; out errorCode: byte; out fileId: word)
Parameter:
  • nameStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • flags – Typ: longword, Wertebereich: Siehe Konstanten
  • permissions – Typ: word, Wertebereich: Siehe Konstanten
  • uid – Typ: longword, Wertebereich: [0 bis 232 - 1]
  • gid – Typ: longword, Wertebereich: [0 bis 232 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • fileId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für flags:

  • BRICK_RED_FILE_FLAG_READ_ONLY = 1
  • BRICK_RED_FILE_FLAG_WRITE_ONLY = 2
  • BRICK_RED_FILE_FLAG_READ_WRITE = 4
  • BRICK_RED_FILE_FLAG_APPEND = 8
  • BRICK_RED_FILE_FLAG_CREATE = 16
  • BRICK_RED_FILE_FLAG_EXCLUSIVE = 32
  • BRICK_RED_FILE_FLAG_NON_BLOCKING = 64
  • BRICK_RED_FILE_FLAG_TRUNCATE = 128
  • BRICK_RED_FILE_FLAG_TEMPORARY = 256
  • BRICK_RED_FILE_FLAG_REPLACE = 512

Für permissions:

  • BRICK_RED_FILE_PERMISSION_USER_ALL = 448
  • BRICK_RED_FILE_PERMISSION_USER_READ = 256
  • BRICK_RED_FILE_PERMISSION_USER_WRITE = 128
  • BRICK_RED_FILE_PERMISSION_USER_EXECUTE = 64
  • BRICK_RED_FILE_PERMISSION_GROUP_ALL = 56
  • BRICK_RED_FILE_PERMISSION_GROUP_READ = 32
  • BRICK_RED_FILE_PERMISSION_GROUP_WRITE = 16
  • BRICK_RED_FILE_PERMISSION_GROUP_EXECUTE = 8
  • BRICK_RED_FILE_PERMISSION_OTHERS_ALL = 7
  • BRICK_RED_FILE_PERMISSION_OTHERS_READ = 4
  • BRICK_RED_FILE_PERMISSION_OTHERS_WRITE = 2
  • BRICK_RED_FILE_PERMISSION_OTHERS_EXECUTE = 1

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.CreatePipe(const flags: longword; const length: uint64; const sessionId: word; out errorCode: byte; out fileId: word)
Parameter:
  • flags – Typ: longword, Wertebereich: Siehe Konstanten
  • length – Typ: uint64, Einheit: 1 B, Wertebereich: [0 bis 264 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • fileId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für flags:

  • BRICK_RED_PIPE_FLAG_NON_BLOCKING_READ = 1
  • BRICK_RED_PIPE_FLAG_NON_BLOCKING_WRITE = 2

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetFileInfo(const fileId: word; const sessionId: word; out errorCode: byte; out type: byte; out nameStringId: word; out flags: longword; out permissions: word; out uid: longword; out gid: longword; out length: uint64; out accessTimestamp: uint64; out modificationTimestamp: uint64; out statusChangeTimestamp: uint64)
Parameter:
  • fileId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • type – Typ: byte, Wertebereich: Siehe Konstanten
  • nameStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • flags – Typ: longword, Wertebereich: Siehe Konstanten
  • permissions – Typ: word, Wertebereich: Siehe Konstanten
  • uid – Typ: longword, Wertebereich: [0 bis 232 - 1]
  • gid – Typ: longword, Wertebereich: [0 bis 232 - 1]
  • length – Typ: uint64, Einheit: 1 B, Wertebereich: [0 bis 264 - 1]
  • accessTimestamp – Typ: uint64, Wertebereich: [0 bis 264 - 1]
  • modificationTimestamp – Typ: uint64, Wertebereich: [0 bis 264 - 1]
  • statusChangeTimestamp – Typ: uint64, Wertebereich: [0 bis 264 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144

Für type:

  • BRICK_RED_FILE_TYPE_UNKNOWN = 0
  • BRICK_RED_FILE_TYPE_REGULAR = 1
  • BRICK_RED_FILE_TYPE_DIRECTORY = 2
  • BRICK_RED_FILE_TYPE_CHARACTER = 3
  • BRICK_RED_FILE_TYPE_BLOCK = 4
  • BRICK_RED_FILE_TYPE_FIFO = 5
  • BRICK_RED_FILE_TYPE_SYMLINK = 6
  • BRICK_RED_FILE_TYPE_SOCKET = 7
  • BRICK_RED_FILE_TYPE_PIPE = 8

Für flags:

  • BRICK_RED_FILE_FLAG_READ_ONLY = 1
  • BRICK_RED_FILE_FLAG_WRITE_ONLY = 2
  • BRICK_RED_FILE_FLAG_READ_WRITE = 4
  • BRICK_RED_FILE_FLAG_APPEND = 8
  • BRICK_RED_FILE_FLAG_CREATE = 16
  • BRICK_RED_FILE_FLAG_EXCLUSIVE = 32
  • BRICK_RED_FILE_FLAG_NON_BLOCKING = 64
  • BRICK_RED_FILE_FLAG_TRUNCATE = 128
  • BRICK_RED_FILE_FLAG_TEMPORARY = 256
  • BRICK_RED_FILE_FLAG_REPLACE = 512

Für permissions:

  • BRICK_RED_FILE_PERMISSION_USER_ALL = 448
  • BRICK_RED_FILE_PERMISSION_USER_READ = 256
  • BRICK_RED_FILE_PERMISSION_USER_WRITE = 128
  • BRICK_RED_FILE_PERMISSION_USER_EXECUTE = 64
  • BRICK_RED_FILE_PERMISSION_GROUP_ALL = 56
  • BRICK_RED_FILE_PERMISSION_GROUP_READ = 32
  • BRICK_RED_FILE_PERMISSION_GROUP_WRITE = 16
  • BRICK_RED_FILE_PERMISSION_GROUP_EXECUTE = 8
  • BRICK_RED_FILE_PERMISSION_OTHERS_ALL = 7
  • BRICK_RED_FILE_PERMISSION_OTHERS_READ = 4
  • BRICK_RED_FILE_PERMISSION_OTHERS_WRITE = 2
  • BRICK_RED_FILE_PERMISSION_OTHERS_EXECUTE = 1
procedure TBrickRED.ReadFile(const fileId: word; const lengthToRead: byte; out errorCode: byte; out buffer: array [0..61] of byte; out lengthRead: byte)
Parameter:
  • fileId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • lengthToRead – Typ: byte, Einheit: 1 B, Wertebereich: [0 bis 255]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • buffer – Typ: array [0..61] of byte, Wertebereich: [0 bis 255]
  • lengthRead – Typ: byte, Einheit: 1 B, Wertebereich: [0 bis 255]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.ReadFileAsync(const fileId: word; const lengthToRead: uint64)
Parameter:
  • fileId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • lengthToRead – Typ: uint64, Einheit: 1 B, Wertebereich: [0 bis 264 - 1]
function TBrickRED.AbortAsyncFileRead(const fileId: word): byte
Parameter:
  • fileId – Typ: word, Wertebereich: [0 bis 216 - 1]
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.WriteFile(const fileId: word; const buffer: array [0..60] of byte; const lengthToWrite: byte; out errorCode: byte; out lengthWritten: byte)
Parameter:
  • fileId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • buffer – Typ: array [0..60] of byte, Wertebereich: [0 bis 255]
  • lengthToWrite – Typ: byte, Einheit: 1 B, Wertebereich: [0 bis 255]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • lengthWritten – Typ: byte, Einheit: 1 B, Wertebereich: [0 bis 255]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.WriteFileUnchecked(const fileId: word; const buffer: array [0..60] of byte; const lengthToWrite: byte)
Parameter:
  • fileId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • buffer – Typ: array [0..60] of byte, Wertebereich: [0 bis 255]
  • lengthToWrite – Typ: byte, Einheit: 1 B, Wertebereich: [0 bis 255]
procedure TBrickRED.WriteFileAsync(const fileId: word; const buffer: array [0..60] of byte; const lengthToWrite: byte)
Parameter:
  • fileId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • buffer – Typ: array [0..60] of byte, Wertebereich: [0 bis 255]
  • lengthToWrite – Typ: byte, Einheit: 1 B, Wertebereich: [0 bis 255]
procedure TBrickRED.SetFilePosition(const fileId: word; const offset: int64; const origin: byte; out errorCode: byte; out position: uint64)
Parameter:
  • fileId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • offset – Typ: int64, Einheit: 1 B, Wertebereich: [-263 bis 263 - 1]
  • origin – Typ: byte, Wertebereich: Siehe Konstanten
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • position – Typ: uint64, Einheit: 1 B, Wertebereich: [0 bis 264 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für origin:

  • BRICK_RED_FILE_ORIGIN_BEGINNING = 0
  • BRICK_RED_FILE_ORIGIN_CURRENT = 1
  • BRICK_RED_FILE_ORIGIN_END = 2

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetFilePosition(const fileId: word; out errorCode: byte; out position: uint64)
Parameter:
  • fileId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • position – Typ: uint64, Einheit: 1 B, Wertebereich: [0 bis 264 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
function TBrickRED.SetFileEvents(const fileId: word; const events: word): byte
Parameter:
  • fileId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • events – Typ: word, Wertebereich: Siehe Konstanten
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für events:

  • BRICK_RED_FILE_EVENT_READABLE = 1
  • BRICK_RED_FILE_EVENT_WRITABLE = 2

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetFileEvents(const fileId: word; out errorCode: byte; out events: word)
Parameter:
  • fileId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • events – Typ: word, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144

Für events:

  • BRICK_RED_FILE_EVENT_READABLE = 1
  • BRICK_RED_FILE_EVENT_WRITABLE = 2
procedure TBrickRED.OpenDirectory(const nameStringId: word; const sessionId: word; out errorCode: byte; out directoryId: word)
Parameter:
  • nameStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • directoryId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetDirectoryName(const directoryId: word; const sessionId: word; out errorCode: byte; out nameStringId: word)
Parameter:
  • directoryId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • nameStringId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetNextDirectoryEntry(const directoryId: word; const sessionId: word; out errorCode: byte; out nameStringId: word; out type: byte)
Parameter:
  • directoryId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • nameStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • type – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144

Für type:

  • BRICK_RED_DIRECTORY_ENTRY_TYPE_UNKNOWN = 0
  • BRICK_RED_DIRECTORY_ENTRY_TYPE_REGULAR = 1
  • BRICK_RED_DIRECTORY_ENTRY_TYPE_DIRECTORY = 2
  • BRICK_RED_DIRECTORY_ENTRY_TYPE_CHARACTER = 3
  • BRICK_RED_DIRECTORY_ENTRY_TYPE_BLOCK = 4
  • BRICK_RED_DIRECTORY_ENTRY_TYPE_FIFO = 5
  • BRICK_RED_DIRECTORY_ENTRY_TYPE_SYMLINK = 6
  • BRICK_RED_DIRECTORY_ENTRY_TYPE_SOCKET = 7
function TBrickRED.RewindDirectory(const directoryId: word): byte
Parameter:
  • directoryId – Typ: word, Wertebereich: [0 bis 216 - 1]
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
function TBrickRED.CreateDirectory(const nameStringId: word; const flags: longword; const permissions: word; const uid: longword; const gid: longword): byte
Parameter:
  • nameStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • flags – Typ: longword, Wertebereich: Siehe Konstanten
  • permissions – Typ: word, Wertebereich: Siehe Konstanten
  • uid – Typ: longword, Wertebereich: [0 bis 232 - 1]
  • gid – Typ: longword, Wertebereich: [0 bis 232 - 1]
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für flags:

  • BRICK_RED_DIRECTORY_FLAG_RECURSIVE = 1
  • BRICK_RED_DIRECTORY_FLAG_EXCLUSIVE = 2

Für permissions:

  • BRICK_RED_FILE_PERMISSION_USER_ALL = 448
  • BRICK_RED_FILE_PERMISSION_USER_READ = 256
  • BRICK_RED_FILE_PERMISSION_USER_WRITE = 128
  • BRICK_RED_FILE_PERMISSION_USER_EXECUTE = 64
  • BRICK_RED_FILE_PERMISSION_GROUP_ALL = 56
  • BRICK_RED_FILE_PERMISSION_GROUP_READ = 32
  • BRICK_RED_FILE_PERMISSION_GROUP_WRITE = 16
  • BRICK_RED_FILE_PERMISSION_GROUP_EXECUTE = 8
  • BRICK_RED_FILE_PERMISSION_OTHERS_ALL = 7
  • BRICK_RED_FILE_PERMISSION_OTHERS_READ = 4
  • BRICK_RED_FILE_PERMISSION_OTHERS_WRITE = 2
  • BRICK_RED_FILE_PERMISSION_OTHERS_EXECUTE = 1

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetProcesses(const sessionId: word; out errorCode: byte; out processesListId: word)
Parameter:
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • processesListId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.SpawnProcess(const executableStringId: word; const argumentsListId: word; const environmentListId: word; const workingDirectoryStringId: word; const uid: longword; const gid: longword; const stdinFileId: word; const stdoutFileId: word; const stderrFileId: word; const sessionId: word; out errorCode: byte; out processId: word)
Parameter:
  • executableStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • argumentsListId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • environmentListId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • workingDirectoryStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • uid – Typ: longword, Wertebereich: [0 bis 232 - 1]
  • gid – Typ: longword, Wertebereich: [0 bis 232 - 1]
  • stdinFileId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • stdoutFileId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • stderrFileId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • processId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
function TBrickRED.KillProcess(const processId: word; const signal: byte): byte
Parameter:
  • processId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • signal – Typ: byte, Wertebereich: Siehe Konstanten
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für signal:

  • BRICK_RED_PROCESS_SIGNAL_INTERRUPT = 2
  • BRICK_RED_PROCESS_SIGNAL_QUIT = 3
  • BRICK_RED_PROCESS_SIGNAL_ABORT = 6
  • BRICK_RED_PROCESS_SIGNAL_KILL = 9
  • BRICK_RED_PROCESS_SIGNAL_USER1 = 10
  • BRICK_RED_PROCESS_SIGNAL_USER2 = 12
  • BRICK_RED_PROCESS_SIGNAL_TERMINATE = 15
  • BRICK_RED_PROCESS_SIGNAL_CONTINUE = 18
  • BRICK_RED_PROCESS_SIGNAL_STOP = 19

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetProcessCommand(const processId: word; const sessionId: word; out errorCode: byte; out executableStringId: word; out argumentsListId: word; out environmentListId: word; out workingDirectoryStringId: word)
Parameter:
  • processId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • executableStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • argumentsListId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • environmentListId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • workingDirectoryStringId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetProcessIdentity(const processId: word; out errorCode: byte; out pid: longword; out uid: longword; out gid: longword)
Parameter:
  • processId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • pid – Typ: longword, Wertebereich: [0 bis 232 - 1]
  • uid – Typ: longword, Wertebereich: [0 bis 232 - 1]
  • gid – Typ: longword, Wertebereich: [0 bis 232 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetProcessStdio(const processId: word; const sessionId: word; out errorCode: byte; out stdinFileId: word; out stdoutFileId: word; out stderrFileId: word)
Parameter:
  • processId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • stdinFileId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • stdoutFileId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • stderrFileId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetProcessState(const processId: word; out errorCode: byte; out state: byte; out timestamp: uint64; out exitCode: byte)
Parameter:
  • processId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • state – Typ: byte, Wertebereich: Siehe Konstanten
  • timestamp – Typ: uint64, Wertebereich: [0 bis 264 - 1]
  • exitCode – Typ: byte, Wertebereich: [0 bis 255]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144

Für state:

  • BRICK_RED_PROCESS_STATE_UNKNOWN = 0
  • BRICK_RED_PROCESS_STATE_RUNNING = 1
  • BRICK_RED_PROCESS_STATE_ERROR = 2
  • BRICK_RED_PROCESS_STATE_EXITED = 3
  • BRICK_RED_PROCESS_STATE_KILLED = 4
  • BRICK_RED_PROCESS_STATE_STOPPED = 5
procedure TBrickRED.GetPrograms(const sessionId: word; out errorCode: byte; out programsListId: word)
Parameter:
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • programsListId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.DefineProgram(const identifierStringId: word; const sessionId: word; out errorCode: byte; out programId: word)
Parameter:
  • identifierStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
function TBrickRED.PurgeProgram(const programId: word; const cookie: longword): byte
Parameter:
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • cookie – Typ: longword, Wertebereich: [0 bis 232 - 1]
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetProgramIdentifier(const programId: word; const sessionId: word; out errorCode: byte; out identifierStringId: word)
Parameter:
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • identifierStringId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetProgramRootDirectory(const programId: word; const sessionId: word; out errorCode: byte; out rootDirectoryStringId: word)
Parameter:
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • rootDirectoryStringId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
function TBrickRED.SetProgramCommand(const programId: word; const executableStringId: word; const argumentsListId: word; const environmentListId: word; const workingDirectoryStringId: word): byte
Parameter:
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • executableStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • argumentsListId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • environmentListId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • workingDirectoryStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetProgramCommand(const programId: word; const sessionId: word; out errorCode: byte; out executableStringId: word; out argumentsListId: word; out environmentListId: word; out workingDirectoryStringId: word)
Parameter:
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • executableStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • argumentsListId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • environmentListId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • workingDirectoryStringId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
function TBrickRED.SetProgramStdioRedirection(const programId: word; const stdinRedirection: byte; const stdinFileNameStringId: word; const stdoutRedirection: byte; const stdoutFileNameStringId: word; const stderrRedirection: byte; const stderrFileNameStringId: word): byte
Parameter:
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • stdinRedirection – Typ: byte, Wertebereich: Siehe Konstanten
  • stdinFileNameStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • stdoutRedirection – Typ: byte, Wertebereich: Siehe Konstanten
  • stdoutFileNameStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • stderrRedirection – Typ: byte, Wertebereich: Siehe Konstanten
  • stderrFileNameStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für stdinRedirection:

  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_DEV_NULL = 0
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_PIPE = 1
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_FILE = 2
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_INDIVIDUAL_LOG = 3
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_CONTINUOUS_LOG = 4
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_STDOUT = 5

Für stdoutRedirection:

  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_DEV_NULL = 0
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_PIPE = 1
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_FILE = 2
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_INDIVIDUAL_LOG = 3
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_CONTINUOUS_LOG = 4
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_STDOUT = 5

Für stderrRedirection:

  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_DEV_NULL = 0
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_PIPE = 1
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_FILE = 2
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_INDIVIDUAL_LOG = 3
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_CONTINUOUS_LOG = 4
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_STDOUT = 5

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetProgramStdioRedirection(const programId: word; const sessionId: word; out errorCode: byte; out stdinRedirection: byte; out stdinFileNameStringId: word; out stdoutRedirection: byte; out stdoutFileNameStringId: word; out stderrRedirection: byte; out stderrFileNameStringId: word)
Parameter:
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • stdinRedirection – Typ: byte, Wertebereich: Siehe Konstanten
  • stdinFileNameStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • stdoutRedirection – Typ: byte, Wertebereich: Siehe Konstanten
  • stdoutFileNameStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • stderrRedirection – Typ: byte, Wertebereich: Siehe Konstanten
  • stderrFileNameStringId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144

Für stdinRedirection:

  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_DEV_NULL = 0
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_PIPE = 1
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_FILE = 2
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_INDIVIDUAL_LOG = 3
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_CONTINUOUS_LOG = 4
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_STDOUT = 5

Für stdoutRedirection:

  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_DEV_NULL = 0
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_PIPE = 1
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_FILE = 2
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_INDIVIDUAL_LOG = 3
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_CONTINUOUS_LOG = 4
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_STDOUT = 5

Für stderrRedirection:

  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_DEV_NULL = 0
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_PIPE = 1
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_FILE = 2
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_INDIVIDUAL_LOG = 3
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_CONTINUOUS_LOG = 4
  • BRICK_RED_PROGRAM_STDIO_REDIRECTION_STDOUT = 5
function TBrickRED.SetProgramSchedule(const programId: word; const startMode: byte; const continueAfterError: boolean; const startInterval: longword; const startFieldsStringId: word): byte
Parameter:
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • startMode – Typ: byte, Wertebereich: Siehe Konstanten
  • continueAfterError – Typ: boolean
  • startInterval – Typ: longword, Wertebereich: [0 bis 232 - 1]
  • startFieldsStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für startMode:

  • BRICK_RED_PROGRAM_START_MODE_NEVER = 0
  • BRICK_RED_PROGRAM_START_MODE_ALWAYS = 1
  • BRICK_RED_PROGRAM_START_MODE_INTERVAL = 2
  • BRICK_RED_PROGRAM_START_MODE_CRON = 3

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetProgramSchedule(const programId: word; const sessionId: word; out errorCode: byte; out startMode: byte; out continueAfterError: boolean; out startInterval: longword; out startFieldsStringId: word)
Parameter:
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • startMode – Typ: byte, Wertebereich: Siehe Konstanten
  • continueAfterError – Typ: boolean
  • startInterval – Typ: longword, Wertebereich: [0 bis 232 - 1]
  • startFieldsStringId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144

Für startMode:

  • BRICK_RED_PROGRAM_START_MODE_NEVER = 0
  • BRICK_RED_PROGRAM_START_MODE_ALWAYS = 1
  • BRICK_RED_PROGRAM_START_MODE_INTERVAL = 2
  • BRICK_RED_PROGRAM_START_MODE_CRON = 3
procedure TBrickRED.GetProgramSchedulerState(const programId: word; const sessionId: word; out errorCode: byte; out state: byte; out timestamp: uint64; out messageStringId: word)
Parameter:
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • state – Typ: byte, Wertebereich: Siehe Konstanten
  • timestamp – Typ: uint64, Wertebereich: [0 bis 264 - 1]
  • messageStringId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144

Für state:

  • BRICK_RED_PROGRAM_SCHEDULER_STATE_STOPPED = 0
  • BRICK_RED_PROGRAM_SCHEDULER_STATE_RUNNING = 1
function TBrickRED.ContinueProgramSchedule(const programId: word): byte
Parameter:
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
function TBrickRED.StartProgram(const programId: word): byte
Parameter:
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetLastSpawnedProgramProcess(const programId: word; const sessionId: word; out errorCode: byte; out processId: word; out timestamp: uint64)
Parameter:
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • processId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • timestamp – Typ: uint64, Wertebereich: [0 bis 264 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetCustomProgramOptionNames(const programId: word; const sessionId: word; out errorCode: byte; out namesListId: word)
Parameter:
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • namesListId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
function TBrickRED.SetCustomProgramOptionValue(const programId: word; const nameStringId: word; const valueStringId: word): byte
Parameter:
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • nameStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • valueStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetCustomProgramOptionValue(const programId: word; const nameStringId: word; const sessionId: word; out errorCode: byte; out valueStringId: word)
Parameter:
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • nameStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • sessionId – Typ: word, Wertebereich: [0 bis 216 - 1]
Ausgabeparameter:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • valueStringId – Typ: word, Wertebereich: [0 bis 216 - 1]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
function TBrickRED.RemoveCustomProgramOption(const programId: word; const nameStringId: word): byte
Parameter:
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • nameStringId – Typ: word, Wertebereich: [0 bis 216 - 1]
Rückgabe:
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
procedure TBrickRED.GetIdentity(out uid: string; out connectedUid: string; out position: char; out hardwareVersion: array [0..2] of byte; out firmwareVersion: array [0..2] of byte; out deviceIdentifier: word)
Ausgabeparameter:
  • uid – Typ: string, Länge: bis zu 8
  • connectedUid – Typ: string, Länge: bis zu 8
  • position – Typ: char, Wertebereich: ['0' bis '8']
  • hardwareVersion – Typ: array [0..2] of byte
    • 0: major – Typ: byte, Wertebereich: [0 bis 255]
    • 1: minor – Typ: byte, Wertebereich: [0 bis 255]
    • 2: revision – Typ: byte, Wertebereich: [0 bis 255]
  • firmwareVersion – Typ: array [0..2] of byte
    • 0: major – Typ: byte, Wertebereich: [0 bis 255]
    • 1: minor – Typ: byte, Wertebereich: [0 bis 255]
    • 2: revision – Typ: byte, Wertebereich: [0 bis 255]
  • deviceIdentifier – Typ: word, Wertebereich: [0 bis 216 - 1]

Gibt die UID, die UID zu der der Brick verbunden ist, die Position, die Hard- und Firmware Version sowie den Device Identifier zurück.

Die Position ist die Position im Stack von '0' (unterster Brick) bis '8' (oberster Brick).

Eine Liste der Device Identifier Werte ist hier zu finden. Es gibt auch eine Konstante für den Device Identifier dieses Bricks.

Callbacks

Callbacks können registriert werden um zeitkritische oder wiederkehrende Daten vom Gerät zu erhalten. Die Registrierung erfolgt indem eine Prozedur einem Callback Property des Geräte Objektes zugewiesen wird:

procedure TExample.MyCallback(sender: TBrickRED; const value: longint);
begin
  WriteLn(Format('Value: %d', [value]));
end;

red.OnExample := {$ifdef FPC}@{$endif}example.MyCallback;

Die verfügbaren Callback Properties und ihre Parametertypen werden weiter unten beschrieben.

Bemerkung

Callbacks für wiederkehrende Ereignisse zu verwenden ist immer zu bevorzugen gegenüber der Verwendung von Abfragen. Es wird weniger USB-Bandbreite benutzt und die Latenz ist erheblich geringer, da es keine Paketumlaufzeit gibt.

property TBrickRED.OnAsyncFileRead
procedure(sender: TBrickRED; const fileId: word; const errorCode: byte; const buffer: array [0..59] of byte; const lengthRead: byte) of object;
Callback-Parameter:
  • sender – Typ: TBrickRED
  • fileId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • buffer – Typ: array [0..59] of byte, Wertebereich: [0 bis 255]
  • lengthRead – Typ: byte, Einheit: 1 B, Wertebereich: [0 bis 255]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
property TBrickRED.OnAsyncFileWrite
procedure(sender: TBrickRED; const fileId: word; const errorCode: byte; const lengthWritten: byte) of object;
Callback-Parameter:
  • sender – Typ: TBrickRED
  • fileId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • errorCode – Typ: byte, Wertebereich: Siehe Konstanten
  • lengthWritten – Typ: byte, Einheit: 1 B, Wertebereich: [0 bis 255]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für errorCode:

  • BRICK_RED_ERROR_CODE_SUCCESS = 0
  • BRICK_RED_ERROR_CODE_UNKNOWN_ERROR = 1
  • BRICK_RED_ERROR_CODE_INVALID_OPERATION = 2
  • BRICK_RED_ERROR_CODE_OPERATION_ABORTED = 3
  • BRICK_RED_ERROR_CODE_INTERNAL_ERROR = 4
  • BRICK_RED_ERROR_CODE_UNKNOWN_SESSION_ID = 5
  • BRICK_RED_ERROR_CODE_NO_FREE_SESSION_ID = 6
  • BRICK_RED_ERROR_CODE_UNKNOWN_OBJECT_ID = 7
  • BRICK_RED_ERROR_CODE_NO_FREE_OBJECT_ID = 8
  • BRICK_RED_ERROR_CODE_OBJECT_IS_LOCKED = 9
  • BRICK_RED_ERROR_CODE_NO_MORE_DATA = 10
  • BRICK_RED_ERROR_CODE_WRONG_LIST_ITEM_TYPE = 11
  • BRICK_RED_ERROR_CODE_PROGRAM_IS_PURGED = 12
  • BRICK_RED_ERROR_CODE_INVALID_PARAMETER = 128
  • BRICK_RED_ERROR_CODE_NO_FREE_MEMORY = 129
  • BRICK_RED_ERROR_CODE_NO_FREE_SPACE = 130
  • BRICK_RED_ERROR_CODE_ACCESS_DENIED = 121
  • BRICK_RED_ERROR_CODE_ALREADY_EXISTS = 132
  • BRICK_RED_ERROR_CODE_DOES_NOT_EXIST = 133
  • BRICK_RED_ERROR_CODE_INTERRUPTED = 134
  • BRICK_RED_ERROR_CODE_IS_DIRECTORY = 135
  • BRICK_RED_ERROR_CODE_NOT_A_DIRECTORY = 136
  • BRICK_RED_ERROR_CODE_WOULD_BLOCK = 137
  • BRICK_RED_ERROR_CODE_OVERFLOW = 138
  • BRICK_RED_ERROR_CODE_BAD_FILE_DESCRIPTOR = 139
  • BRICK_RED_ERROR_CODE_OUT_OF_RANGE = 140
  • BRICK_RED_ERROR_CODE_NAME_TOO_LONG = 141
  • BRICK_RED_ERROR_CODE_INVALID_SEEK = 142
  • BRICK_RED_ERROR_CODE_NOT_SUPPORTED = 143
  • BRICK_RED_ERROR_CODE_TOO_MANY_OPEN_FILES = 144
property TBrickRED.OnFileEventsOccurred
procedure(sender: TBrickRED; const fileId: word; const events: word) of object;
Callback-Parameter:
  • sender – Typ: TBrickRED
  • fileId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • events – Typ: word, Wertebereich: Siehe Konstanten

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für events:

  • BRICK_RED_FILE_EVENT_READABLE = 1
  • BRICK_RED_FILE_EVENT_WRITABLE = 2
property TBrickRED.OnProcessStateChanged
procedure(sender: TBrickRED; const processId: word; const state: byte; const timestamp: uint64; const exitCode: byte) of object;
Callback-Parameter:
  • sender – Typ: TBrickRED
  • processId – Typ: word, Wertebereich: [0 bis 216 - 1]
  • state – Typ: byte, Wertebereich: Siehe Konstanten
  • timestamp – Typ: uint64, Wertebereich: [0 bis 264 - 1]
  • exitCode – Typ: byte, Wertebereich: [0 bis 255]

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für state:

  • BRICK_RED_PROCESS_STATE_UNKNOWN = 0
  • BRICK_RED_PROCESS_STATE_RUNNING = 1
  • BRICK_RED_PROCESS_STATE_ERROR = 2
  • BRICK_RED_PROCESS_STATE_EXITED = 3
  • BRICK_RED_PROCESS_STATE_KILLED = 4
  • BRICK_RED_PROCESS_STATE_STOPPED = 5
property TBrickRED.OnProgramSchedulerStateChanged
procedure(sender: TBrickRED; const programId: word) of object;
Callback-Parameter:
  • sender – Typ: TBrickRED
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]
property TBrickRED.OnProgramProcessSpawned
procedure(sender: TBrickRED; const programId: word) of object;
Callback-Parameter:
  • sender – Typ: TBrickRED
  • programId – Typ: word, Wertebereich: [0 bis 216 - 1]

Virtuelle Funktionen

Virtuelle Funktionen kommunizieren nicht mit dem Gerät selbst, sie arbeiten nur auf dem API Bindings Objekt. Dadurch können sie auch aufgerufen werden, ohne das das dazugehörige IP Connection Objekt verbunden ist.

function TBrickRED.GetAPIVersion: array [0..2] of byte
Ausgabeparameter:
  • apiVersion – Typ: array [0..2] of byte
    • 0: major – Typ: byte, Wertebereich: [0 bis 255]
    • 1: minor – Typ: byte, Wertebereich: [0 bis 255]
    • 2: revision – Typ: byte, Wertebereich: [0 bis 255]

Gibt die Version der API Definition zurück, die diese API Bindings implementieren. Dies ist weder die Release-Version dieser API Bindings noch gibt es in irgendeiner Weise Auskunft über den oder das repräsentierte(n) Brick oder Bricklet.

function TBrickRED.GetResponseExpected(const functionId: byte): boolean
Parameter:
  • functionId – Typ: byte, Wertebereich: Siehe Konstanten
Rückgabe:
  • responseExpected – Typ: boolean

Gibt das Response-Expected-Flag für die Funktion mit der angegebenen Funktions IDs zurück. Es ist true falls für die Funktion beim Aufruf eine Antwort erwartet wird, false andernfalls.

Für Getter-Funktionen ist diese Flag immer gesetzt und kann nicht entfernt werden, da diese Funktionen immer eine Antwort senden. Für Konfigurationsfunktionen für Callbacks ist es standardmäßig gesetzt, kann aber entfernt werden mittels SetResponseExpected. Für Setter-Funktionen ist es standardmäßig nicht gesetzt, kann aber gesetzt werden.

Wenn das Response-Expected-Flag für eine Setter-Funktion gesetzt ist, können Timeouts und andere Fehlerfälle auch für Aufrufe dieser Setter-Funktion detektiert werden. Das Gerät sendet dann eine Antwort extra für diesen Zweck. Wenn das Flag für eine Setter-Funktion nicht gesetzt ist, dann wird keine Antwort vom Gerät gesendet und Fehler werden stillschweigend ignoriert, da sie nicht detektiert werden können.

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für functionId:

  • BRICK_RED_FUNCTION_EXPIRE_SESSION_UNCHECKED = 3
  • BRICK_RED_FUNCTION_RELEASE_OBJECT_UNCHECKED = 6
  • BRICK_RED_FUNCTION_READ_FILE_ASYNC = 21
  • BRICK_RED_FUNCTION_WRITE_FILE_UNCHECKED = 24
  • BRICK_RED_FUNCTION_WRITE_FILE_ASYNC = 25
procedure TBrickRED.SetResponseExpected(const functionId: byte; const responseExpected: boolean)
Parameter:
  • functionId – Typ: byte, Wertebereich: Siehe Konstanten
  • responseExpected – Typ: boolean

Ändert das Response-Expected-Flag für die Funktion mit der angegebenen Funktion IDs. Diese Flag kann nur für Setter-Funktionen (Standardwert: false) und Konfigurationsfunktionen für Callbacks (Standardwert: true) geändert werden. Für Getter-Funktionen ist das Flag immer gesetzt.

Wenn das Response-Expected-Flag für eine Setter-Funktion gesetzt ist, können Timeouts und andere Fehlerfälle auch für Aufrufe dieser Setter-Funktion detektiert werden. Das Gerät sendet dann eine Antwort extra für diesen Zweck. Wenn das Flag für eine Setter-Funktion nicht gesetzt ist, dann wird keine Antwort vom Gerät gesendet und Fehler werden stillschweigend ignoriert, da sie nicht detektiert werden können.

Die folgenden Konstanten sind für diese Funktion verfügbar:

Für functionId:

  • BRICK_RED_FUNCTION_EXPIRE_SESSION_UNCHECKED = 3
  • BRICK_RED_FUNCTION_RELEASE_OBJECT_UNCHECKED = 6
  • BRICK_RED_FUNCTION_READ_FILE_ASYNC = 21
  • BRICK_RED_FUNCTION_WRITE_FILE_UNCHECKED = 24
  • BRICK_RED_FUNCTION_WRITE_FILE_ASYNC = 25
procedure TBrickRED.SetResponseExpectedAll(const responseExpected: boolean)
Parameter:
  • responseExpected – Typ: boolean

Ändert das Response-Expected-Flag für alle Setter-Funktionen und Konfigurationsfunktionen für Callbacks diese Gerätes.

Konstanten

const BRICK_RED_DEVICE_IDENTIFIER

Diese Konstante wird verwendet um einen RED Brick zu identifizieren.

Die GetIdentity Funktion und der TIPConnection.OnEnumerate Callback der IP Connection haben ein deviceIdentifier Parameter um den Typ des Bricks oder Bricklets anzugeben.

const BRICK_RED_DEVICE_DISPLAY_NAME

Diese Konstante stellt den Anzeigenamen eines RED Brick dar.