Why does calling kernel32.GetModuleHandleA() for msvcr100 fail in Python?

后端 未结 4 790
挽巷
挽巷 2021-01-27 03:06

I am having a problem with calling GetModuleHandleA() using Python. I have a module that attaches as debugger to the process. I\'m working on a function that would

4条回答
  •  有刺的猬
    2021-01-27 04:03

    Try calling:

    msvcr100 = cdll.msvcr100
    

    before calling:

    function_address = debug.resolve_function("msvcr100", "printf")
    

    to make sure the DLL is loaded in your process. msvcrt might work because it was already loaded.

提交回复
热议问题