Problem with windows hook and window classes
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi there, I created a dll which creates a WH_CBT windows hook to subclass new windows. The problem is the CBT_CREATEWND structure given as parameter to the CBTProc. It includes a pointer to a CREATESTRUCT structure, where I need to check the lpszClass member to determine the type of window. Some values are less than 0xBFFF, so I can call GetAtomName() to get the class name, but there are also values bigger than 0xC000, which are no memory addresses. Spy++ says they are atoms, but atoms have to be less than 0xBFFF. Any ideas? Regards, Alex Don't try it, just do it! ;-)