-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEnumDisplayAttributeInfo.h
39 lines (32 loc) · 1.29 KB
/
EnumDisplayAttributeInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved
#pragma once
#include "Private.h"
//+---------------------------------------------------------------------------
//
// CEnumDisplayAttributeInfo
//
//----------------------------------------------------------------------------
class CEnumDisplayAttributeInfo : public IEnumTfDisplayAttributeInfo
{
public:
CEnumDisplayAttributeInfo();
~CEnumDisplayAttributeInfo();
// IUnknown
STDMETHODIMP QueryInterface(REFIID riid, _Outptr_ void **ppvObj);
STDMETHODIMP_(ULONG) AddRef(void);
STDMETHODIMP_(ULONG) Release(void);
// IEnumTfDisplayAttributeInfo
STDMETHODIMP Clone(_Out_ IEnumTfDisplayAttributeInfo **ppEnum);
STDMETHODIMP Next(ULONG ulCount, __RPC__out_ecount_part(ulCount, *pcFetched) ITfDisplayAttributeInfo **rgInfo,
__RPC__out ULONG *pcFetched);
STDMETHODIMP Reset();
STDMETHODIMP Skip(ULONG ulCount);
private:
LONG _index; // next display attribute to enum
LONG _refCount; // COM ref count
};