How to calculate the number?

Results 1 to 2 of 2
  1. #1
    Account Upgraded | Title Enabled! mingxin is offline
    MemberRank
    Jul 2011 Join Date
    291Posts

    How to calculate the number?

    if(VirtualProtect(LPVOID(0x401000),3543191,PAGE_EXECUTE_READWRITE,&OldProtect))
    3543191,how to calate the number?
    Please advise.
    123asd.png


  2. #2
    Enthusiast brunohkbx is offline
    MemberRank
    Mar 2014 Join Date
    mov ebx,1Location
    30Posts

    Re: How to calculate the number?

    This number is the size, so all the region in the range 0x401000 + 3543191 will be set with the privilege PAGE_EXECUTE_READWRITE.

    See :
    https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
    Last edited by brunohkbx; 31-10-15 at 06:10 PM.



Advertisement