DUNION.IDL
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- [ uuid (87E5BFA0-CA46-1067-B31B-00DD010662DA),
- version(1.0),
- pointer_default(unique)
- ]
- interface dunion
- {
- typedef [switch_type(short)] union {
- [case(0)] short sVal;
- [case(1)] float fVal;
- [case(2)] unsigned char chVal;
- [default] ;
- } DISCRIM_UNION_PARAM_TYPE;
- typedef DISCRIM_UNION_PARAM_TYPE DISCRIM_UNION_FIELD_TYPE;
- typedef struct {
- short sDiscrim;
- [switch_is(sDiscrim)] DISCRIM_UNION_FIELD_TYPE u;
- } DISCRIM_UNION_STRUCT_TYPE;
- void UnionParamProc(
- [in, switch_is(sDiscrim)] DISCRIM_UNION_PARAM_TYPE *UnionParam,
- [in] short sDiscrim
- );
- void UnionStructProc(
- [in] DISCRIM_UNION_STRUCT_TYPE *UnionStruct);
- void Shutdown(void);
- }