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
sccls.h
Package: win2ksrc.rar [view]
Upload User: caisha3
Upload Date: 2013-09-21
Package Size: 208739k
Code Size: 2k
Category:
Windows Develop
Development Platform:
Visual C++
- // Create Instance functions
- #ifndef _SCCLS_H_
- #define _SCCLS_H_
- //
- // global object array - used for class factory, auto registration, type libraries, oc information
- //
- typedef struct tagOBJECTINFO
- {
- #ifdef __cplusplus
- void *cf;
- #else
- const IClassFactoryVtbl *cf;
- #endif
- CLSID const* pclsid;
- HRESULT (*pfnCreateInstance)(IUnknown* pUnkOuter, IUnknown** ppunk, const struct tagOBJECTINFO *);
- // for OCs and automation objects:
- IID const* piid;
- IID const* piidEvents;
- long lVersion;
- DWORD dwOleMiscFlags;
- DWORD dwClassFactFlags;
- } OBJECTINFO;
- typedef OBJECTINFO const * LPCOBJECTINFO;
- #define OIF_ALLOWAGGREGATION 0x0001
- #define VERSION_2 2 // so we don't get confused by too many integers
- #define VERSION_1 1
- #define VERSION_0 0
- #define COCREATEONLY NULL,NULL,VERSION_0,0,0 // piid,piidEvents,lVersion,dwOleMiscFlags,dwClassFactFlags
- #define COCREATEONLY_NOFLAGS NULL,NULL,VERSION_0,0 // piid,piidEvents,lVersion,dwOleMiscFlags
- STDAPI CShellAppManager_CreateInstance(IUnknown* pUnkOuter, IUnknown** ppunk, LPCOBJECTINFO poi);
- STDAPI CEnumInstalledApps_CreateInstance(IUnknown* pUnkOuter, IUnknown** ppunk, LPCOBJECTINFO poi);
- #ifndef DOWNLEVEL_PLATFORM
- STDAPI CDarwinAppPublisher_CreateInstance(IUnknown* pUnkOuter, IUnknown** ppunk, LPCOBJECTINFO poi);
- #endif //DOWNLEVEL_PLATFORM
- // to save some typing:
- #define CLSIDOFOBJECT(p) (*((p)->_pObjectInfo->pclsid))
- #define VERSIONOFOBJECT(p) ((p)->_pObjectInfo->lVersion)
- #define EVENTIIDOFCONTROL(p) (*((p)->_pObjectInfo->piidEvents))
- #define OLEMISCFLAGSOFCONTROL(p) ((p)->_pObjectInfo->dwOleMiscFlags)
- extern const OBJECTINFO g_ObjectInfo[]; // sccls.c
- STDAPI GetClassObject(REFCLSID rclsid, REFIID riid, void **ppv);
- #endif // _SCCLS_H_