| |

VerySource

 Forgot password?
 Register
Search
View: 8|Reply: 0

How does C's GetModelHandle implement in Delphi

[Copy link]

1

Threads

1

Posts

2

Credits

Newbie

Rank: 1

Credits
2

 China

Post time: 2020-3-22 22:30:01
| Show all posts |Read mode
HANDLE WINAPI MyGetCurrentProcess (VOID) // Replace the original GetCurrentProcess
{
   HMODLE hMod = GetModelHandle ("npggNT.des");
   if (hMod! = NULL) {
      FreeLibrary (hMod); // Free it directly
   }
   UnhookGetCurrentProcess (); // Resume the function header when the thread we want to protect calls
   HANDLE hProcess = GetCurrentProcess (); // Let it call
   RehookGetCurrentProcess (); // Rehook
   return hProcess; // Return the result of the call
}
Delphi does not seem to have GetModelHandle? How does GetModelHandle () in the above code be implemented in Delphi?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2020|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list