Export drivers

Ask your beginner questions here.
WhoPMi
Posts: 18
Joined: Thu Aug 09, 2018 2:14 pm

Re: Export drivers

Post by WhoPMi » Thu Aug 16, 2018 8:50 pm

Okay, this is a static linking, but i want a dynamic linking.

Thanks.

User avatar
Vrtule
Posts: 461
Joined: Sat Mar 13, 2010 9:14 pm
Location: Czech Republic
Contact:

Re: Export drivers

Post by Vrtule » Thu Aug 16, 2018 10:10 pm

Okay, this is a static linking, but i want a dynamic linking.
It is still a dynamic linking but the system does it at driver load time.

As far as I know, there is nothing like GetProcAddress in kernel. However, this is not a big issue, since you can find exported functions manually (or find a code that does that).

Absence of LoadLibrary is a bigger issue. You can also load your DLL manually but the consequences might not be desirable for your case:
* the system does not know about the loaded DLL which restricts it from using some APIs (notify routines, registry callbacks, DPCs...) or makes their usage quite difficult,
* other drivers won't see the loaded DLL,
* you must be very careful since somebody can modify your DLL (if it is stored on disk).

User avatar
EP_X0FF
Global Moderator
Posts: 4812
Joined: Sun Mar 07, 2010 5:35 am
Location: Russian Federation
Contact:

Re: Export drivers

Post by EP_X0FF » Fri Aug 17, 2018 8:13 am

This feature is not for general usage. What do you want to do and why you need this dlls in kernel mode, is a top and priority question.
Ring0 - the source of inspiration

WhoPMi
Posts: 18
Joined: Thu Aug 09, 2018 2:14 pm

Re: Export drivers

Post by WhoPMi » Sat Aug 18, 2018 12:54 am

So? .-.

User avatar
Vrtule
Posts: 461
Joined: Sat Mar 13, 2010 9:14 pm
Location: Czech Republic
Contact:

Re: Export drivers

Post by Vrtule » Sat Aug 18, 2018 3:03 pm

So? .-.
So, what problem are you trying to solve? There is possibly a way other than export drivers.

Post Reply