Go Back   FileForums > Games > Game Coders

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 15-05-2007, 08:01
caki caki is offline
Registered User
 
Join Date: Dec 2004
Location: UK
Posts: 899
Thanks: 0
Thanked 0 Times in 0 Posts
caki is on a distinguished road
It says in red letters in the MSDN page that this API may not be used in future versions of windows. Thus, it could possibly lead to some compatibility problems in the future.
__________________
Sanity is for the weak.
Reply With Quote
Sponsored Links
  #2  
Old 15-05-2007, 15:57
anonymous1381 anonymous1381 is offline
Junior Member
 
Join Date: May 2007
Location: Why the **** should you care?
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
anonymous1381 is on a distinguished road
caki,

maybe you are right, maybe not.

Code:
00EDFE4A    FF15 30494901              CALL DWORD PTR DS:[<&KERNEL32.GetProcAddress>]                    ; kernel32.GetProcAddress
00EDFE50    8945 D0                    MOV DWORD PTR SS:[EBP-30],EAX
00EDFE53    6A 00                      PUSH 0
00EDFE55    6A 04                      PUSH 4
00EDFE57    BA D9DDF5FF                MOV EDX,FFF5DDD9
00EDFE5C    8D942A F3210A00            LEA EDX,DWORD PTR DS:[EDX+EBP+A21F3]
00EDFE63    83EC 04                    SUB ESP,4
00EDFE66    891424                     MOV DWORD PTR SS:[ESP],EDX
00EDFE69    6A 07                      PUSH 7
00EDFE6B    FF15 C84A4901              CALL DWORD PTR DS:[<&KERNEL32.GetCurrentProcess>]                 ; kernel32.GetCurrentProcess
00EDFE71    83EC 04                    SUB ESP,4
00EDFE74    890424                     MOV DWORD PTR SS:[ESP],EAX
00EDFE77    FF55 D0                    CALL DWORD PTR SS:[EBP-30]
The above GetProcAddress returns ZwQueryInformationProcess. However, if I force it to return 0, meaning the API was not found, the app obviously crashes because there is no test to see if the return value was correct.

Maybe the securom devs do a GetVersion to check if the OS supports ZwQueryInformationProcess?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
dreamfall tricky securom Mperor PC Games 1 02-10-2006 06:57
differente version of securom ???? (packer) bidule PC Games 2 07-03-2002 02:53
[Help! - Removing the Securom protection...] XICO2KX CD/DVD Copy Protections & Utilities 1 19-12-2001 19:16
Securom protection!! trax PC Games 6 15-03-2001 16:15
PHILIPS STILL KILLING SD2 AND SONY HANDLING SECUROM 1&2 Redrum1 PC Games 2 26-02-2001 14:39



All times are GMT -7. The time now is 07:09.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com