0
_CreateProcess __CreateProcess = NULL;
	__CreateProcess = (_CreateProcess)GetProcAddress(GetModuleHandle("Kernel32.dll"), "CreateProcessA");

what is this (_CreateProcess) in the code??? is this a cast types?

__CreateProcess = (_CreateProcess)GetProcAddress(GetModuleHandle("Kernel32.dll"), "CreateProcessA");

4
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by WaltP
0

what is this (_CreateProcess) in the code??? is this a cast types?

Yes it is a type cast. Why would you want be doing that kind of thing?
You can simply call CreateProcess(...) with the arguments it takes, without hassling with function pointers at all.

0

Why would you want be doing that kind of thing?

Good question it looks a lot like a HOOK and dll injection example piece of code.

Although, the fact I recognise it is probably not a good thing ;)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.