Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#ifndef _INC_PROPBCKT_H
#define _INC_PROPBCKT_H
#include <msoeprop.h>
typedef struct tagPROPNODE { union { LPSTR psz; PROPID id; }; int iProp; } PROPNODE;
#define IsPropId(_psz) (0 == (0xffff0000 & (DWORD)PtrToUlong(_psz)))
#define SzToPropId(_psz) ((PROPID)PtrToUlong(_psz))
class CPropertyBucket : public IPropertyBucket { public: // ----------------------------------------------------------------------------
// Construction
// ----------------------------------------------------------------------------
CPropertyBucket(void); ~CPropertyBucket(void);
// -------------------------------------------------------------------
// IUnknown Members
// -------------------------------------------------------------------
STDMETHODIMP QueryInterface(REFIID riid, LPVOID *ppv); STDMETHODIMP_(ULONG) AddRef(void); STDMETHODIMP_(ULONG) Release(void);
// -------------------------------------------------------------------
// IPropertyBucket Members
// -------------------------------------------------------------------
STDMETHODIMP GetProperty(LPCSTR pszProp, LPPROPVARIANT pVar, DWORD dwReserved); STDMETHODIMP SetProperty(LPCSTR pszProp, LPCPROPVARIANT pVar, DWORD dwReserved);
private: LONG m_cRef; CRITICAL_SECTION m_cs;
PROPNODE *m_pNodeId; int m_cNodeId; int m_cNodeIdBuf;
PROPNODE *m_pNodeSz; int m_cNodeSz; int m_cNodeSzBuf;
LPPROPVARIANT m_pProp; int m_cProp; int m_cPropBuf;
LPPROPVARIANT GetPropVariant(LPCSTR pszProp); };
#endif // _INC_PROPBCKT_H
|