How to call kdextx86 commands from my extension dll?

All,

I am writing an extension dll to get information from
my driver. As part of it I would like to use some of
the commands from kdextx86.dll (for example I have to
call “!process” passing it the address), how do I call
those commands within my extension dll code? Regular
way of loading dll’s (using
LoadLibrary()/GetProcAddress()) does not seem to work
with extension dll’s.

Any help is highly appreciated.

Thanks,
Vam


Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail

You can execute debugger commands from your extension - if you use the new
style interfaces, your extension routine is passed a PDEBUG_CLIENT pointer,
you can use that to query for the IDebugControl3 interface and then use the
Execute method of that to run the “!process” command. Here’s an extract of
the final step from one of mine:

// execute command to dump this
sprintf(cmd,“dt sracc!%s 0x%x -r1”,
dumpsyncpt?“PROC_SAVE_AREA”:“PROC_DUMP”,
(ULONG)procSaveAreaAddress);
dprintf(“%s\n”,cmd); // echo command being executed
g_ExtControl->Execute(DEBUG_OUTCTL_ALL_CLIENTS |
DEBUG_OUTCTL_OVERRIDE_MASK |
DEBUG_OUTCTL_NOT_LOGGED,
cmd, // Command to be executed
DEBUG_EXECUTE_DEFAULT);

/simgr

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Vam
Sent: Wednesday, December 08, 2004 8:02 AM
To: Kernel Debugging Interest List
Subject: [windbg] How to call kdextx86 commands from my extension dll?

All,

I am writing an extension dll to get information from
my driver. As part of it I would like to use some of
the commands from kdextx86.dll (for example I have to
call “!process” passing it the address), how do I call
those commands within my extension dll code? Regular
way of loading dll’s (using
LoadLibrary()/GetProcAddress()) does not seem to work
with extension dll’s.

Any help is highly appreciated.

Thanks,
Vam


Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail


You are currently subscribed to windbg as: xxxxx@stratus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com