Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › C++/C Programming › Windows Programming

Windows Programming

Posts 1–5 of 5 · Page 1 of 1
why06
why06
Windows Programming
I found a little gem: Windows Programming - Wikibooks, collection of open-content textbooks

But other then that. You know BA how you were talking about making writing a tutorial on Windows Programming, maybe that isn't really necessary, but what I could really use is a HelloWorld sort of introduction to the Windows programming. All the defines and the HWND give me the most trouble, but I feel like I can be able to understand it all at this point if someone could just sort give me a boost. :l

Because I feel like this sort of explains my current situation: http://www.infiltec.com/j-h-wrld.htm o_O
#1 · edited 16y ago · 16y ago
Matrix_NEO006
Matrix_NEO006
nice someday will come handy.
#2 · 16y ago
ZE
zeco
The Various handles annoyed me at first but eventually i found a series of explanations that kinda made sense,
#3 · 16y ago
B1ackAnge1
B1ackAnge1
Just let me know what you want to learn/explained and i'll write something up or we'll talk on msn
#4 · 16y ago
why06
why06
Quote Originally Posted by B1ackAnge1 View Post
Just let me know what you want to learn/explained and i'll write something up or we'll talk on msn
Well what I really want to understand inside and out is this:
[php]
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
[/php]

I figure everything about Windows programming ultimately has to be base on this. I know it has something to do with messaging and timed slots. I know that hInstance is a handle to an instance, but see I don't really understand what a handle is. That's what I mean... it's this obfuscation that I'm not used to. Back in regular C++ I knew an int was 4 bytes, but now its different. What is an HINSTANCE? Why is WINAPI before WinMain? Is it some sort of function additive? And why are all the words capitalized? Is it to help old people read them o_O?!

But most importantly how does this whole Windows thing work. Yeah I guess to understand how the Windows API works what I really need to know is how Windows works, and how the API uses function in Windows. So how is WinMain part or windows?


There's also these parts too, but I suppose they are somewhat less important. I feel like if I can understand WinMain, and I mean really understand it. I can figure these out on my own.
[php]
{
// declare variables
MSG msg;

// register the class
MyRegisterClass(hInstance);

// initialize application
if (!InitInstance (hInstance, nCmdShow))
return FALSE;

// main message loop
while (GetMessageA(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessageA(&msg);
}

return msg.wParam;
}
[/php]

lastly... I want to be able to return 0 and not false -__-... That seems more like real programming to me.
#5 · 16y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

  • [Request]Windows Programming Fifth EditionBy 258456 in C++/C Programming
    4Last post 15y ago
  • Programming Windows 5th EditionBy scimmyboy in C++/C Programming
    6Last post 15y ago
  • [C++]Using Windows Application Programming Interface to create a windowBy Mr. Bond in Programming Tutorials
    2Last post 18y ago
  • Program windows cut-offBy Kage56 in Suggestions, Requests & General Help
    0Last post 17y ago
  • Programming An Ipod Touch Using The Windows PlatformBy radnomguywfq3 in C++/C Programming
    11Last post 17y ago

Tags for this Thread

#programming#windows