Board.KolibriOS.org
http://board.kolibrios.org/

diff between dll and driver files
http://board.kolibrios.org/viewtopic.php?f=3&t=1129
Страница 1 из 1

Автор:  crchemist [ Пн авг 25, 2008 11:13 pm ]
Заголовок сообщения:  diff between dll and driver files

Can someone explain me difference between common somedll.obj file and somedriver.obj. As i see - the only one difference is that code from somedriver.obj executed in ring0 - is it right? And other question - can i load 'somefunction' that is located in somedll.obj from somedriver.obj with
Код:
mov     eax, 68
mov     ebx, 19
mov     ecx, dll_name

?

Автор:  crchemist [ Пн авг 25, 2008 11:18 pm ]
Заголовок сообщения:  Re: diff between dll and driver files

i have somedll.obj with 'func1', 'func2'. I want load these fuctions from somedriver.obj. And i want to execute 'func1', 'func2' in ring0. How can i do this?

Автор:  mike.dld [ Чт авг 28, 2008 8:49 am ]
Заголовок сообщения:  Re: diff between dll and driver files

I remember kernel using libini (or libio?) to read something. Maybe this was just an experiment, but it worked. Whether you can or can't use somedll.obj from driver depends on how this DLL was written. If you're just asking for such possibility then yes, it's possible.

EDIT: libini is used now in kernel (/imports.inc, /core/conf_lib.inc, /fs/parse_fn.inc). The same DLL is also used by programs. The only difference in using it from ring0/ring3 is parameters passed to lib_init function (pointers to memory allocation/deallocation functions and DLL loading function).

Страница 1 из 1 Часовой пояс: UTC+03:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/