home *** CD-ROM | disk | FTP | other *** search
- (***************************************************************************
- ** **
- * ┌─┐ ┌─┐ ┌─┐ ┌───────┐ ┌─┐ ┌──────┐ ┌──────┐ ┌───────┐ ┌──────┐ *
- * └─┘ └─┘ └─┘ └───────┘ └─┘ └──────┘ └──────┘ └───────┘ └──────┘ *
- * ┌─┐ ┌─┐ ┌─┐ ┌─┐ ┌─┐ ┌─┐┌┐┌─┐ ┌──────┐ ┌─┐ ┌────┐ *
- * │ │ │ │ │ │ │ │ │ │ │ │└┘│ │ │ ┌──┐ │ │ │ │ ┌──┘ *
- * │ └──┘ │ │ └────┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ └────┐ *
- * └──────┘ └──────┘ └─┘ └─┘ └─┘ └─┘ └─┘ └─┘ └─┘ └──────┘ *
- * ┌─────┐ ┌──────┐ ┌──────┐ ┌──────┐ ┌─────┐ *
- * └─────┘ └──────┘ └──────┘ └──────┘ └─────┘ *
- * ┌──────┐ ┌─┐ ┌─┐ ┌──────┐ ┌──────┐ ┌─┐ ┌─┐ *
- * │ ┌──┐ │ │ │ │ │ │ ┌──┐ │ │ ┌─┐ ┌┘ │ │ │ │ *
- * │ └──┘ │ │ └──┘ │ │ │ │ │ │ │ │ │ │ └──┘ │ *
- * └──────┘ └──────┘ └─┘ └─┘ └─┘ └─┘ └──────┘ *
- * *
- * Copyright (C) 1998 UltimateBoard Version 1.00 by ULTiMATE-SYSTEMS *
- ** **
- ***************************************************************************
- ** **
- * UltimateBoard Example UBE *
- ** **
- ***************************************************************************)
-
- {$IFNDEF DPMI}
- This is a DOS protected mode driver - it is useless to compile in realmode!
- {$ENDIF}
-
-
- Library EXAMPLE;
-
- uses Crt,
- KrnlDRV, {Kernel}
- UBTypes, {Global UBE Vars}
- DRVUBS; {Screen-Driver}
-
-
- {*************************** DescribeDriver ********************************}
- procedure DescribeDriver(Driver:PDriver); export;
- begin
- with Driver^ do begin
- Name :='Example PlugIn'#0; {Name of this UBE }
- Version :=$0001; {Versionnumber of this UBE}
- PlugInKernel:=$0001; {Kernel Version}
- DriverType :=drvUBE; {Type of this UBE }
- Copyright :='Copyright (C) 1996-1998 by ULTiMATE-SYSTEMS'#0; {Copyright}
- AutoOnly :=false; {AutoOnly=false -> Can be insert in Menu-Editor}
- end;
- end;
-
-
- {******************************* Setup *************************************}
- procedure Setup; export;
- begin
- UBKernel_Init('UBKERNEL.DLL'); {Initializing the complete Kernel}
- Get_ConfigPointer(VConfiguration); {Get the Pointer-Address of the Configuration-Data}
-
- {The Setup-routine}
-
- UBKernel_Done; {Done the Kernel}
- end;
-
-
- {********************************* UBE *************************************}
- Function PlugIn_Run(ComDriver,ScreenDriver:Pchar;VUBKey:TUBKey;Params:String):String; export;
- begin
- UBKernel_Init('UBKERNEL.DLL'); {Initializing the complete Kernel}
- SCREEN_Init(ScreenDriver);
-
- Get_ConfigPointer(VConfiguration); {Get the Pointer-Address of the Configuration-Data}
- Get_LngPointer(VActPoint); {Get the Pointer-Address of the Language-File}
- Get_UserPointer(VUserData); {Get the Pointer-Address of the current Userdata}
- Get_SecLevelsPointer(VSecurity_Levels);
- Get_NodeCFGPointer(VNode_CFG); {Get the Pointer-Address of the current Modem-Settings}
-
-
- {The UBE}
-
-
- SCREEN_Done;
- UBKernel_Done; {Done the Kernel}
- PlugIn_Run:='';
- end;
-
-
- exports
- DescribeDriver resident,
- Setup resident,
- PlugIn_Run resident;
- begin
- end.