Need help asap with hack making

Posts 1–5 of 5 · Page 1 of 1
Need help asap with hack making
Hi all,

When getting the handle to CShell, should I use LoadLibrary or GetModuleHandle? What is the difference? And also what is the difference between LoadLibrary and LoadLibraryA??

@Swag can u help
You can use both,
but I recommend you GetModuleHandle, i use that.
@Swag

What is the A on the end of GetModuleHandleA for? Do you need it?
A is for ANSII strings (char array), it supports less than 256 chars.
W is for UNICODE strings (wchar array), it supports very much chars, but it needs a bit more space.
LoadLibrary loads a library if it isn't already loaded and returns the begin of the module.
GetModuleHandle just returns the begin of the module and is a bit faster.
Quote Originally Posted by _corn_ View Post
Hi all,

When getting the handle to CShell, should I use LoadLibrary or GetModuleHandle? What is the difference? And also what is the difference between LoadLibrary and LoadLibraryA??

@Swag can u help
the difference is LoadLibrary loads the dll if not exists and returns its handle while GetModuleHandle just returns the handle or NULL if not existing
just use GetModuleHandle and wait it return something != NULL
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?