Thread: More on modules
View Single Post
Old 09-17-2003, 07:39 AM  
darkone
Disabled
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

I'm not quite sure what you meant with that. But I'll try to explain briefly how it works:

-- [Modules] -->
EventModule = ..\modules\MyEventModule.dll
-- daemon start-up -->
LoadModule(szModuleFileName);
GetProcAddress("EventInit");
EventInit(lpEventModule);
-- module initialization ->
lpEventModule->szName = "MYMODULE V0.9";
lpEventModule->lpInstallEvent("DoStuff", DoStuffProc);
-- [Scripts] -->
DOSTUFF = DoStuff
DONOTHING = DoStuff DoNothing

This allows you to add new interpreters (Php, java, asp) using modules..
darkone is offline