Click here to Skip to main content
15,919,245 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to detect if you are connected to internet? Pin
David Crow21-Jun-04 8:28
David Crow21-Jun-04 8:28 
AnswerRe: How to detect if you are connected to internet? Pin
Michael Dunn21-Jun-04 16:57
sitebuilderMichael Dunn21-Jun-04 16:57 
GeneralRe: How to detect if you are connected to internet? Pin
palbano21-Jun-04 17:24
palbano21-Jun-04 17:24 
GeneralRe: How to detect if you are connected to internet? Pin
kfaday22-Jun-04 2:04
kfaday22-Jun-04 2:04 
QuestionSetWorldTransform()/SetGraphicsMode() bug in printing? Pin
CodeHead21-Jun-04 4:01
CodeHead21-Jun-04 4:01 
Generalcbt hook for avoid title bar in all windows Pin
Oscarin21-Jun-04 3:56
Oscarin21-Jun-04 3:56 
GeneralRe: cbt hook for avoid title bar in all windows Pin
gamitech22-Jun-04 13:31
gamitech22-Jun-04 13:31 
GeneralNeed a little help guys Pin
mayanxn0321-Jun-04 3:56
mayanxn0321-Jun-04 3:56 
unsigned int GetOtherOffset( int index ) {<br />
	byte array[8];<br />
	unsigned long otherAddress;<br />
	if ( ReadProcessMemory( g_hCurrentProcess, (void *) (g_uiOtherBaseOffset), (void *) array, 8, NULL ) ) {<br />
		otherAddress = GetUnsignedLong( array );<br />
<br />
		if ( ReadProcessMemory( g_hCurrentProcess, (void *) (otherAddress + 152416 + (index * 480)), (void *) array, 8, NULL ) ) {<br />
			return GetUnsignedLong( array );<br />
		}<br />
	}<br />
	return -1;<br />
}


I understand that in the first part, ReadProcessMemory gets the value from g_uiOtherBaseOffset and stores it as an Unsigned Long Labled "otheraddress".

What I have trouble understanding is the second part...this part.

if ( ReadProcessMemory( g_hCurrentProcess, (void *) (otherAddress + 152416 + (index * 480)), (void *) array, 8, NULL ) ) {<br />
			return GetUnsignedLong( array );


So, it takes the value from 'otheraddress' and adds it to 152416.....then what? Where does the 'index' part come from? And why is it multiplied by 480?
GeneralRe: Need a little help guys Pin
Johnny ²21-Jun-04 4:53
Johnny ²21-Jun-04 4:53 
GeneralDisable Special key's Pin
Larsson21-Jun-04 3:47
Larsson21-Jun-04 3:47 
GeneralRe: Disable Special key's Pin
V.21-Jun-04 5:11
professionalV.21-Jun-04 5:11 
GeneralRe: Disable Special key's Pin
Trollslayer21-Jun-04 5:22
mentorTrollslayer21-Jun-04 5:22 
GeneralRe: Disable Special key's Pin
David Crow21-Jun-04 6:47
David Crow21-Jun-04 6:47 
GeneralRe: Disable Special key's Pin
Trollslayer21-Jun-04 7:50
mentorTrollslayer21-Jun-04 7:50 
GeneralRe: Disable Special key's Pin
David Crow21-Jun-04 8:26
David Crow21-Jun-04 8:26 
GeneralRe: Disable Special key's Pin
Trollslayer21-Jun-04 9:38
mentorTrollslayer21-Jun-04 9:38 
GeneralRe: Disable Special key's Pin
David Crow21-Jun-04 9:49
David Crow21-Jun-04 9:49 
GeneralRe: Disable Special key's Pin
jmkhael21-Jun-04 5:32
jmkhael21-Jun-04 5:32 
GeneralRe: Disable Special key's Pin
Larsson21-Jun-04 6:58
Larsson21-Jun-04 6:58 
GeneralRe: Disable Special key's Pin
jmkhael21-Jun-04 7:00
jmkhael21-Jun-04 7:00 
GeneralRe: Disable Special key's Pin
Larsson21-Jun-04 7:05
Larsson21-Jun-04 7:05 
GeneralRe: Disable Special key's Pin
David Crow21-Jun-04 9:50
David Crow21-Jun-04 9:50 
GeneralRe: Disable Special key's Pin
Larsson21-Jun-04 9:54
Larsson21-Jun-04 9:54 
GeneralRe: Disable Special key's Pin
ThatsAlok21-Jun-04 21:45
ThatsAlok21-Jun-04 21:45 
GeneralRe: Disable Special key's Pin
Larsson22-Jun-04 3:50
Larsson22-Jun-04 3:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.