Solved What does this means " *(DWORD*) "?

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

zoratz

Jr.Coder
Dank Tier Donator
Nobleman
Jul 22, 2013
81
838
2
Hey there, i'm looking at Fleep's FindDmaAddy function:
C++:
DWORD FindAddress(int pointerLevel, DWORD offsets[], DWORD BaseAddress){
	DWORD Ptr = *(DWORD*) (BaseAddress);

	if(Ptr == 0) return NULL;

	for(int i = 0; i < pointerLevel; i++){
		if(i == pointerLevel - 1){
			Ptr = (DWORD)(Ptr+offsets[i]);
			if(Ptr == 0) return NULL;
			return Ptr;
		}else{
			Ptr = *(DWORD*)(Ptr+offsets[i]);
			if(Ptr == 0) return NULL;
		}
	}
	return Ptr;
}
What I don't understand is:
C++:
DWORD Ptr = *(DWORD*) (BaseAddress);
Why some many asterisks and what does that do?
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods