New custom function 60 - 20 : Load KDL libray I've add a sub function in system services (subfuction 20) to load the KDL library (my version of them)
it load the file in the application memory and return the adress of it,
than in the application you must resolve the adresse of the function from the kdl to use them:
the included file (include them to kernel32.inc) : http://stephaneweg.cabspace.com/files/kdl.inc
the modifed syscall file (add the sub_function in new_services syscall at the number 20)
http://stephaneweg.cabspace.com/files/memory.inc
3 sample program: ( http://stephaneweg.cabspace.com/files/libipc.7z )
- the client that use the kdl to send message to the server
- the server that receive the message and display it to the window
- the dynamic librairy used by the both (libkdl.kdl, to copy to /hd0/1/kolibri/lib/)
diamond- 02-26-2007
The kernel already supports dynamic libraries in standard COFF format, which can be generated by FASM and many other compilers (even those who can not create binary files). Why do the kernel need another code to handle custom things, that can be created only as binary files?
trolly- 02-26-2007
the dynamic libraries are loaded in the kernel memory or in the app memory?
i mean thats the function load_dll , load the dll in the kernel side , if it is so, it's not secure enought.
diamond- 02-26-2007
There are two functions, 68.16 and 68.19. First one loads a driver, which is executed in ring-0, at kernel side. Second one loads a DLL, which is executed in ring-3 (in user-mode) by calling its functions from application (by usual CALL instruction).
trolly- 03-03-2007
okey,
i've convert the test library in coff format; it work.... thank.
Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.