99,7 → 99,7 |
}; |
|
// |
extern char kosExePath[]; |
extern char *kosExePath; |
|
// |
void crtStartUp(); |
128,7 → 128,7 |
// |
Dword rtlInterlockedExchange( Dword *target, Dword value ); |
// ôóíêöèÿ -1 çàâåðøåíèÿ ïðîöåññà |
void __declspec(noreturn) kos_ExitApp(); |
void kos_ExitApp(); |
// ôóíêöèÿ 0 |
void kos_DefineAndDrawWindow( |
Word x, Word y, |
142,8 → 142,7 |
// ôóíêöèÿ 2 ïîëó÷èòü êîä íàæàòîé êëàâèøè |
bool kos_GetKey( Byte &keyCode ); |
// ôóíêöèÿ 3 ïîëó÷èòü âðåìÿ |
Dword __cdecl kos_GetSystemClock(); |
#if 0 |
Dword kos_GetSystemClock(); |
// ôóíêöèÿ 4 |
void kos_WriteTextToWindow( |
Word x, Word y, |
152,31 → 151,26 |
char *textPtr, |
Dword textLen |
); |
#else |
void kos_WriteTextToWindow_internal(Dword pos, Dword font, const char* textPtr, Dword textLen); |
#define kos_WriteTextToWindow(x, y, fontType, textColour, textPtr, textLen) \ |
kos_WriteTextToWindow_internal(((x)<<16)|(y), ((fontType)<<24)|(textColour), textPtr, textLen) |
#endif |
// ôóíêöèÿ 7 íàðèñîâàòü èçîáðàæåíèå |
void kos_PutImage( RGB * imagePtr, Word sizeX, Word sizeY, Word x, Word y ); |
// ôóíêöèÿ 8 îïðåäåëèòü êíîïêó |
void kos_DefineButton( Word x, Word y, Word sizeX, Word sizeY, Dword buttonID, Dword colour ); |
// ôóíêöèÿ 5 ïàóçà, â ñîòûõ äîëÿõ ñåêóíäû |
void __cdecl kos_Pause( Dword value ); |
void kos_Pause( Dword value ); |
// ôóíêöèÿ 9 - èíôîðìàöèÿ î ïðîöåññå |
Dword kos_ProcessInfo( sProcessInfo *targetPtr, Dword processID = PROCESS_ID_SELF ); |
// ôóíêöèÿ 10 |
Dword __cdecl kos_WaitForEvent(); |
Dword kos_WaitForEvent(); |
// ôóíêöèÿ 11 |
Dword kos_CheckForEvent(); |
// ôóíêöèÿ 12 |
void __cdecl kos_WindowRedrawStatus( Dword status ); |
void kos_WindowRedrawStatus( Dword status ); |
// ôóíêöèÿ 13 íàðèñîâàòü ïîëîñó |
void kos_DrawBar( Word x, Word y, Word sizeX, Word sizeY, Dword colour ); |
// ôóíêöèÿ 17 |
bool kos_GetButtonID( Dword &buttonID ); |
// ôóíêöèÿ 23 |
Dword __cdecl kos_WaitForEvent( Dword timeOut ); |
Dword kos_WaitForEvent( Dword timeOut ); |
// |
enum eNumberBase |
{ |
201,9 → 195,9 |
// ôóíêöèÿ 48.4 ïîëó÷èòü âûñîòó ñêèíà |
Dword kos_GetSkinWidth(); |
// ôóíêöèÿ 58 äîñòóï ê ôàéëîâîé ñèñòåìå |
Dword __fastcall kos_FileSystemAccess( kosFileInfo *fileInfo ); |
Dword kos_FileSystemAccess( kosFileInfo *fileInfo ); |
// ôóíêöèÿ 63 |
void __fastcall kos_DebugOutChar( char ccc ); |
void kos_DebugOutChar( char ccc ); |
// |
void rtlDebugOutString( char *str ); |
// ôóíêöèÿ 64 èçìåíèòü ïàðàìåòðû îêíà, ïàðàìåòð == -1 íå ìåíÿåòñÿ |