Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7943439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:16:34+00:00 2026-06-04T00:16:34+00:00

I am fairly new to Windows API Programming and I want to know in

  • 0

I am fairly new to Windows API Programming and I want to know in layman’s terms what is subclassing and API Hooking. I am doing a project that uses owner drawn controls, and I two terms keep coming up. Now I have already seen a lot of detailed tutorials on CodeProject.com about these topics, but the problem is that all of them use MFC, and I am coding in pure Win32. If anyone knows about any good tutorials of the above mentioned topics then please post the links. Also try to avoid links to the msdn, as novice I am having trouble making sense of whats written there.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T00:16:35+00:00Added an answer on June 4, 2026 at 12:16 am

    Layman terms: sub-classing is done by replacing the window procedure of a window. Which redirects the calls that Windows makes to deliver a message to a window to your function so you get to see those messages first. This lets you change the behavior of the window, giving it new capabilities that the original one didn’t have. It is a very common technique and directly supported by the OS, the SDK article is here.

    API hooking is similar but for winapi functions. So that you can change the behavior of code that runs in your process that you didn’t write. Arbitrarily, you could hook CreateFile() and change the passed file name or make it fail on purpose. It is much less common to do this and also much harder to get right since it is not a baked-in capability like sub-classing is. Microsoft’s Detours is an example implementation of the technique.

    Either technique is in the advanced programming category and you can get yourself into pretty nasty trouble if you don’t do it right. If you have trouble reading the MSDN articles right now then leave it on the shelf until you’re ready for it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I am fairly new to ASP.NET MVC and Windows Live Connect API. Basically
Let me state up front, that sockets programming is fairly new to me. Also,
I come from Linux and Windows programming is fairly new to me. On linux,
I'm fairly new to C# programming. I am making a program for fun that
I am porting my application to windows from Linux. I am fairly new to
I fairly new to JQuery and perhaps trying to achieve something that might be
I am fairly new to Windows development (experienced on the Mac side), and am
I've written a small windows service that I want to run daily on my
I'm fairly new at programming, but I've wondered how shell text editors such as
I've been thinking about starting a new graphics project and I want to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.