| |

VerySource

 Forgot password?
 Register
Search
View: 804|Reply: 3

How does C's GetModelHandle implement in Delphi

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 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

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 Invalid IP Address

Post time: 2020-7-18 21:15:01
| Show all posts
hInstance
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-8-1 23:45:01
| Show all posts
GetModuleHandle?
Reply

Use magic Report

0

Threads

40

Posts

27.00

Credits

Newbie

Rank: 1

Credits
27.00

 China

Post time: 2020-8-2 08:30:01
| Show all posts
GetModuleHandle has been declared in Windows.pas in DELPH.
Reply

Use magic Report

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

Points Rules

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

Quick Reply To Top Return to the list