Board.KolibriOS.org

Official KolibriOS board
It is currently Thu Apr 25, 2019 5:20 pm

All times are UTC+03:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Aug 25, 2008 11:13 pm 
Offline

Joined: Sat Feb 23, 2008 12:24 am
Posts: 32
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
Code:
mov     eax, 68
mov     ebx, 19
mov     ecx, dll_name

?


Top
   
PostPosted: Mon Aug 25, 2008 11:18 pm 
Offline

Joined: Sat Feb 23, 2008 12:24 am
Posts: 32
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?


Top
   
PostPosted: Thu Aug 28, 2008 8:49 am 
Offline
Site Founder
User avatar

Joined: Sun Aug 08, 2004 8:55 am
Posts: 689
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).

_________________
in code we trust


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited