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.
 
 
 
 
 
 

110 lines
2.6 KiB

// 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 "logui.h"
// Dispatch interfaces referenced by this interface
#include "font.h"
/////////////////////////////////////////////////////////////////////////////
// CLogUI
IMPLEMENT_DYNCREATE(CLogUI, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CLogUI properties
CString CLogUI::GetCaption()
{
CString result;
GetProperty(DISPID_CAPTION, VT_BSTR, (void*)&result);
return result;
}
void CLogUI::SetCaption(LPCTSTR propVal)
{
SetProperty(DISPID_CAPTION, VT_BSTR, propVal);
}
COleFont CLogUI::GetFont()
{
LPDISPATCH pDispatch;
GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
return COleFont(pDispatch);
}
void CLogUI::SetFont(LPDISPATCH propVal)
{
SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
}
BOOL CLogUI::GetEnabled()
{
BOOL result;
GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
return result;
}
void CLogUI::SetEnabled(BOOL propVal)
{
SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
}
short CLogUI::GetBorderStyle()
{
short result;
GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
return result;
}
void CLogUI::SetBorderStyle(short propVal)
{
SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CLogUI operations
void CLogUI::SetAdminTarget(LPCTSTR szMachineName, LPCTSTR szMetaTarget)
{
static BYTE parms[] =
VTS_BSTR VTS_BSTR;
InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
szMachineName, szMetaTarget);
}
void CLogUI::ApplyLogSelection()
{
InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CLogUI::SetComboBox(HWND hComboBox)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
hComboBox);
}
void CLogUI::Terminate()
{
InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CLogUI::DoClick()
{
InvokeHelper(DISPID_DOCLICK, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CLogUI::SetUserData(LPCTSTR szName, LPCTSTR szPassword)
{
static BYTE parms[] =
VTS_BSTR VTS_BSTR;
InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
szName, szPassword);
}