Thread: input parameter debug

  1. #1
    Registered User
    Join Date
    May 2006

    input parameter debug

    Hello everyone,

    I an setting break point on some some system API, for example, CoInitializeEx. Here is the call stack I got from WinDbg.

    My question is, how to get the related assembly language before we call CoInitialize (e.g. preparing input parameter), I want to see how the parameters are prepared either in register or pushed on stack for function call CoInitializeEx.

    Child-SP          RetAddr           Call Site
    00000000`0012f7c8 00000000`023b6744 ole32!CoInitializeEx
    00000000`0012f7d0 00000642`7f5f84a6 vfbasics!AVrfpCoInitializeEx+0x2c
    00000000`0012f800 00000642`7f622fba mscorwks!Thread::SetApartment+0x8a
    00000000`0012f890 00000642`7f5ef820 mscorwks!SystemDomain::SetThreadAptState+0x7e
    00000000`0012f8d0 00000642`7f467d97 mscorwks!SystemDomain::ExecuteMainMethod+0x198
    00000000`0012fea0 00000642`7f482c24 mscorwks!ExecuteEXE+0x47
    00000000`0012fef0 00000642`7ee69ade mscorwks!_CorExeMain+0xac
    00000000`0012ff50 00000000`77d5964c mscoree!_CorExeMain+0x3e
    00000000`0012ff80 00000000`00000000 KERNEL32!BaseProcessStart+0x29

    thanks in advance,

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    So use the "u" command to disassemble the relevant bit of code (the call to CoInititalizeEx at 00000642`7f5f84a6 and CoInititalizeEx itself).

    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. For loop problems, input please.
    By xIcyx in forum C Programming
    Replies: 2
    Last Post: 04-22-2007, 03:54 AM
  2. I would love some input on my BST tree.
    By StevenGarcia in forum C++ Programming
    Replies: 4
    Last Post: 01-15-2007, 01:22 AM
  3. About aes
    By gumit in forum C Programming
    Replies: 13
    Last Post: 10-24-2006, 03:42 PM
  4. Structure and Linked List User Input Question
    By kevndale79 in forum C Programming
    Replies: 16
    Last Post: 10-05-2006, 11:09 AM
  5. need help with some input
    By blindleaf in forum C Programming
    Replies: 2
    Last Post: 03-16-2003, 01:50 PM