Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Out_debug_string and debugview

11 views
Skip to first unread message

pachu

unread,
Jul 11, 2002, 5:35:41 AM7/11/02
to
Hi all,
I am using the ctrl2cap sample (VxD)
I need to add some debug statements, in the code. I want to check the
value of the virtual machine handle of a particular device, which is
returned by VKD_Get_Kbd_Owner service. I am able to print some
strings. But how do i print the handle ?
I did the following, can anyone kindly let me know how i can print the
value of the virtual machine handle.

1) added the following in the VXD_LOCKED_DATA_SEG
MyString db "Owner",0

2)And in one of the function i add the following code

pushfd
pushad
mov esi, offset32 MyString
VMMCall Out_Debug_String
popad
popfd

I can see this string in the debugview.

Can any one let me know how i can print the virtual machine handle ?

thanks in advance and regards
pachu

Nicolas Collignon

unread,
Jul 11, 2002, 8:22:01 AM7/11/02
to

You can use the DbgPrint() function . I don't see what i can tell you more
about that:
push handle value
push format string
call DbgPrint

bye
-- nicolas

cheehui

unread,
Jul 11, 2002, 9:46:18 PM7/11/02
to
To obtain the handles, just look up the following APIs
For current VM, make a call to Get_Cur_VM_Handle
For system VM, make a call to Get_Sys_VM_Handle.

Good luck.

-Tan Chee Hui

pachu

unread,
Jul 12, 2002, 12:36:35 AM7/12/02
to
Hello Nicolas Collignon,
dbgprint works on ME too ? I am using asm code.
ok i shall try that out. But i tried another service
_Debug_printf_service, it worked too.
thanks for your reply. Are you familiar with vxd's (keyboards
especially) ? i have lots of doubts, i have not been getting much
help.
I need to handle data from two keyboard separately. One PS/2 and one
USB. or may be both USB. THe problem here is, i have added a filter
driver for the USB stack, and i am struggling for the PS/2 part. 2K
anb XP has a clean approach, One can add a filter driver on top of
KbdClass which is common for both USB and PS/2.
What on Win ME ?
Ok, is it possible to atleast load a filter for just the PS/2 keyboard
? let it be a VxD or a Sys file. Is is possible at all ?

thanks and regards
pachu

Nicolas Collignon <coll...@ece.fr> wrote in message news:<slrnaiqu31....@gandalf.ece.fr>...

0 new messages