AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

c++ zu delphi (kleines snippet)

Ein Thema von smc · begonnen am 2. Aug 2006 · letzter Beitrag vom 23. Aug 2006
 
smc

Registriert seit: 21. Dez 2005
49 Beiträge
 
#1

c++ zu delphi (kleines snippet)

  Alt 2. Aug 2006, 10:22
kann mir zufällig jemand dieses c++ snippet delphinizen?

Code:
VOID stilleto_Hook(PDWORD pstilletoHook, DWORD dwstilletoOffset)
{
   DWORD dwOldProtect;
   
   g_stilletoOffset = dwstilletoOffset;
   
   if(pstilletoHook && g_stilletoOffset && VirtualProtect(pstilletoHook, 4, PAGE_EXECUTE_READWRITE, &dwOldProtect))
   {
      g_pOrigstilletoFunc = *pstilletoHook + (PtrToUlong(pstilletoHook) + 4);
      *pstilletoHook = PtrToUlong(stilleto_Stub) - (PtrToUlong(pstilletoHook) + 4);
      VirtualProtect(pstilletoHook, 4, dwOldProtect, &dwOldProtect);
   }
}
danke schonmal
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:50 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz