windows-nt/Source/XPSP1/NT/inetsrv/iis/admin/snapin/certmap.cpp
2020-09-26 16:20:57 +08:00

87 lines
2 KiB
C++

// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.
#include "stdafx.h"
#include "certmap.h"
// Dispatch interfaces referenced by this interface
#include "Font.h"
/////////////////////////////////////////////////////////////////////////////
// CCertmap
IMPLEMENT_DYNCREATE(CCertmap, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CCertmap properties
COleFont CCertmap::GetFont()
{
LPDISPATCH pDispatch;
GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
return COleFont(pDispatch);
}
void CCertmap::SetFont(LPDISPATCH propVal)
{
SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
}
BOOL CCertmap::GetEnabled()
{
BOOL result;
GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
return result;
}
void CCertmap::SetEnabled(BOOL propVal)
{
SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
}
short CCertmap::GetBorderStyle()
{
short result;
GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
return result;
}
void CCertmap::SetBorderStyle(short propVal)
{
SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
}
CString CCertmap::GetCaption()
{
CString result;
GetProperty(DISPID_CAPTION, VT_BSTR, (void*)&result);
return result;
}
void CCertmap::SetCaption(LPCTSTR propVal)
{
SetProperty(DISPID_CAPTION, VT_BSTR, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CCertmap operations
void CCertmap::SetServerInstance(LPCTSTR szServerInstance)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
szServerInstance);
}
void CCertmap::SetMachineName(LPCTSTR szMachineName)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
szMachineName);
}