SPOLY.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:
Windows编程
开发平台:
Visual C++
- /***
- *spoly.h - Application-wide definitions
- *
- * This is a part of the Microsoft Source Code Samples.
- *
- * Copyright (C) 1992-1997 Microsoft Corporation. All rights reserved.
- *
- * This source code is only intended as a supplement to Microsoft Development
- * Tools and/or WinHelp documentation. See these sources for detailed
- * information regarding the Microsoft samples programs.
- *
- *Purpose:
- *
- *Implementation Notes:
- *
- *****************************************************************************/
- #include "hostenv.h"
- #include "resource.h"
- #include "clsid.h"
- #if defined(_MAC)
- # define PASCAL pascal
- # define STRSTR strstr
- #elif defined(WIN32)
- # include "statbar.h"
- # define STRSTR strstr
- #else /* WIN16 */
- # include "statbar.h"
- # define STRSTR _fstrstr
- #endif
- #ifdef _MAC
- # define UNUSED(X) ((void)(void*)&(X))
- #else
- # define UNUSED(X) (X)
- #endif
- #define DIM(X) (sizeof(X) / sizeof(X[0]))
- extern "C" void Assert(int, char FAR*, int, char FAR*);
- #define ASSERT(X) Assert(X, __FILE__, __LINE__, NULL)
- #define ASSERTSZ(X, MSG) Assert(X, __FILE__, __LINE__, MSG)
- // Description of a single named parameter.
- //
- typedef struct tagPARAM_DESC {
- OLECHAR FAR* szName; // parameter name
- } PARAM_DESC;
- // Description of a single member.
- //
- typedef struct tagMEMBERDESC {
- OLECHAR FAR* szName; // member name
- DISPID id; // member id
- PARAM_DESC FAR* rgpd; // ptr to array of PARAM_DESCs
- unsigned int cParams; // number of parameters
- } MEMBERDESC;
- STDAPI
- SPolyGetIDsOfNames(
- MEMBERDESC FAR* pmd,
- unsigned int cMethods,
- OLECHAR FAR* FAR* rgszNames,
- unsigned int cNames,
- LCID lcid,
- DISPID FAR* rgid);
- STDAPI InitOle();
- STDAPI UninitOle();
- STDAPI Revoke();
- void IncObjectCount();
- void DecObjectCount();