OBJECT.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- /*++
- Copyright (c) 1996 Microsoft Corporation
- Module Name:
- Object.h
- Abstract:
- Author:
- Environment:
- User mode
- Revision History :
- --*/
- #ifndef _OBJECT_H_
- #define _OBJECT_H_
- class FAR ObjectTypeList
- {
- private:
- SAFEARRAY FAR * _pObjList;
- DWORD _dwCurrentIndex;
- DWORD _dwLBound;
- DWORD _dwUBound;
- DWORD _dwMaxElements;
- public:
- ObjectTypeList();
- static
- HRESULT
- ObjectTypeList::CreateObjectTypeList(
- VARIANT vFilter,
- ObjectTypeList ** ppObjectTypeList
- );
- ~ObjectTypeList();
- HRESULT
- GetCurrentObject(
- PDWORD pdwObject
- );
- HRESULT
- Next();
- HRESULT
- Reset();
- };
- HRESULT
- BuildObjectArray(
- VARIANT var,
- SAFEARRAY ** ppFilter,
- DWORD * pdwNumElements
- );
- HRESULT
- BuildDefaultObjectArray(
- PFILTERS pFilters,
- DWORD dwMaxFilters,
- SAFEARRAY ** ppFilter,
- DWORD * pdwNumElements
- );
- HRESULT
- IsValidFilter(
- LPWSTR ObjectName,
- DWORD *pdwFilterId,
- PFILTERS pFilters,
- DWORD dwMaxFilters
- );
- #endif