home *** CD-ROM | disk | FTP | other *** search
- // undocumented.cpp
-
- #include "undocumented.h"
- #include "stdafx.h"
-
- // declare undocumented functions
- void SwitchToThisWindow(HWND hWnd, BOOL bActivate)
- {
- // bring window to the front
- typedef void (WINAPI *SwitchToThisWindowFunc)( HWND, BOOL );
- HINSTANCE hInstance = LoadLibrary("USER32.DLL");
- SwitchToThisWindowFunc SwitchToThisWindow_Call = (SwitchToThisWindowFunc)GetProcAddress(hInstance,"SwitchToThisWindow");
- SwitchToThisWindow_Call(hWnd,bActivate);
- FreeLibrary(hInstance);
- }
-