Thread: VirtualProtectEx fails

  1. #16
    Registered User
    Join Date
    Jun 2011
    Posts
    30
    Current stand: I can, thanks to your guidance change the access and set a memory breakpoint, using the LOAD_DLL_DEBUG_EVENT exception to get a valid address space. However, I can't seem to get the name of the loaded DLL. Is it possible to cast the unicode value lpImageName in LOAD_DLL_DEBUG_INFO to a string somehow?

  2. #17
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Is the problem that you're getting NULL, or that you're getting Unicode?

  3. #18
    Registered User
    Join Date
    Jun 2011
    Posts
    30
    Unicode, though I think I found a way to get the name through the handle on msdn (link).

    I assume that approach could be used by passing the dll-handle, can't blame them for making it easy on their developers though...

    I'm feeling okey about the debugging library at the moment and feel I should create a disassembler to make it easier for a potential user to put breakpoints. The first step, before disassembling, should be reading the entire file in hex-values, right?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fscanf fails on an int
    By Chronoflect in forum C Programming
    Replies: 3
    Last Post: 02-18-2011, 06:00 PM
  2. Why this fails?
    By manav in forum C++ Programming
    Replies: 13
    Last Post: 05-29-2008, 01:11 PM
  3. trying to rea from /dev/tty fails!
    By arunj in forum Linux Programming
    Replies: 4
    Last Post: 10-17-2007, 03:59 AM
  4. wofstream Fails in VC++ 6.0
    By mercury529 in forum C++ Programming
    Replies: 2
    Last Post: 11-22-2005, 11:51 PM
  5. InternetConnect fails
    By jmd15 in forum Windows Programming
    Replies: 5
    Last Post: 09-04-2005, 06:05 PM