windows-nt/Source/XPSP1/NT/net/tapi/skywalker/inc/sdpenc.h
2020-09-26 16:20:57 +08:00

71 lines
999 B
C++

/*
Copyright (c) 1997-1999 Microsoft Corporation
Module Name:
sdpenc.h
Abstract:
Author:
*/
#ifndef __SDP_ENCRYPTION_KEY__
#define __SDP_ENCRYPTION_KEY__
#include "sdpcommo.h"
#include "sdpcstrl.h"
#include "sdpbstrl.h"
class _DllDecl SDP_ENCRYPTION_KEY : public SDP_VALUE
{
public:
SDP_ENCRYPTION_KEY();
inline SDP_OPTIONAL_BSTRING &GetKeyType();
inline SDP_OPTIONAL_BSTRING &GetKeyData();
HRESULT SetKey(
IN BSTR KeyType,
IN BSTR *KeyData
);
protected:
virtual BOOL GetField(
OUT SDP_FIELD *&Field,
OUT BOOL &AddToArray
);
virtual void InternalReset();
private:
SDP_OPTIONAL_BSTRING m_KeyType;
SDP_OPTIONAL_BSTRING m_KeyData;
};
inline SDP_OPTIONAL_BSTRING &
SDP_ENCRYPTION_KEY::GetKeyType(
)
{
return m_KeyType;
}
inline SDP_OPTIONAL_BSTRING &
SDP_ENCRYPTION_KEY::GetKeyData(
)
{
return m_KeyData;
}
#endif // __SDP_ENCRYPTION_KEY__