Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
inpobj.cpp
Package: shell.rar [view]
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 2k
Category:
Windows Kernel
Development Platform:
Visual C++
- #include "priv.h"
- #include "inpobj.h"
- #define DM_FOCUS 0 // focus stuff
- #define DM_FOCUS2 0 // like DM_FOCUS, but verbose
- //*** IInputObject {
- HRESULT UnkHasFocusIO(IUnknown *punkThis)
- {
- HRESULT hres = E_FAIL;
- if (punkThis != NULL) {
- IInputObject *pio;
- hres = punkThis->QueryInterface(IID_IInputObject, (LPVOID*)&pio);
- if (SUCCEEDED(hres)) {
- hres = pio->HasFocusIO();
- pio->Release();
- }
- }
- if (hres != S_OK)
- TraceMsg(DM_FOCUS2, "hfio hres=%x (!=S_OK)", hres);
- return hres;
- }
- HRESULT UnkTranslateAcceleratorIO(IUnknown *punkThis, MSG* pmsg)
- {
- HRESULT hres = E_FAIL;
- if (punkThis != NULL) {
- IInputObject *pio;
- hres = punkThis->QueryInterface(IID_IInputObject, (LPVOID*)&pio);
- if (SUCCEEDED(hres)) {
- hres = pio->TranslateAcceleratorIO(pmsg);
- pio->Release();
- }
- }
- return hres;
- }
- HRESULT UnkUIActivateIO(IUnknown *punkThis, BOOL fActivate, LPMSG lpMsg)
- {
- HRESULT hres = E_FAIL;
- if (punkThis != NULL) {
- IInputObject *pio;
- hres = punkThis->QueryInterface(IID_IInputObject, (LPVOID*)&pio);
- if (SUCCEEDED(hres)) {
- hres = pio->UIActivateIO(fActivate, lpMsg);
- pio->Release();
- }
- }
- if (FAILED(hres))
- TraceMsg(DM_FOCUS2, "uiaio(fActivate=%d) hres=%x (FAILED)", fActivate, hres);
- return hres;
- }
- // }
- //*** IInputObjectSite {
- HRESULT UnkOnFocusChangeIS(IUnknown *punkThis, IUnknown *punkSrc, BOOL fSetFocus)
- {
- HRESULT hres = E_FAIL;
- if (punkThis != NULL) {
- IInputObjectSite *pis;
- hres = punkThis->QueryInterface(IID_IInputObjectSite, (LPVOID*)&pis);
- if (SUCCEEDED(hres)) {
- hres = pis->OnFocusChangeIS(punkSrc, fSetFocus);
- pis->Release();
- }
- }
- if (FAILED(hres))
- TraceMsg(DM_FOCUS, "ofcis(punk=%x fSetFocus=%d) hres=%x (FAILED)", punkSrc, fSetFocus, hres);
- return hres;
- }
- // }