5#define ROOTDIR "/ProgramFiles/Settings/SDS"
6#define LOGFILE "SDS.log"
52 if(!TAP_Hdd_Exist(
"Settings")) TAP_Hdd_Create(
"Settings", ATTR_FOLDER);
54 if(!TAP_Hdd_Exist(
"SDS")) TAP_Hdd_Create(
"SDS", ATTR_FOLDER);
84 static dword *__topEvent = NULL;
89 if(!Handler && !(dword*)Handler)
109 for(i = 0; i < 512; i++)
111 if(EventQueue->
Queue)
113 if(EventQueue->
EventID == EventID)
117 if(((dword)Handler > 0x01400000) && (EventQueueDetails->
Handler > 0x01400000))
121 TAP_SPrint(
Log,
"Found 0x%lx handler @ index %d. Already redirected to 0x%8.8lx", EventID, i, EventQueueDetails->
Handler);
132 TAP_SPrint(
Log,
"Found 0x%lx handler @ index %d. Redirecting from 0x%8.8lx to 0x%8.8lx", EventID, i, EventQueueDetails->
Handler, (dword)Handler);
137 EventQueueDetails->
Handler = (dword)Handler;
148 TAP_SPrint(
Log,
"EventID %4.4lx not yet declared", EventID);
161 static dword Timeout = 0;
163 static dword EF00FilterTimeout = 0;
236 strcpy(TAPInfo.
TAPName,
"???");
237 TAP_SPrint(
Log,
"SDS has been activated by '%s'", TAPInfo.
TAPName);
246 if(EF00FilterTimeout && TAP_GetTick() > EF00FilterTimeout) EF00FilterTimeout = 0;
260 if(EF00FilterTimeout)
262 Timeout = TAP_GetTick() + 50;
272 Timeout = TAP_GetTick() + 50;
286 if(TAP_GetTick() > Timeout)
291 EF00FilterTimeout = TAP_GetTick() + 200;
302 Timeout = TAP_GetTick() + 200;
309 if(TAP_GetTick() > Timeout)
dword FIS_fwDevFront_PowerOffCancel(void)
dword FIS_fwDevFront_PowerOffReply(void)
dword FIS_vTopEvent(void)
bool HDD_ChangeDir(const char *Dir)
void LogEntry(char *FileName, char *ProgramName, bool Console, eTimeStampFormat TimeStampFormat, char *Text)
void(* __DevFront_PowerOffCancel)(void)
tHookHandlerState HookHandlerState
void(* OrigHandler)(word, dword)
bool SetHandler(dword EventID, void *Handler, void **OrigHandler)
void(* __DevFront_PowerOffReply)(void)
void Hooked_ApplEvent_CallHandler(unsigned int a1, unsigned int a2)
dword HDD_TAP_SendEvent(dword TAPID, bool AllowParamInterception, word event, dword param1, dword param2)
bool HDD_TAP_PushDir(void)
bool HDD_TAP_GetFileNameByIndex(int Index, char **TAPFileName)
bool HDD_TAP_GetInfo(const char *FileName, tTAPInfo *pTAPInfo)
bool HDD_TAP_PopDir(void)
bool Shutdown(TaskEnum Task)
char TAPName[MAX_PROGRAM_NAME]