Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/*
* Proxy */
#ifndef DUI_CORE_PROXY_H_INCLUDED
#define DUI_CORE_PROXY_H_INCLUDED
#pragma once
namespace DirectUI {
////////////////////////////////////////////////////////
// Proxy message
#define GM_PROXYINVOKE GM_USER
BEGIN_STRUCT(GMSG_PROXYINVOKE, EventMsg) UINT nType; void* pData; END_STRUCT(GMSG_PROXYINVOKE)
////////////////////////////////////////////////////////
// Proxy
class Proxy { public: Proxy(); ~Proxy();
static HRESULT CALLBACK SyncCallback(HGADGET hgadCur, void * pvCur, EventMsg * pGMsg);
protected:
// Caller invoke
void Invoke(UINT nType, void* pData);
// Callee thread-safe invoke sink
virtual void OnInvoke(UINT nType, void* pData);
HGADGET _hgSync; };
} // namespace DirectUI
#endif // DUI_CORE_PROXY_H_INCLUDED
|