Snippet for ANSI/Unicode Windows API functions

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat


Cesspool Admin
Jan 21, 2014
Has this function ever annoyed the shit outta you?
Cuz typecasting to LPCSTR, putting the "L" in front of the string or doing _T(blahblahblah) is so annoying...and when you switch between debug/release builds in Visual Studio you have to change the code to adapt to blah blah blah

Introducing FindWindowA() and SetConsoleTitleA() which both take an ANSI string, now you can type:

FindWindowA(NULL, "AssaultCube");
SetConsoleTitleA("AnomanderRake's AssaultCube Aimbot");
No more playing around, just type what you want in quotation marks and you're all set!
And apparently lots of windows API functions regarding strings have a version of each function for each character set you might choose to use!

And this is fantastic reading material regarding strings and their vast history of annoyingness.
Last edited:
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