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
IClient.cpp
Package: SwordOnline.rar [view]
Upload User: dzyhzl
Upload Date: 2019-04-29
Package Size: 56270k
Code Size: 1k
Category:
Game Server Simulator
Development Platform:
C/C++
- #include "InterfaceIClient.h"
- #include "ClientStage.h"
- // {D38249A9-4565-4336-9F70-1374F1E158E7}
- static const GUID IID_IESClient =
- { 0xd38249a9, 0x4565, 0x4336, { 0x9f, 0x70, 0x13, 0x74, 0xf1, 0xe1, 0x58, 0xe7 } };
- STDAPI QueryClientInterface
- (
- REFIID riid,
- void **ppv
- )
- {
- HRESULT hr = E_NOINTERFACE;
- if ( IID_IESClient == riid )
- {
- CConnectManager *pObject = new CConnectManager( MAX_BUFFER_KEEPINPOOL, EXTEND_BUFFER_SIZE );
- *ppv = reinterpret_cast< void * > ( dynamic_cast< IClient * >( pObject ) );
- if ( *ppv )
- {
- reinterpret_cast< IUnknown * >( *ppv )->AddRef();
- hr = S_OK;
- }
- }
- if ( FAILED( hr ) )
- {
- *ppv = NULL;
- }
- return ( HRESULT )( hr );
- }