Ostin System Functions Reference

Number of the function is located in the register eax. The call of the system function is executed by “int 0x40” command. All registers except explicitly declared in the returned value, including eflags, are preserved.

Function 0: Define and Draw the Window

Defines an application window. Draws a frame of the window, header and working area. For skinned windows defines standard close and minimize buttons.

Parameters:

The following parameters are intended for windows of a type I and II, and ignored for styles Y=1,3:

Returned value:

Remarks:

Function 1: Put Pixel in the Window

Parameters:

Returned value:

Function 2: Get the Code of the Pressed Key

Takes away the code of the pressed key from the buffer.

Parameters:

Returned value:

Remarks:

Function 3: Get System Time

Parameters:

Returned value:

Remarks:

Function 4: Draw Text String in the Window

Parameters:

Returned value:

Remarks:

Function 5: Delay

Delays execution of the program on the given time.

Parameters:

Returned value:

Remarks:

Function 6: Read the File from Ramdisk

Parameters:

Returned value:

Remarks:

Function 7: Draw Image in the Window

Parameters:

Returned value:

Remarks:

Function 8: Define/Delete the Button

Parameters for button definition:

Parameters for button deleting:

Returned value:

Remarks:

Function 9: Information on Execution Thread

Parameters:

Returned value:

Remarks:

Function 10: Wait for Event

If the message queue is empty, waits for appearance of the message in queue. In this state thread does not consume CPU time. Then reads out the message from queue.

Parameters:

Returned value:

Remarks:

Function 11: Check for Event, No Wait

If the message queue contains event, function reads out and return it. If the queue is empty, function returns 0.

Parameters:

Returned value:

Remarks:

Function Group 12: Begin/End Window Redraw

Function 12.1: Begin Window Redraw

Parameters:

Returned value:

Function 12.2: End Window Redraw

Parameters:

Returned value:

Remarks:

Function 13: Draw a Rectangle in the Window

Parameters:

Returned value:

Remarks:

Function 14: Get Screen Size

Parameters:

Returned value:

Remarks:

Function Group 15: Set Background Image

Function 15.1: Set a Size of the Background Image

Parameters:

Returned value:

Remarks:

Function 15.2: Put Pixel on the Background Image

Parameters:

Returned value:

Remarks:

Function 15.3: Redraw Background

Parameters:

Returned value:

Function 15.4: Set Drawing Mode for the Background

Parameters:

Returned value:

Remarks:

Function 15.5: Put Block of Pixels on the Background Image

Parameters:

Returned value:

Remarks:

Function 15.6: Map Background Data to the Address Space of Process

Parameters:

Returned value:

Remarks:

Function 15.7: Close Mapped Background Data

Parameters:

Returned value:

Function 16: Save Ramdisk on a Floppy

Parameters:

Returned value:

Function 17: Get the Identifier of the Pressed Button

Takes away the code of the pressed button from the buffer.

Parameters:

Returned value:

Remarks:

Function Group 18: System Control

Function 18.2: Terminate Process/Thread by the Slot

Parameters:

Returned value:

Remarks:

Function 18.3: Make Active the Window of the Given Thread

Parameters:

Returned value:

Remarks:

Function 18.4: Get Counter of Idle Time Units per One Second

Idle time units are units, in which the processor stands idle in waiting for interrupt (in the command ‘hlt’).

Parameters:

Returned value:

Function 18.5: Get CPU Clock Rate

Parameters:

Returned value:

Function 18.6: Save Ramdisk to the File on Hard Drive

Parameters:

Returned value:

Remarks:

Function 18.7: Get Active Window

Parameters:

Returned value:

Remarks:

Function Group 18.8: Disable/Enable the Internal Speaker

If speaker sound is disabled, all calls to function 55.55 are ignored. If speaker sound is enabled, they are routed on builtin speaker.

Function 18.1.1: Get Status

Parameters:

Returned value:

Function 18.1.2: Toggle Status

Toggles states of disable/enable.

Parameters:

Returned value:

Function 18.9: System Shutdown With the Parameter

Parameters:

Returned value:

Remarks:

Function 18.10: Minimize Application Window

Minimizes the own window.

Parameters:

Returned value:

Remarks:

Function 18.11: Get Information on the Disk Subsystem

Parameters:

Returned value:

Format of the table: short version:

Format of the table: full version:

The partitions are located as follows: at first sequentially all recoginzed partitions on HD on IDE0 (if present), then on HD on IDE1 (if present) and so on up to IDE3.

Format of the information about partition (at moment only FAT is supported):

Remarks:

Function 18.13: Get Kernel Version

Parameters:

Returned value:

Structure of the buffer:

db a,b,c,d for version a.b.c.d
db 0: reserved
dd REV - kernel SVN revision number

For Kolibri 0.7.7.0+ kernel:

db 0,7,7,0
db 0
dd 1675

Function 18.14: Wait for Screen Retrace

Waits for the beginning of retrace of the scanning ray of the screen monitor.

Parameters:

Returned value:

Remarks:

Function 18.15: Center Mouse Cursor on the Screen

Parameters:

Returned value:

Function 18.16: Get Size of Free RAM

Parameters:

Returned value:

Function 18.17: Get Full Amount of RAM

Parameters:

Returned value:

Function 18.18: Terminate Process/Thread by the Identifier

Parameters:

Returned value:

Remarks:

Function Group 18.19: Get/Set Mouse Features

Function 18.19.0: Get Mouse Speed

Parameters:

Returned value:

Function 18.19.1: Set Mouse Speed

Parameters:

Returned value:

Function 18.19.2: Get Mouse Delay

Parameters:

Returned value:

Function 18.19.3: Set Mouse Delay

Parameters:

Returned value:

Function 18.19.4: Set Mouse Pointer Position

Parameters:

Returned value:

Function 18.19.5: Simulate State of Mouse Buttons

Parameters:

Returned value:

Remarks:

Function 18.20: Get Information on RAM

Parameters:

Returned value:

Function 18.21: Get Slot Number of Process/Thread by the Identifier

Parameters:

Returned value:

Function 18.22: Operations With Window of Another Thread

Parameters:

Returned value:

Remarks:

Function Group 20: MIDI Interface

Function 20.1: Reset

Parameters:

Function 20.2: Output Byte

Parameters:

Returned value (is the same for both subfunctions):

Remarks:

Function Group 21: Set Configuration

Function 21.1: Set MPU MIDI Base Port

Parameters:

Returned value

Remarks:

Function 21.2: Set Keyboard Layout

Keyboard layout is used to convert keyboard scancodes to ASCII-codes, which will be read by function 2.

Parameters:

Or:

Returned value:

Remarks:

Function 21.3: Set CD Base

Parameters:

Returned value:

Remarks:

Function 21.5: Set System Language

Parameters:

Returned value:

Remarks:

Function 21.7: Set HD Base

The HD base defines hard disk to write with usage of obsolete syntax /HD in obsolete function 58; at usage of modern syntax /HD0,/HD1,/HD2,/HD3 base is set automatically.

Parameters:

Returned value:

Remarks:

Function 21.8: Set Used HD Partition

The HD partition defines partition of the hard disk to write with usage of obsolete syntax /HD and obsolete function 58; at usage of functions 58 and 70 and modern syntax /HD0,/HD1,/HD2,/HD3 base and partition are set automatically.

Parameters:

Return value:

Remarks:

Function 21.11: Enable/Disable Low-Level Access to HD

Parameters:

Returned value:

Remarks:

Function 21.12: Enable/Disable Low-Level Access to PCI

Parameters:

Returned value:

Remarks:

Function Group 21.13: Video Driver Control

Function 21.13.1: Initialize + Get Information on the Driver VMODE.MDR

Parameters:

Returned value:

Format of the buffer:

Remarks:

Function 21.13.2: Get Information on Current Videomode

Parameters:

Returned value:

Remarks:

Function 21.13.3: Set Videomode

Parameters:

Returned value:

Remarks:

Function 21.13.4: Return to the Initial Videomode

Returns the screen to the videomode set at system boot.

Parameters:

Returned value:

Remarks:

Function 21.13.5: Increase/Decrease the Size of the Visible Area of Monitor

Parameters:

Returned value:

Remarks:

Function 22: Set System Date/Time

Parameters:

Returned value:

Remarks:

Function 23: Wait for Event With Timeout

If the message queue is empty, waits for new message in the queue, but no more than given time. Then reads out a message from the queue.

Parameters:

Returned value:

Remarks:

Function Group 24: CD-Audio Control

Function 24.1: Begin to Play CD-Audio

Parameters:

Returned value:

Remarks:

Function 24.2: Get Information on Tracks

Parameters:

Returned value:

Remarks:

Function 24.3: Stop Play CD-Audio

Parameters:

Returned value:

Remarks:

Function 24.4: Eject Tray of Disk Drive

Parameters:

Returned value:

Remarks:

Function 24.5: Load Tray of Disk Drive

Parameters:

Returned value:

Remarks:

Function Group 26: Get Configuration

Function 26.1: Get MPU MIDI Base Port

Parameters:

Returned value:

Parameters:

Function 26.2: Get Keyboard Layout

The keyboard layout is used to convert keyboard scancodes to ASCII-codes for function 2.

Parameters:

Returned value:

Or:

Returned value:

Remarks:

Function 26.3: Get CD Base

Parameters:

Returned value:

Remarks:

Function 26.5: Get System Language

Parameters:

Returned value:

Remarks:

Function 26.7: Get HD Base

The HD base defines hard disk to write with usage of obsolete syntax /HD in obsolete function 58; at usage of modern syntax /HD0,/HD1,/HD2,/HD3 base is set automatically.

Parameters:

Returned value:

Remarks:

Function 26.8: Get Used HD Partition

The HD partition defines partition of the hard disk to write with usage of obsolete syntax /HD in obsolete function 58; at usage of functions 58 and 70 and modern syntax /HD0,/HD1,/HD2,/HD3 base and partition are set automatically.

Parameters:

Returned value:

Remarks:

Function 26.9: Get the Value of the Time Counter

Parameters:

Returned value:

Remarks:

Function 26.11: Find Out Whether Low-Level HD Access is Enabled

Parameters:

Returned value:

Remarks:

Function 26.12: Find Out Whether Low-Level PCI Access is Enabled

Parameters:

Returned value:

Remarks:

Function 29: Get System Date

Parameters:

Returned value:

Remarks:

Function Group 30: Work With the Current Folder

Function 30.1: Set Current Folder for the Thread

Parameters:

Returned value:

Function 30.2: Get Current Folder for the Thread

Parameters:

Returned value:

Remarks:

Function 35: Read the Color of a Pixel on the Screen

Parameters:

Returned value:

Remarks:

Function 36: Read Screen Area

Parameters:

Returned value:

Remarks:

Function Group 37: Work With Mouse

Function 37.0: Screen Coordinates of the Mouse

Parameters:

Returned value:

Function 37.1: Coordinates of the Mouse Relative to the Window

Parameters:

Returned value:

Remarks:

Function 37.2: Pressed Buttons of the Mouse

Parameters:

Returned value:

Function 37.4: Load Cursor

Parameters:

Returned value:

Function 37.5: Set Cursor

Sets new cursor for the window of the current thread.

Parameters:

Returned value:

Remarks:

Function 37.6: Delete Cursor

Parameters:

Returned value:

Remarks:

Function 37.7: Get Scroll Data

Parameters:

Returned value:

Remarks:

Function 38: Draw Line

Parameters:

Returned value:

Remarks:

Function Group 39: Get Background Image

Function 39.1: Get a Size of the Background Image

Parameters:

Returned value:

Remarks:

Function 39.2: Get Pixel from the Background Image

Parameters:

Returned value:

Remarks:

Function 39.4: Get Drawing Mode for the Background

Parameters:

Returned value:

Remarks:

Function 40: Set the Mask for Expected Events

The mask for expected events affects function working with events 10, 11, 23 - they notify only about events allowed by this mask.

Parameters:

Returned value:

Remarks:

Function Group 43: Input/Output to a Port

Output Data to Port

Parameters:

Returned value:

Input Data from Port

Parameters:

Returned value:

Remarks:

Function 46: Reserve/Free a Group of Input/Output Ports

To work with reserved ports an application can access directly by commands in/out (recommended way) and can use function 43 (not recommended way).

Parameters:

Returned value:

Remarks:

Function 47: Draw a Number in the Window

Parameters:

Returned value:

Remarks:

Function Group 48: Display Settings

Function 48.0: Apply Screen Settings

Parameters:

Returned value:

Remarks:

Function 48.1: Set Button Style

Parameters:

Returned value:

Remarks:

Function 48.2: Set Standard Window Colors

Parameters:

Format of the color table is shown in description of function 48.3.

Returned value:

Remarks:

Function 48.3: Get Standard Window Colors

Parameters:

Returned value:

Format of the color table (each item is dword-value for color 0x00RRGGBB):

Remarks:

Function 48.4: Get Skin Height

Parameters:

Returned value:

Remarks:

Function 48.5: Get Screen Working Area

Parameters:

Returned value:

Remarks:

Function 48.6: Set Screen Working Area

Parameters:

Returned value:

Remarks:

Function 48.7: Get Skin Margins

Returns the area of a header of a skinned window, intended for a text of a header.

Parameters:

Returned value:

Remarks:

Function 48.8: Set Used Skin

Parameters:

Returned value:

Remarks:

Function 49: Advanced Power Management (APM)

Parameters:

Returned value:

Remarks:

Function Group 50: Set Window Shape

Normal windows have rectangular shape. This function can give to a window any shape. The shape is given by a set of points inside the base rectangle belonging to a window. Position and coordinates of the base rectangle are set by function 0 and changed by function 67.

Function 50.0: Set Shape Data

Parameters:

Returned value:

Function 50.1: Set Shape Scale

Parameters:

Returned value:

Remarks:

Function 51: Create Thread

Parameters:

Returned value:

Function Group 52: Network Driver Status

Function 52.0: Get Network Driver Configuration

Parameters:

Returned value:

Remarks:

Function 52.1: Get Local IP Address

Parameters:

Returned value:

Remarks:

Function 52.2: Set Network Driver Configuration

Parameters:

Returned value:

Remarks:

Function 52.3: Set Local IP Address

Parameters:

Returned value:

Remarks:

Function 52.6: Add Data to the Stack of Input Queue

Parameters:

Returned value:

Remarks:

Function 52.8: Read Data from the Network Output Queue

Parameters:

Returned value:

Remarks:

Function 52.9: Get Gateway IP

Parameters:

Returned value:

Function 52.10: Get Subnet Mask

Parameters:

Returned value:

Function 52.11: Set Gateway IP

Parameters:

Returned value:

Function 52.12: Set Subnet Mask

Parameters:

Returned value:

Function 52.13: Get DNS IP

Parameters:

Returned value:

Function 52.14: Set DNS IP

Parameters:

Returned value:

Function 52.15: Get Local MAC Address

Parameters:

Returned value:

Function Group 53: Network Sockets

Function 53.0: Open UDP Socket

Parameters:

Returned value:

Function 53.1: Close UDP Socket

Parameters:

Returned value:

Remarks:

Function 53.2: Poll Socket

Parameters:

Returned value:

Function 53.3: Read Byte from Socket

Parameters:

Returned value:

Function 53.4: Write to UDP Socket

Parameters:

Returned value:

Remarks:

Function 53.5: Open TCP Socket

Parameters:

Returned value:

Function 53.6: Get TCP Socket Status

Parameters:

Returned value:

Function 53.7: Write to TCP Socket

Parameters:

Returned value:

Remarks:

Function 53.8: Close TCP Socket

Parameters:

Returned value:

Remarks:

Function 53.9: Check Whether Local Port is Free

Parameters:

Returned value:

Function 53.10: Query Ethernet Cable Status

Parameters:

Returned value:

Remarks:

Function 53.11: Read Network Stack Data

Parameters:

Returned value:

Function 53.255: Debug Information of Network Driver

Parameters:

Returned value:

Possible values for ecx:

Function Group 55: Sound Control

Function 55.55: Begin to Play Data on Built-In Speaker

Parameters:

Returned value:

Data is an array of items with variable length.

Format of each item is defined by first byte:

Remarks:

Function 57: PCI BIOS

Parameters:

Returned value:

Remarks:

Function Group 58: Work With File System

Parameters:

Returned value:

General format of the information structure:

Specifications - in documentation on the appropriate subfunction. Filename is case-insensitive for latin letters, russian letters must be capital.

Format of filename:

/base/number/dir1/dir2/.../dirn/file,

where /base/number identifies device on which file is located one of:

Remarks:

Examples:

Function 58.0: Read File/Folder

Parameters:

Format of the information structure:

Returned value:

Remarks:

Function 58.8: LBA-Read from Device

Parameters:

Format of the information structure:

Returned value:

Remarks:

Function 58.15: Get Information on File System

Parameters:

Format of the information structure:

Returned value:

Remarks:

Function Group 60: Interprocess Communication (IPC)

IPC is used for message dispatching from one process/thread to another. Previously it is necessary to agree how to interpret the concrete message.

Function 60.1: Set the Area for IPC Receiving

Is called by process-receiver.

Parameters:

Returned value:

Format of IPC-buffer:

Format of a message:

Function 60.2: Send IPC Message

Is called by process-sender.

Parameters:

Returned value:

Remarks:

Function Group 61: Get Parameters for the Direct Graphics Access

The data of the graphics screen (the memory area which displays screen contents) are accessible to a program directly, without any system calls, through the selector gs:

mov eax, [gs:0]

places in eax the first dword of the buffer, which contains information on color of the left upper point (and, possibly, colors of several following).

mov [gs:0], eax

by work in VESA modes with LFB sets color of the left upper point (and, possibly, colors of several following). To interpret the data of graphics screen program needs to know some parameters, returning by this function.

Remarks:

Function 61.1: Screen Resolution

Parameters:

Returned value:

Remarks:

Function 61.2: Number of Bits per Pixel

Parameters:

Returned value:

Function 61.3: Number of Bytes per Scanline

Parameters:

Returned value:

Function Group 62: PCI Control

Function 62.0: Get Version of PCI Interface

Parameters:

Returned value:

Remarks:

Function 62.1: Get Number of the Last PCI Bus

Parameters:

Returned value:

Remarks:

Function 62.2: Get Mechanism of Addressing to the PCI Configuration Space

Parameters:

Returned value:

Remarks:

Functions 62.4-62.6: Read PCI Register

Parameters:

Returned value:

Remarks:

Functions 62.8-62.10: Write to PCI Register

Parameters:

Returned value:

Remarks:

Function Group 63: Work With the Debug Board

The debug board is the global system buffer (with the size 1024 bytes), to which any program can write (generally speaking, arbitrary) data and from which other program can read these data. By the agreement written data are text strings interpreted as debug messages on a course of program execution. The kernel in some situations also writes to the debug board information on execution of some functions; by the agreement kernel messages begins from the prefix “K :”.

For view of the debug board the application ‘board’ was created, which reads data from the buffer and displays them in its window. ‘board’ interpretes the sequence of codes 13,10 as newline. A character with null code in an end of line is not necessary, but also does not prevent.

Because debugger has been written, the value of the debug board has decreased, as debugger allows to inspect completely a course of program execution without any efforts from the direction of program itself. Nevertheless in some cases the debug board is still useful.

Function 63.1: Write Byte

Parameters:

Returned value:

Remarks:

Function 63.2: Read Byte

Takes away byte from the buffer.

Parameters:

Returned value:

Function 64: Resize Application Memory

Parameters:

Returned value:

Remarks:

Function 65: Draw Image With Palette in the Window

Parameters:

Returned value:

Remarks:

Function Group 66: Work With Keyboard

The input mode influences results of reading keys by function 2. When a program loads, ASCII input mode is set for it.

Function 66.1: Set Keyboard Input Mode

Parameters:

Returned value:

Function 66.2: Get Keyboard Input Mode

Parameters:

Returned value:

Function 66.3: Get Status of Control Keys

Parameters:

Returned value:

Function 66.4: Set System-Wide Hotkey

When hotkey is pressed, the system notifies only those applications, which have installed it; the active application (which receives all normal input) does not receive such keys. The notification consists in sending event with the code 2. Reading hotkey is the same as reading normal key - by function 2.

Parameters:

Returned value:

Remarks:

Function 66.5: Delete Installed Hotkey

Parameters:

Returned value:

Remarks:

Function 67: Change Position/Size of the Window

Parameters:

Returned value:

Remarks:

Function Group 68: System Services

Function 68.0: Get the Task Switch Counter

Parameters:

Returned value:

Function 68.1: Switch to the Next Thread

The function completes the current time slice allocated to the thread and switches to the next. (Which thread in which process will be next, is unpredictable). Later, when execution queue will reach the current thread, execution will be continued.

Parameters:

Returned value:

Function 68.2: Cache & RDPMC

Parameters:

Returned value:

Function 68.3: Read MSR Register

MSR = Model Specific Register; the complete list of MSR-registers of a processor is included to the documentation on it (for example, IA-32 Intel Architecture Software Developer’s Manual, Volume 3, Appendix B); each processor family has its own subset of the MSR-registers.

Parameters:

Returned value:

Remarks:

Function 68.4: Write to MSR Register

MSR = Model Specific Register; the complete list of MSR-registers of a processor is included to the documentation on it (for example, IA-32 Intel Architecture Software Developer’s Manual, Volume 3, Appendix B); each processor family has its own subset of the MSR-registers.

Parameters:

Returned value:

Remarks:

Function 68.11: Initialize Process Heap

Parameters:

Returned value:

Remarks:

Function 68.12: Allocate Memory Block

Parameters:

Returned value:

Remarks:

Function 68.13: Free Memory Block

Parameters:

Returned value:

Remarks:

Function 68.14: Wait for Signal from Another Program/Driver

Parameters:

Returned value:

Function 68.16: Load Driver

Parameters:

Returned value:

Remarks:

Function 68.17: Driver Control

Parameters:

Returned value:

Remarks:

Function 68.19: Load DLL

Parameters:

Returned value:

Remarks:

Function 68.20: Reallocate Memory Block

Parameters:

Returned value:

Remarks:

Function 68.22: Open Named Memory Area

Parameters:

Returned value:

Error codes:

Remarks:

Function 68.23: Close Named Memory Area

Parameters:

Returned value:

Remarks:

Function 68.24: Set Exception Handler

Parameters:

Returned value:

Remarks:

Function 68.25: Set FPU Exception Handler

Parameters:

Returned value:

Remarks:

Function Group 69: Gebugging

A process can load other process as debugged by set of corresponding bit by call to function 70.7. A process can have only one debugger; one process can debug some others. The system notifies debugger on events occuring with debugged process. Messages are written to the buffer defined by function 69.0.

Format of a message:

Message codes:

When debugger terminates, all debugged processes are killed. If debugger does not want this, it must previously detach by function 69.3.

All functions are applicable only to processes/threads started from the current by function 70 with set debugging flag. Debugging of multithreaded programs is not supported yet.

Function 69.0: Define Data Area Fror Debug Messages

Parameters:

Format of data area:

Returned value:

Remarks:

Function 69.1: Get Contents of Registers of Debugged Thread

Parameters:

Returned value:

Format of context structure: (FPU is not supported yet)

Remarks:

Function 69.2: Set Contents of Registers of Debugged Thread

Parameters:

Returned value:

Format of context structure is shown in the description of function 69.1.

Remarks:

Function 69.3: Detach from Debugged Process

Parameters:

Returned value:

Remarks:

Function 69.4: Suspend Debugged Thread

Parameters:

Returned value:

Remarks:

Function 69.5: Resume Debugged Thread

Parameters:

Returned value:

Remarks:

Function 69.6: Read from Memory of Debugged Process

Parameters:

Returned value:

Remarks:

Function 69.7: Write to Memory of Debugged Process

Parameters:

Returned value:

Remarks:

Function 69.8: Terminate Debugged Thread

Parameters:

Returned value:

Remarks:

Function 69.9: Set/Clear Hardware Breakpoint

Parameters:

Returned value:

Remarks:

Function Group 70: Work With File System With Long Names Support

Parameters:

Returned value:

General format of the information structure:

or

Specifications - in documentation on the appropriate subfunction. Filename is case-insensitive. Russian letters must be written in the encoding cp866 (DOS).

Format of filename:

/base/number/dir1/dir2/.../dirn/file

where /base/number identifies device, on which file is located one of:

Examples:

Also function supports relative names. If the path begins not with ‘/’, it is considered relative to a current folder. To get or set a current folder, use the function 30.

For CD-drives due to hardware limitations only subfunctions 0, 1, 5 and 7 are available, other subfunctions return error with code 2.

At the first call of subfunctions 0, 1, 5, 7 to ATAPI devices (CD and DVD) the manual control of tray is locked due to caching drive data. Unlocking is made when function 24.4 is called for corresponding device.

Function 70.0: Read File With Long Names Support

Parameters:

Format of the information structure:

or

Returned value:

Remarks:

Function 70.1: Read Folder With Long Names Support

Parameters:

Format of the information structure:

or

Returned value:

Structure of the buffer:

Structure of header:

Structure of block of data for folder entry (BDFE):

Time format:

Date format:

Remarks:

Function 70.2: Create/Rewrite File With Long Names Support

Parameters:

Format of the information structure:

or

Returned value:

Remarks:

Function 70.3: Write to Existing File With Long Names Support

Parameters:

Format of the information structure:

or

Returned value:

Remarks:

Function 70.4: Set End of File

Parameters:

Format of the information structure:

or

Returned value:

Remarks:

Function 70.5: Get Information on File/Folder

Parameters:

Format of the information structure:

or

Returned value:

Information on file is returned in the BDFE format (block of data for folder entry), explained in the description of function 70.1, but without filename (i.e. only first 40 = 0x28 bytes).

Remarks:

Function 70.6: Set Attributes of File/Folder

Parameters:

Format of the information structure:

or

Returned value:

File attributes are first 32 bytes in BDFE (block of data for folder entry), explained in the description of function 70.1 (that is, without name and size of file). Attribute file/folder/volume label (bits 3,4 in dword +0) is not changed. Byte +4 (name format) is ignored.

Remarks:

Function 70.7: Start Application

Parameters:

Format of the information structure:

or

Returned value:

Remarks:

Function 70.8: Delete File/Folder

Parameters:

Format of the information structure:

or

Returned value:

Remarks:

Function 70.9: Create Folder

Parameters:

Format of the information structure:

or

Returned value:

Remarks:

Function Group 71: Window Settings

Function 71.1: Set Window Caption

Parameters:

Returned value:

Remarks:

Function Group 72: Send Message to a Window

Function 72.1: Send Message With Parameter to the Active Window

Parameters:

Returned value:

Function -1: Terminate Thread/Process

Parameters:

Returned value:

Remarks:

List of Events

Next event can be retrieved by the call of one from functions 10 (to wait for event), 11 (to check without waiting), 23 (to wait during the given time). These functions return only those events, which enter into a mask set by function 40. By default it is first three, there is enough for most applications.

Codes of events:

Error Codes of the File System

Application start functions can return also following errors: