In what situations is EncodePointer() used?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: In what situations is EncodePointer() used?

  1. #1
    Join Date
    Oct 2017

    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 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
    Voronezh, Russia

    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,

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This a survey!

On-Demand Webinars (sponsored)