TAP_GetSystemProc

Additional Documentation

Returns the address of a subset of TAP API functions. Some are not declared in the current release of the TAP API.

void* TAP_GetSystemProc( int functionId );

functionId can be one of the following values

ValueFunction
0TAP_Hdd_unknown0 - hdd related, called by debug functions 'rs', 'rc', read sector?
1TAP_Hdd_unknown1 - hdd related, called by debug functions 'ws', 'wc', write sector?
2TAP_unknown2 - writes to eeprom? @ 0xa3ffffe0, 0xa3ffffe1
3TAP_Hdd_unknown3 - ata/dma related, ???
4TAP_Hdd_SetBookmark
5TAP_Hdd_GotoBookmark
6TAP_Hdd_ChangePlaybackPos
7TAP_ControlEit
8TAP_SetBk
9TAP_EPG_UpdateEvent
10TAP_EPG_DeleteEvent
11TAP_EPG_GetExtInfo
12TAP_Channel_IsStarted
13TAP_Vfd_GetStatus
14TAP_Vfd_Control
15TAP_Vfd_SendData
16TAP_Win_SetAvtice
17TAP_Win_SetDrawItemFunc
18TAP_SysOsdControl
19TAP_Hdd_Move
20TAP_Osd_unknown20 - osd related?

Example Usage

Example code:

typedef dword (*TAP_Hdd_MoveFn)(char *from_dir, char *to_dir, char *filename);
TAP_Hdd_MoveFn TAP_Hdd_Move;

enum { oTAP_Hdd_unknown0 = 0x00, oTAP_Hdd_unknown1 = 0x01, oTAP_unknown2 = 0x02, oTAP_Hdd_unknown3 = 0x03, oTAP_Hdd_SetBookmark = 0x04, oTAP_Hdd_GotoBookmark = 0x05, oTAP_Hdd_ChangePlaybackPos = 0x06, oTAP_ControlEit = 0x07, oTAP_SetBk = 0x08, oTAP_EPG_UpdateEvent = 0x09, oTAP_EPG_DeleteEvent = 0x0a, oTAP_EPG_GetExtInfo = 0x0b, oTAP_Channel_IsStarted = 0x0c, oTAP_Vfd_GetStatus = 0x0d, oTAP_Vfd_Control = 0x0e, oTAP_Vfd_SendData = 0x0f, oTAP_Win_SetAvtice = 0x10, oTAP_Win_SetDrawItemFunc = 0x11, oTAP_SysOsdControl = 0x12, oTAP_Hdd_Move = 0x13, oTAP_Osd_unknown20 = 0x14, };

extern void* (*TAP_GetSystemProc)( int );

int TAP_Main() { TAP_Hdd_Move = (TAP_Hdd_MoveFn)TAP_GetSystemProc(oTAP_Hdd_Move); if ( TAP_Hdd_Move != NULL ) TAP_Hdd_Move("/DataFiles", "/DataFiles/Films", "The Matrix.rec"); return 0; }