CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2017
    Posts
    5

    Cool In what situations is EncodePointer() used?

    I was wondering the applications and scenarios that EncodePointer()/DecodePointer() can actually be used?

    the most I have found on it is https://stackoverflow.com/questions/...-decodepointer and of course the MSDN for it...

    What does EncoderPointer actually prevent? when should it be used? and how effective is it?

    If you can, provide a scenario that it can be used for?


    Sincerely, Semaph0re.

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: In what situations is EncodePointer() used?

    It's very typical situation when your code provides some context pointer to outer module just to be carried along and returned in one of the callbacks to your module to complete the operation. The context pointer therefore may be reverse-engineered and/or exploited by a malware. Encoding the pointer is to hamper reverse engineering at some level, though nothing prevents the malware to decode the pointer once you let it in your process.
    Best regards,
    Igor

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured