Dynamic run-time linking in kernel mode ?

Hi,

In order to fulfil WHQL requirements I have to use MmGetSystemAddressForMdlSafe on Windows XP which is actually a macro that calls MmMapLockedPagesSpecifyCache. However, this function is not available on Win98SE and the binary will not load.

Is there any other (and more elegant) solution than producing 2 separate binaries?
One idea I have is to implement something like dynamic linking at run-time. Does anyone know if this is possible?


Udo Eberhardt
Thesycon GmbH, Germany
xxxxx@thesycon.de
www.thesycon.de

The kernel-mode equivalent of GetProcAddress. It has been in the DDK
header files for a while, but not documented in the help file.

NTKERNELAPI
PVOID
MmGetSystemRoutineAddress (
IN PUNICODE_STRING SystemRoutineName
);

-----Original Message-----
From: Udo Eberhardt [mailto:xxxxx@thesycon.de]
Sent: Tuesday, March 19, 2002 6:01 AM
To: NT Developers Interest List
Subject: [ntdev] Dynamic run-time linking in kernel mode ?

Hi,

In order to fulfil WHQL requirements I have to use
MmGetSystemAddressForMdlSafe on Windows XP which is actually a macro
that calls MmMapLockedPagesSpecifyCache. However, this function is not
available on Win98SE and the binary will not load.

Is there any other (and more elegant) solution than producing 2 separate
binaries?
One idea I have is to implement something like dynamic linking at
run-time. Does anyone know if this is possible?


Udo Eberhardt
Thesycon GmbH, Germany
xxxxx@thesycon.de
www.thesycon.de


You are currently subscribed to ntdev as: xxxxx@nsisoftware.com
To unsubscribe send a blank email to %%email.unsub%%

Again documented in latest MSDN library.

----- Original Message -----
From: “Gilson, Mike”
To: “NT Developers Interest List”
Sent: Tuesday, March 19, 2002 2:08 PM
Subject: [ntdev] RE: Dynamic run-time linking in kernel mode ?

The kernel-mode equivalent of GetProcAddress. It has been in the DDK
header files for a while, but not documented in the help file.

NTKERNELAPI
PVOID
MmGetSystemRoutineAddress (
IN PUNICODE_STRING SystemRoutineName
);

-----Original Message-----
From: Udo Eberhardt [mailto:xxxxx@thesycon.de]
Sent: Tuesday, March 19, 2002 6:01 AM
To: NT Developers Interest List
Subject: [ntdev] Dynamic run-time linking in kernel mode ?

Hi,

In order to fulfil WHQL requirements I have to use
MmGetSystemAddressForMdlSafe on Windows XP which is actually a macro
that calls MmMapLockedPagesSpecifyCache. However, this function is not
available on Win98SE and the binary will not load.

Is there any other (and more elegant) solution than producing 2 separate
binaries?
One idea I have is to implement something like dynamic linking at
run-time. Does anyone know if this is possible?


Udo Eberhardt
Thesycon GmbH, Germany
xxxxx@thesycon.de
www.thesycon.de


You are currently subscribed to ntdev as: xxxxx@nsisoftware.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%