Commit 1961b3ad authored by son nguyen's avatar son nguyen

Api login, unlock v1

parents
Pipeline #2092 failed with stages
# User-specific files
*ReSharper*
*.suo
*.user
*.sln.docstates
*.sln.cache
*.vspscc
*config.artgri-pc.yml
*.orig
*.pubxml
tmp
node_modules
.sass-cache
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
x64/
bld/
[Bb]in/
[Oo]bj/
artifacts/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
#NUNIT
*.VisualState.xml
TestResult.xml
# Visual Studio profiler
*.psess
*.vsp
*.vspx
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# DotCover is a Code Coverage Tool
*.dotCover
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# NuGet Packages Directory
packages/*
!packages/repositories.config
# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/
demo-logs/
# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
# VS2015 settings folder
.vs
Setup*.log
// ClientClass.cpp : Implementation of CVCClientApp and DLL registration.
#include "stdafx.h"
#include "VCClient.h"
#include "ClientClass.h"
/////////////////////////////////////////////////////////////////////////////
//
STDMETHODIMP CClientClass::InterfaceSupportsErrorInfo(REFIID riid)
{
static const IID* arr[] =
{
&IID_IClientClass,
};
for (int i=0;i<sizeof(arr)/sizeof(arr[0]);i++)
{
if (InlineIsEqualGUID(*arr[i],riid))
return S_OK;
}
return S_FALSE;
}
// ClientClass.h: Definition of the CClientClass class
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CLIENTCLASS_H__BE1F38DC_8555_4816_B4A3_0D99962633B3__INCLUDED_)
#define AFX_CLIENTCLASS_H__BE1F38DC_8555_4816_B4A3_0D99962633B3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CClientClass
class CClientClass :
public IDispatchImpl<IClientClass, &IID_IClientClass, &LIBID_VCClient>,
public ISupportErrorInfo,
public CComObjectRoot,
public CComCoClass<CClientClass,&CLSID_ClientClass>,
//public IDispatchImpl<IWPAVCallBack, &IID_IWPAVCallBack, &LIBID_Accw>
public IDispEventImpl<1, CClientClass,
&IID_IWPAVCallBack, &LIBID_Accw, 1, 0> //Implement the IWPAVCallBack interface to support events from Winpak CommServer API
{
public:
CStringList m_szListInput; // List of messages from Winpak CommServer API
public:
CClientClass() {}
~CClientClass() { m_szListInput.RemoveAll();}
BEGIN_COM_MAP(CClientClass)
//DEL COM_INTERFACE_ENTRY(IDispatch)
COM_INTERFACE_ENTRY(IClientClass)
COM_INTERFACE_ENTRY(ISupportErrorInfo)
COM_INTERFACE_ENTRY2(IDispatch, IClientClass)
// COM_INTERFACE_ENTRY(IWPAVCallBack)
COM_INTERFACE_ENTRY_IID(IID_IWPAVCallBack, IDispatch)
END_COM_MAP()
//DECLARE_NOT_AGGREGATABLE(CClientClass)
// Remove the comment from the line above if you don't want your object to
// support aggregation.
// Add to Event Sink Map : Declaring the handler function of Winpak CommServer API
BEGIN_SINK_MAP(CClientClass)
SINK_ENTRY_EX(1, IID_IWPAVCallBack, 1, GotMessage)
SINK_ENTRY_EX(1, IID_IWPAVCallBack, 2, ServerError)
END_SINK_MAP()
DECLARE_REGISTRY_RESOURCEID(IDR_ClientClass)
// ISupportsErrorInfo
STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
// IClientClass
CString GetFieldFromInput(CString szInput,CString szField)
{
int iStartPos = szInput.Find("<" + szField,0);
if(iStartPos >= 0)
{
int iSize = szField.GetLength();
int iLastPos = szInput.Find("</" + szField,iStartPos+1);
iSize = iStartPos + 2 + iSize;
iLastPos = iLastPos - iSize;
return(szInput.Mid(iSize,iLastPos));
}
else
return("");
}
// IWPAVCallBack - Implementation
STDMETHOD(GotMessage)(BSTR bstrTranInfo)
{
AFX_MANAGE_STATE(AfxGetAppModuleState())
/* CString sInput;
CString sAcctName="Account1";
sInput = CString(bstrTranInfo);
CString sRes = GetFieldFromInput(sInput,"Account");
if(sRes == sAcctName || sRes.IsEmpty())
{
m_szListInput.AddHead(CString(bstrTranInfo));
}*/
m_szListInput.AddHead(CString(bstrTranInfo));
return E_NOTIMPL;
}
STDMETHOD(ServerError)(BSTR bstrErrorInfo)
{
AfxMessageBox(CString(bstrErrorInfo));
return E_NOTIMPL;
}
};
#endif // !defined(AFX_CLIENTCLASS_H__BE1F38DC_8555_4816_B4A3_0D99962633B3__INCLUDED_)
HKCR
{
VCClient.ClientClass.1 = s 'ClientClass Class'
{
CLSID = s '{BF1B54D8-74C8-4D74-8787-2ECC76706A64}'
}
VCClient.ClientClass = s 'ClientClass Class'
{
CLSID = s '{BF1B54D8-74C8-4D74-8787-2ECC76706A64}'
}
NoRemove CLSID
{
ForceRemove {BF1B54D8-74C8-4D74-8787-2ECC76706A64} = s 'ClientClass Class'
{
ProgID = s 'VCClient.ClientClass.1'
VersionIndependentProgID = s 'VCClient.ClientClass'
val AppID = s '{67FFF6C8-7356-4494-A46F-F3265A55A549}'
LocalServer32 = s '%Module%'
}
}
}
/****************************************************************************************************
COPYRIGHT @ 2012
HONEYWELL INC.,
ALL RIGHTS RESERVED
This software is a copyrighted work and/or information protected as a trade secret.
Legal rights of Honeywell Inc. in this software is distinct from ownership of any medium
in which the software is embodied.Copyright or trade secret notices included must be
reproduced in any copies authorized by Honeywell Inc. The information in this software
is subject to change without notice and should not be considered as a commitment by Honeywell Inc.
/******************************************************************************************************
File Name : DlgADVControl.cpp
Project : WP-CS API Test Client
Originator : Sathish Guru V
APPLICATION : WP-CS API Communication server Test Client
MODULE :
PURPOSE : Dialog of Having the Test of Contolling all ADVs other than Panels
REVISION HISTORY:
Rev Date Programmer Comment
---- -------- -------------- ---------------------
1.0 29 Nov 2011 Sathish Guru Initial Version
1.1 02 Jan 2012 Sathish Guru Prototype Bugfixes
1.2 16 Feb 2012 Sathish Guru Added NX Card Mode Error Codes
1.32 8 Apr 2017 Vellai PRO3000 - HBAC API Implementation
/********************************************************************************/
#include "stdafx.h"
#include "vcclient.h"
#include "DlgADVControl.h"
#include <comutil.h> // Cho _variant_t
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDlgADVControl dialog
//Parental Guidance Advised - No Calling without Parents -- Guru
CDlgADVControl::CDlgADVControl(CWnd* pParent)
: CDialog(CDlgADVControl::IDD, pParent)
{
//{{AFX_DATA_INIT(CDlgADVControl)
m_lTPulseTime = 0;
m_iTPulseUnit = 0;
m_lPointHID = 0;
m_pParent = (CVCClientDlg *)pParent;
//}}AFX_DATA_INIT
}
void CDlgADVControl::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDlgADVControl)
DDX_Control(pDX, IDC_COMBO_DOORMODE2, m_ComboPro3kDoorMode);
DDX_Control(pDX, IDC_COMBO_DOORMODE, m_ComboDoorMode);
DDX_Text(pDX, IDC_EDIT_TP, m_lTPulseTime);
DDX_Text(pDX, IDC_EDIT_TP_UNIT, m_iTPulseUnit);
DDX_Text(pDX, IDC_EDIT_HID, m_lPointHID);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDlgADVControl, CDialog)
//{{AFX_MSG_MAP(CDlgADVControl)
ON_BN_CLICKED(IDC_BTN_LOCK, OnBtnLock)
ON_BN_CLICKED(IDC_BTN_UNLOCK, OnBtnUnlock)
ON_BN_CLICKED(IDC_BTN_SHUNT, OnBtnShunt)
ON_BN_CLICKED(IDC_BTN_UNSHUNT, OnBtnUnshunt)
ON_BN_CLICKED(IDC_BTN_ENERGIZE, OnBtnEnergize)
ON_BN_CLICKED(IDC_BTN_DEENERGIZE, OnBtnDeenergize)
ON_BN_CLICKED(IDC_BTN_PULSE, OnBtnPulse)
ON_BN_CLICKED(IDC_BTN_TZ, OnBtnRestoreToTz)
ON_BN_CLICKED(IDC_BTN_TIMEDPULSE, OnBtnTimedpulse)
ON_BN_CLICKED(IDC_BTN_DOORMODE, OnBtnDoormode)
ON_BN_CLICKED(IDC_BTN_GET_NXDOORMODE, OnBtnGetNxdoormode)
ON_BN_CLICKED(IDC_BTN_SET_NXDOORMODE, OnBtnSetNxdoormode)
ON_BN_CLICKED(IDC_BTN_ACR_MODE, OnBtnACRMode)
ON_BN_CLICKED(IDC_BTN_DOOR_STATUS, OnBtnDoorStatus)
ON_BN_CLICKED(IDC_BTN_ACR_MODE2, OnBtnAcrMode_PRO3000)
ON_BN_CLICKED(IDC_BTN_DOORMODE2, OnBtnDoormode_PRO3000)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDlgADVControl message handlers
void CDlgADVControl::OnBtnLock()
{
UpdateData();
m_pParent->m_pServer->EntryPointLockByHID(m_lPointHID);
}
void CDlgADVControl::OnBtnUnlock()
{
UpdateData();
m_pParent->m_pServer->EntryPointUnLockByHID(m_lPointHID);
}
void CDlgADVControl::OnBtnShunt()
{
UpdateData();
m_pParent->m_pServer->AlarmShuntByHID(m_lPointHID);
}
void CDlgADVControl::OnBtnUnshunt()
{
UpdateData();
m_pParent->m_pServer->AlarmUnShuntByHID(m_lPointHID);
}
void CDlgADVControl::OnBtnEnergize()
{
UpdateData();
m_pParent->m_pServer->Energize(m_lPointHID);
}
void CDlgADVControl::OnBtnDeenergize()
{
UpdateData();
m_pParent->m_pServer->DeEnergize(m_lPointHID);
}
void CDlgADVControl::OnBtnPulse()
{
UpdateData();
m_pParent->m_pServer->PulseByHID(m_lPointHID);
}
void CDlgADVControl::OnBtnRestoreToTz()
{
UpdateData();
m_pParent->m_pServer->RestoreTZByHID(m_lPointHID);
}
void CDlgADVControl::OnBtnTimedpulse()
{
UpdateData();
if (( m_iTPulseUnit <0 ) || ( m_iTPulseUnit >2 ) )
AfxMessageBox(_T("Please enter valid pulse time unit"));
m_pParent->m_pServer->TimedPulseByHID(m_lPointHID,m_iTPulseUnit,m_lTPulseTime);
}
void CDlgADVControl::OnBtnDoormode()
{
int iSelectedRow = m_ComboDoorMode.GetCurSel();
UpdateData(TRUE);
m_pParent->m_pServer->DoorModeByHID( m_lPointHID,(iSelectedRow+1) );
}
void CDlgADVControl::OnBtnGetNxdoormode()
{
UpdateData();
if(m_lPointHID == 0)
{
AfxMessageBox(_T("Nothing Returned"));
return;
}
_variant_t pDoorInfo;
pDoorInfo.Clear();
pDoorInfo.vt = VT_EMPTY;
m_pParent->m_pServer->GetNetAXSDoorModeByHID(m_lPointHID, &pDoorInfo);
if(pDoorInfo.vt == VT_EMPTY)
{
AfxMessageBox(_T("Nothing Returned"));
return;
}
if( pDoorInfo.vt & VT_DISPATCH)
{
INetAXSDoorInfoPtr pIDoorInfo(pDoorInfo.pdispVal);
CDlgReaderTimeZone dlg(NULL, m_lPointHID, FALSE, pIDoorInfo);
dlg.DoModal();
}
}
void CDlgADVControl::OnBtnSetNxdoormode()
{
HRESULT hRes;
UpdateData();
if(m_lPointHID == 0)
{
AfxMessageBox(_T("Nothing Returned"));
return;
}
INetAXSDoorInfoPtr pDoorInfo = NULL;
_variant_t vDoorInfo;
hRes = m_pParent->m_pServer->GetNetAXSDoorModeByHID(m_lPointHID, &vDoorInfo);
if(FAILED(hRes))
{
AfxMessageBox(_T("Error"));
return;
}
else if (vDoorInfo.vt == VT_EMPTY || vDoorInfo.vt == VT_NULL)
{
AfxMessageBox(_T("Nothing Returned"));
return;
}
pDoorInfo = vDoorInfo.pdispVal;
if(!FAILED(hRes))
{
//INetAXSDoorInfoPtr pDoorInfo(vDoorInfo.pdispVal);
CDlgReaderTimeZone dlg(NULL, m_lPointHID, TRUE, pDoorInfo);
if(dlg.DoModal()==IDOK)
{
pDoorInfo->put_DisableDoorTimezone(dlg.m_nDisableTimeZoneID);
pDoorInfo->put_LockdownReaderTimezone(dlg.m_nLockTimeZoneID);
pDoorInfo->put_CardOnlyTimezone(dlg.m_nCardOnlyTimeZoneID);
pDoorInfo->put_PINOnlyTimezone(dlg.m_nPinOnlyTimeZoneID);
pDoorInfo->put_CardAndPINTimezone(dlg.m_nCardAndPinTimeZoneID);
pDoorInfo->put_CardOrPINTimezone(dlg.m_nCardOrPinTimeZoneID);
pDoorInfo->put_CardOnlyPriority(dlg.m_nCardOnlyPriority);
pDoorInfo->put_PINOnlyPriority(dlg.m_nPinOnlyPriority);
pDoorInfo->put_CardAndPINPriority(dlg.m_nCardAndPinPriority);
pDoorInfo->put_CardOrPINPriority(dlg.m_nCardOrPinPriority);
long plStatus;
HRESULT hRes = m_pParent->m_pServer->SetNetAXSDoorModeByHID(m_lPointHID, pDoorInfo, &plStatus);
if(FAILED(hRes))
{
AfxMessageBox(_T("Setting Door Mode Failed"));
return;
}
CString errCode;
errCode.Format(_T("Return Status: %ld"), plStatus);
CString errMsg;
switch(plStatus)
{
case 0:
errMsg = _T("Door Mode Updated Successfully");
break;
case 1:
errMsg = _T("Door Mode Update Failed");
break;
case 2:
errMsg = _T("Invalid HID");
break;;
case 3:
errMsg = _T("Empty DoorInfo Object");
break;
case 4:
errMsg = _T("Invalid Disable Door Timezone");
break;
case 5:
errMsg = _T("Invalid Lockdown Reader Timezone");
break;
case 6:
errMsg = _T("Invalid Card Only Timezone");
break;
case 7:
errMsg = _T("Invalid PIN Only Timezone");
break;
case 8:
errMsg = _T("Invalid Card and PIN Timezone");
break;
case 9:
errMsg = _T("Invalid Card or PIN Timezone");
break;
case 10:
errMsg = _T("Invalid Card Only Priority");
break;
case 11:
errMsg = _T("Invalid PIN Only Priority");
break;
case 12:
errMsg = _T("Invalid Card and PIN Priority");
break;
case 13:
errMsg = _T("Invalid Card or PIN Priority");
break;
}
AfxMessageBox(errCode+"\n"+errMsg);
}
}
}
void CDlgADVControl::OnBtnACRMode()
{
UpdateData();
int nMode;
m_pParent->m_pServer->GetDefaultACRMode(m_lPointHID,&nMode);
if(-1 == nMode)
{
AfxMessageBox(_T("Wrong HID"));
return;
}
CString arrACRMode[] = {
_T("Disable the Reader"),
_T("Unlock (unlimited access)"),
_T("Locked (no access, Egress active)"),
_T("Site Code only"),
_T("Card only"),
_T("PIN only"),
_T("Card and PIN"),
_T("Card or PIN")
};
AfxMessageBox(arrACRMode[nMode-1]);
}
void CDlgADVControl::OnBtnDoorStatus()
{
long lDoorStatus;
UpdateData(TRUE);
HRESULT hr = m_pParent->m_pServer->GetDoorStatus2(m_lPointHID, &lDoorStatus);
CString sMsg, sFormat, sTemp;
sFormat = _T("%ld : %s");
switch(lDoorStatus)
{
case 0:
sTemp = _T("Door Closed");
break;
case 1:
sTemp = _T("Door Opened");
break;
case -1:
sTemp = _T("Door Unknown");
break;
}
sMsg.Format(sFormat, lDoorStatus, sTemp);
AfxMessageBox(sMsg);
}
//Get DoorMode of PRO3000 - HBAC Panel
void CDlgADVControl::OnBtnAcrMode_PRO3000()
{
UpdateData();
int nMode;
m_pParent->m_pServer->GetDefaultACRMode(m_lPointHID,&nMode);
if(-1 == nMode)
{
AfxMessageBox(_T("Wrong HID"));
return;
}
CString arrACRMode[] = {
_T("Disable the Reader"),
_T("Unlock (unlimited access)"),
_T("Locked (no access, Egress active)"),
_T("Card only"),
_T("PIN only"),
_T("Card and PIN"),
_T("Card or PIN")
};
AfxMessageBox(arrACRMode[(nMode)]);
}
//Set the selected DoorMode of PRO3000 - HBAC Panel
void CDlgADVControl::OnBtnDoormode_PRO3000()
{
int iSelectedRow = m_ComboPro3kDoorMode.GetCurSel();
UpdateData(TRUE);
m_pParent->m_pServer->DoorModeByHID( m_lPointHID,(iSelectedRow) );
}
#if !defined(AFX_DLGADVCONTROL_H__538F3BD1_3AF6_49BB_B209_9A4735799FD5__INCLUDED_)
#define AFX_DLGADVCONTROL_H__538F3BD1_3AF6_49BB_B209_9A4735799FD5__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgADVControl.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDlgADVControl dialog
#include "VCClientDlg.h"
class CDlgADVControl : public CDialog
{
// Construction
public:
CDlgADVControl(CWnd* pParent); // standard constructor
// Dialog Data
//{{AFX_DATA(CDlgADVControl)
enum { IDD = IDD_ADV_CONTROL_DLG };
CComboBox m_ComboPro3kDoorMode;
CComboBox m_ComboDoorMode;
long m_lTPulseTime;
int m_iTPulseUnit;
long m_lPointHID;
CVCClientDlg* m_pParent; // For holding the Main Dialog and hence the connection
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgADVControl)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDlgADVControl)
afx_msg void OnBtnLock();
afx_msg void OnBtnUnlock();
afx_msg void OnBtnShunt();
afx_msg void OnBtnUnshunt();
afx_msg void OnBtnEnergize();
afx_msg void OnBtnDeenergize();
afx_msg void OnBtnPulse();
afx_msg void OnBtnRestoreToTz();
afx_msg void OnBtnTimedpulse();
afx_msg void OnBtnDoormode();
afx_msg void OnBtnGetNxdoormode();
afx_msg void OnBtnSetNxdoormode();
afx_msg void OnBtnACRMode();
afx_msg void OnBtnDoorStatus();
afx_msg void OnBtnAcrMode_PRO3000();
afx_msg void OnBtnDoormode_PRO3000();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGADVCONTROL_H__538F3BD1_3AF6_49BB_B209_9A4735799FD5__INCLUDED_)
#if !defined(AFX_DLGPOINTCONTROL_H__07C1F36C_4E5C_4A75_93C0_49414D9BC182__INCLUDED_)
#define AFX_DLGPOINTCONTROL_H__07C1F36C_4E5C_4A75_93C0_49414D9BC182__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgPointControl.h : header file
//
#include "VCClientDlg.h"
/////////////////////////////////////////////////////////////////////////////
// CDlgPointControl dialog
class CDlgPointControl : public CDialog
{
// Construction
public:
//Parental Guidance Advised - No Calling without Parents -- Guru
CDlgPointControl(CWnd* pParent); // standard constructor
// Dialog Data
//{{AFX_DATA(CDlgPointControl)
enum { IDD = IDD_CONTROL_DIALOG };
BOOL m_bAccessArea;
BOOL m_bAccessLevels;
BOOL m_bPanelConfig;
BOOL m_bCards;
BOOL m_bCardFormats;
BOOL m_bCmdFiles;
BOOL m_bTZRefresh;
BOOL m_bGroups;
BOOL m_bHolidays;
BOOL m_bInputScanCodes;
BOOL m_bInputs;
BOOL m_bMCPGroups;
BOOL m_bOutputs;
BOOL m_bProcedures;
BOOL m_bReaderLED;
BOOL m_bDateTime;
BOOL m_bSIO;
BOOL m_bTimezones;
BOOL m_bTriggers;
long m_nPanelHID;
BOOL m_bMCBConfig;
BOOL m_bPSeriesPanel;
CVCClientDlg* m_pParent; // For holding the Main Dialog and hence the connection
int m_nPanelType;
short m_nBufferMode;
long m_lHIDType;
// For P-Series Panel Encryption Option -- Guru
BOOL m_bMCBEncryption;
long m_lPanelType;
long m_lDoorHID;
long m_lDoorPointID;
long m_lTZID;
BOOL m_bSelectAll;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgPointControl)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDlgPointControl)
afx_msg void OnBtnInitStart();
afx_msg void OnBtnInitEnd();
afx_msg void OnRadioNSPanels();
afx_msg void OnRadioPSeries();
virtual BOOL OnInitDialog();
afx_msg void OnBtnPanelBuffer();
afx_msg void OnBtnPanelUnbuffer();
afx_msg void OnBtnExecuteDoorScdl();
afx_msg void OnBtnSelectAll();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
void DisableSomeControls();
void CheckPanelType();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGPOINTCONTROL_H__07C1F36C_4E5C_4A75_93C0_49414D9BC182__INCLUDED_)
// DlgProxy.cpp : implementation file
//
#include "stdafx.h"
#include "VCClient.h"
#include "DlgProxy.h"
#include "VCClientDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CVCClientDlgAutoProxy
IMPLEMENT_DYNCREATE(CVCClientDlgAutoProxy, CCmdTarget)
CVCClientDlgAutoProxy::CVCClientDlgAutoProxy()
{
EnableAutomation();
// To keep the application running as long as an automation
// object is active, the constructor calls AfxOleLockApp.
AfxOleLockApp();
// Get access to the dialog through the application's
// main window pointer. Set the proxy's internal pointer
// to point to the dialog, and set the dialog's back pointer to
// this proxy.
ASSERT (AfxGetApp()->m_pMainWnd != NULL);
ASSERT_VALID (AfxGetApp()->m_pMainWnd);
ASSERT_KINDOF(CVCClientDlg, AfxGetApp()->m_pMainWnd);
m_pDialog = (CVCClientDlg*) AfxGetApp()->m_pMainWnd;
m_pDialog->m_pAutoProxy = this;
}
CVCClientDlgAutoProxy::~CVCClientDlgAutoProxy()
{
// To terminate the application when all objects created with
// with automation, the destructor calls AfxOleUnlockApp.
// Among other things, this will destroy the main dialog
if (m_pDialog != NULL)
m_pDialog->m_pAutoProxy = NULL;
AfxOleUnlockApp();
}
void CVCClientDlgAutoProxy::OnFinalRelease()
{
// When the last reference for an automation object is released
// OnFinalRelease is called. The base class will automatically
// deletes the object. Add additional cleanup required for your
// object before calling the base class.
CCmdTarget::OnFinalRelease();
}
BEGIN_MESSAGE_MAP(CVCClientDlgAutoProxy, CCmdTarget)
//{{AFX_MSG_MAP(CVCClientDlgAutoProxy)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BEGIN_DISPATCH_MAP(CVCClientDlgAutoProxy, CCmdTarget)
//{{AFX_DISPATCH_MAP(CVCClientDlgAutoProxy)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()
// Note: we add support for IID_IVCClient to support typesafe binding
// from VBA. This IID must match the GUID that is attached to the
// dispinterface in the .ODL file.
// {A133626C-47D9-4EC8-8185-C7809AC3B6CF}
static const IID IID_IVCClient =
{ 0xa133626c, 0x47d9, 0x4ec8, { 0x81, 0x85, 0xc7, 0x80, 0x9a, 0xc3, 0xb6, 0xcf } };
BEGIN_INTERFACE_MAP(CVCClientDlgAutoProxy, CCmdTarget)
INTERFACE_PART(CVCClientDlgAutoProxy, IID_IVCClient, Dispatch)
END_INTERFACE_MAP()
// The IMPLEMENT_OLECREATE2 macro is defined in StdAfx.h of this project
// {7DED7EB1-4D40-41CF-99BE-A1BA59B47E7A}
IMPLEMENT_OLECREATE2(CVCClientDlgAutoProxy, "VCClient.Application", 0x7ded7eb1, 0x4d40, 0x41cf, 0x99, 0xbe, 0xa1, 0xba, 0x59, 0xb4, 0x7e, 0x7a)
/////////////////////////////////////////////////////////////////////////////
// CVCClientDlgAutoProxy message handlers
// DlgProxy.h : header file
//
#if !defined(AFX_DLGPROXY_H__1C988DA2_BBCE_49CD_81F5_AC474FA6C48E__INCLUDED_)
#define AFX_DLGPROXY_H__1C988DA2_BBCE_49CD_81F5_AC474FA6C48E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CVCClientDlg;
/////////////////////////////////////////////////////////////////////////////
// CVCClientDlgAutoProxy command target
class CVCClientDlgAutoProxy : public CCmdTarget
{
DECLARE_DYNCREATE(CVCClientDlgAutoProxy)
CVCClientDlgAutoProxy(); // protected constructor used by dynamic creation
// Attributes
public:
CVCClientDlg* m_pDialog;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CVCClientDlgAutoProxy)
public:
virtual void OnFinalRelease();
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CVCClientDlgAutoProxy();
// Generated message map functions
//{{AFX_MSG(CVCClientDlgAutoProxy)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
DECLARE_OLECREATE(CVCClientDlgAutoProxy)
// Generated OLE dispatch map functions
//{{AFX_DISPATCH(CVCClientDlgAutoProxy)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_DISPATCH
DECLARE_DISPATCH_MAP()
DECLARE_INTERFACE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGPROXY_H__1C988DA2_BBCE_49CD_81F5_AC474FA6C48E__INCLUDED_)
#if !defined(AFX_DLGREADERTIMEZONE_H__E5FE70FD_B613_4040_AC86_D3BC47AF7300__INCLUDED_)
#define AFX_DLGREADERTIMEZONE_H__E5FE70FD_B613_4040_AC86_D3BC47AF7300__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgReaderTimeZone.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDlgReaderTimeZone dialog
class CDlgReaderTimeZone : public CDialog
{
// Construction
public:
CDlgReaderTimeZone(CWnd* pParent = NULL, long iHID = 0, BOOL bEdit = FALSE, INetAXSDoorInfo *pDoorInfo = NULL); // standard constructor
void LoadData(INetAXSDoorInfo* pData);
// Dialog Data
//{{AFX_DATA(CDlgReaderTimeZone)
enum { IDD = IDD_CTP_ENTRANCE_TIMEZONE };
long m_nHID;
int m_nDeviceType;
long m_nLockTimeZoneID;
long m_nDisableTimeZoneID;
long m_nCardAndPinTimeZoneID;
long m_nCardOrPinTimeZoneID;
long m_nPinOnlyTimeZoneID;
long m_nCardOnlyTimeZoneID;
int m_nHWDeviceID;
int m_nHWDeviceSubID2;
int m_nCardAndPinPriority;
int m_nCardOrPinPriority;
int m_nPinOnlyPriority;
int m_nCardOnlyPriority;
BOOL m_bEdit;
long m_nDisableTimeZoneID1;
//}}AFX_DATA
virtual ~CDlgReaderTimeZone();
private:
void EnableCardPriorityControls(int m_nCardAndPinTimeZoneID, int m_nCardOrPinTimeZoneID,
int m_nPinOnlyTimeZoneID, int m_nCardOnlyTimeZoneID);
void OnPriorityChanged();
void DisableAllControls();
void HideFewControls();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Generated message map functions
//{{AFX_MSG(CDlgReaderTimeZone)
virtual BOOL OnInitDialog();
virtual void OnOK();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGREADERTIMEZONE_H__E5FE70FD_B613_4040_AC86_D3BC47AF7300__INCLUDED_)
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.bsc
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.pch
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vc142.pdb
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\stdafx.sbr
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\stdafx.obj
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\clientclass.sbr
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\dlgadvcontrol.sbr
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\dlgpointcontrol.sbr
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\dlgproxy.sbr
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\dlgreadertimezone.sbr
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.sbr
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclientdlg.sbr
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\wpcommlogindlg.sbr
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\wpcommlogindlg.obj
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclientdlg.obj
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.obj
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\dlgreadertimezone.obj
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\dlgproxy.obj
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\dlgpointcontrol.obj
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\dlgadvcontrol.obj
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\clientclass.obj
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.exe
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.pdb
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.tlb
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\vcclient_i.c
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\vcclient_i.h
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.res
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\accw.tlh
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.tlog\bscmake.command.1.tlog
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.tlog\bscmake.read.1.tlog
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.tlog\bscmake.write.1.tlog
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.tlog\cl.command.1.tlog
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.tlog\cl.read.1.tlog
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.tlog\cl.write.1.tlog
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.tlog\link.command.1.tlog
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.tlog\link.read.1.tlog
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.tlog\link.write.1.tlog
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.tlog\midl.command.1.tlog
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.tlog\midl.read.1.tlog
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.tlog\midl.write.1.tlog
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.tlog\rc.command.1.tlog
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.tlog\rc.read.1.tlog
e:\bamboosvn\winl-wp492-job1\source\commapitestclients\vcclient\prounicoderelease\vcclient.tlog\rc.write.1.tlog
<?xml version="1.0" encoding="utf-8"?>
<Project>
<ProjectOutputs>
<ProjectOutput>
<FullPath>E:\BambooSVN\WINL-WP492-JOB1\Source\accw\PROUnicodeRelease\accw.dll</FullPath>
</ProjectOutput>
<ProjectOutput>
<FullPath>E:\BambooSVN\WINL-WP492-JOB1\Source\CommAPITestClients\VCClient\PROUnicodeRelease\VCClient.exe</FullPath>
</ProjectOutput>
</ProjectOutputs>
<ContentFiles />
<SatelliteDlls />
<NonRecipeFileRefs />
</Project>
\ No newline at end of file
 Processing .\VCClient.odl
VCClient.odl
Processing C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\oaidl.idl
oaidl.idl
Processing C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\objidl.idl
objidl.idl
Processing C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\unknwn.idl
unknwn.idl
Processing C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared\wtypes.idl
wtypes.idl
Processing C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared\wtypesbase.idl
wtypesbase.idl
Processing C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared\basetsd.h
basetsd.h
Processing C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared\guiddef.h
guiddef.h
Processing C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\oaidl.acf
oaidl.acf
StdAfx.cpp
_WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
ClientClass.cpp
DlgADVControl.cpp
DlgPointControl.cpp
DlgProxy.cpp
DlgReaderTimeZone.cpp
VCClient.cpp
VCClientDlg.cpp
E:\BambooSVN\WINL-WP492-JOB1\Source\CommAPITestClients\VCClient\VCClientDlg.cpp(772,55): warning C4996: '_itow': This function or variable may be unsafe. Consider using _itow_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
E:\BambooSVN\WINL-WP492-JOB1\Source\CommAPITestClients\VCClient\VCClientDlg.cpp(782,55): warning C4996: '_itow': This function or variable may be unsafe. Consider using _itow_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
E:\BambooSVN\WINL-WP492-JOB1\Source\CommAPITestClients\VCClient\VCClientDlg.cpp(790,55): warning C4996: '_itow': This function or variable may be unsafe. Consider using _itow_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
E:\BambooSVN\WINL-WP492-JOB1\Source\CommAPITestClients\VCClient\VCClientDlg.cpp(799,55): warning C4996: '_itow': This function or variable may be unsafe. Consider using _itow_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
E:\BambooSVN\WINL-WP492-JOB1\Source\CommAPITestClients\VCClient\VCClientDlg.cpp(808,55): warning C4996: '_itow': This function or variable may be unsafe. Consider using _itow_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
E:\BambooSVN\WINL-WP492-JOB1\Source\CommAPITestClients\VCClient\VCClientDlg.cpp(818,55): warning C4996: '_itow': This function or variable may be unsafe. Consider using _itow_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
E:\BambooSVN\WINL-WP492-JOB1\Source\CommAPITestClients\VCClient\VCClientDlg.cpp(828,55): warning C4996: '_itow': This function or variable may be unsafe. Consider using _itow_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
E:\BambooSVN\WINL-WP492-JOB1\Source\CommAPITestClients\VCClient\VCClientDlg.cpp(837,55): warning C4996: '_itow': This function or variable may be unsafe. Consider using _itow_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
E:\BambooSVN\WINL-WP492-JOB1\Source\CommAPITestClients\VCClient\VCClientDlg.cpp(846,55): warning C4996: '_itow': This function or variable may be unsafe. Consider using _itow_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
E:\BambooSVN\WINL-WP492-JOB1\Source\CommAPITestClients\VCClient\VCClientDlg.cpp(855,55): warning C4996: '_itow': This function or variable may be unsafe. Consider using _itow_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
E:\BambooSVN\WINL-WP492-JOB1\Source\CommAPITestClients\VCClient\VCClientDlg.cpp(864,55): warning C4996: '_itow': This function or variable may be unsafe. Consider using _itow_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
WPCommLoginDlg.cpp
Generating Code...
VCClient.vcxproj -> E:\BambooSVN\WINL-WP492-JOB1\Source\CommAPITestClients\VCClient\PROUnicodeRelease\VCClient.exe
B^E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\STDAFX.CPP
B^E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\STDAFX.CPP
B^E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\STDAFX.CPP
PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.29.30133:VCServicingVersionMFC=14.29.30136:TargetPlatformVersion=10.0.19041.0:
PRO Unicode Release|Win32|E:\BambooSVN\WINL-WP492-JOB1\Source\CommAPITestClients\VCClient\|
B^E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\CLIENTCLASS.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGADVCONTROL.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGPOINTCONTROL.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGPROXY.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGREADERTIMEZONE.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\STDAFX.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\VCCLIENT.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\VCCLIENTDLG.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\WPCOMMLOGINDLG.SBR
B^E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\CLIENTCLASS.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGADVCONTROL.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGPOINTCONTROL.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGPROXY.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGREADERTIMEZONE.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\STDAFX.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\VCCLIENT.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\VCCLIENTDLG.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\WPCOMMLOGINDLG.SBR
B^E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\CLIENTCLASS.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGADVCONTROL.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGPOINTCONTROL.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGPROXY.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGREADERTIMEZONE.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\STDAFX.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\VCCLIENT.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\VCCLIENTDLG.SBR|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\WPCOMMLOGINDLG.SBR
B^E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\CLIENTCLASS.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGADVCONTROL.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGPOINTCONTROL.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGPROXY.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGREADERTIMEZONE.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\STDAFX.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\VCCLIENT.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\VCCLIENT.RES|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\VCCLIENTDLG.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\WPCOMMLOGINDLG.OBJ
B^E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\CLIENTCLASS.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGADVCONTROL.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGPOINTCONTROL.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGPROXY.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGREADERTIMEZONE.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\STDAFX.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\VCCLIENT.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\VCCLIENT.RES|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\VCCLIENTDLG.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\WPCOMMLOGINDLG.OBJ
B^E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\CLIENTCLASS.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGADVCONTROL.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGPOINTCONTROL.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGPROXY.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\DLGREADERTIMEZONE.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\STDAFX.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\VCCLIENT.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\VCCLIENT.RES|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\VCCLIENTDLG.OBJ|E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\PROUNICODERELEASE\WPCOMMLOGINDLG.OBJ
B^E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\VCCLIENT.ODL
B^E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\VCCLIENT.ODL
B^E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\VCCLIENT.ODL
B^E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\VCCLIENT.RC
B^E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\VCCLIENT.RC
B^E:\BAMBOOSVN\WINL-WP492-JOB1\SOURCE\COMMAPITESTCLIENTS\VCCLIENT\VCCLIENT.RC
E:\BambooSVN\WINL-WP492-JOB1\Source\CommAPITestClients\VCClient\PROUnicodeRelease\VCClient.exe
#define PR_AckStatus _T("AckStatus")
#define PR_Idx _T("Idx")
#define PR_TranID _T("TranID")
#define PR_CommSrvID _T("CommSrvID")
#define PR_HID _T("HID")
#define PR_DEVICEID _T("DeviceID")
#define PR_Point _T("Point")
#define PR_Prio _T("Prio")
#define PR_Date _T("Date")
#define PR_Time _T("Time")
#define PR_Cnt _T("Cnt")
#define PR_Oper _T("Oper")
#define PR_TranType _T("TranType")
#define PR_Note _T("Note")
#define PR_Status _T("Status")
#define PR_Event _T("EventID")
#define PR_Site _T("Site")
#define PR_Accnt _T("Account")
#define PR_CardNumber _T("CardNumber")
#define PR_FullName _T("FullName")
#define PR_RP _T("RP")
#define PR_SpecStatus _T("SS")
#define PR_HIDST1 _T("HIDSubType1")
#define PR_ADVStatus _T("ADV_Status")
#define PR_ADVHid _T("ADV_Hid")
#define PR_ADVDeviceType _T("ADV_DeviceType")
#define PR_ADVDeviceName _T("ADV_DeviceName")
#define sDelimBegin _T("<NLZ>")
#define sDelimEnd _T("</NLZ>")
//Special statuses
#define PR_STAT_NTBR _T("-1") //transaction needs to be replaced
#define Const PR_STAT_OK _T("1") //Ok
#define ID_COMM_NONE _T("0")
#define ID_COMM_ALARM _T("1")
#define ID_COMM_ACKED _T("2")
#define HID_INPUT _T("30")
#define HID_INPUT_STD _T("31")
#define HID_INPUT_SUPERVISED _T("32")
#define HID_INPUT_PW5000_STD _T("33")
#define HID_INPUT_PW5000_SUPER _T("34")
#define HID_OUTPUT _T("40")
#define HID_OUTPUT_STD _T("41")
#define HID_GROUP_STD _T("42")
#define HID_OUTPUT_PW5000 _T("43")
#define HID_ENTRANCE _T("50")
#define HID_ENTRANCE_DOOR _T("51")
#define HID_ENTRANCE_READER _T("52")
#define HID_ENTRANCE_PW5000_DOOR _T("53")
#define HID_PANEL _T("22")
#define HID_PANEL_N1000 _T("23")
#define HID_PANEL_N1000_II _T("24")
#define HID_PANEL_N1000_III _T("25")
#define HID_PANEL_N1000_IV _T("26")
#define HID_PANEL_N750 _T("27")
#define HID_PANEL_SYMPHONY _T("28")
#define HID_PANEL_PW5000 _T("29")
#define HID_PANEL_PW5000_DIALUP _T("130")
========================================================================
MICROSOFT FOUNDATION CLASS LIBRARY : VCClient
========================================================================
AppWizard has created this VCClient application for you. This application
not only demonstrates the basics of using the Microsoft Foundation classes
but is also a starting point for writing your application.
This file contains a summary of what you will find in each of the files that
make up your VCClient application.
VCClient.dsp
This file (the project file) contains information at the project level and
is used to build a single project or subproject. Other users can share the
project (.dsp) file, but they should export the makefiles locally.
VCClient.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CVCClientApp application class.
VCClient.cpp
This is the main application source file that contains the application
class CVCClientApp.
VCClient.rc
This is a listing of all of the Microsoft Windows resources that the
program uses. It includes the icons, bitmaps, and cursors that are stored
in the RES subdirectory. This file can be directly edited in Microsoft
Visual C++.
VCClient.clw
This file contains information used by ClassWizard to edit existing
classes or add new classes. ClassWizard also uses this file to store
information needed to create and edit message maps and dialog data
maps and to create prototype member functions.
res\VCClient.ico
This is an icon file, which is used as the application's icon. This
icon is included by the main resource file VCClient.rc.
res\VCClient.rc2
This file contains resources that are not edited by Microsoft
Visual C++. You should place all resources not editable by
the resource editor in this file.
VCClient.reg
This is an example .REG file that shows you the kind of registration
settings the framework will set for you. You can use this as a .REG
file to go along with your application.
VCClient.odl
This file contains the Object Description Language source code for the
type library of your application.
/////////////////////////////////////////////////////////////////////////////
AppWizard creates one dialog class and automation proxy class:
VCClientDlg.h, VCClientDlg.cpp - the dialog
These files contain your CVCClientDlg class. This class defines
the behavior of your application's main dialog. The dialog's
template is in VCClient.rc, which can be edited in Microsoft
Visual C++.
DlgProxy.h, DlgProxy.cpp - the automation object
These files contain your CVCClientDlgAutoProxy class. This class
is called the "automation proxy" class for your dialog, because it
takes care of exposing the automation methods and properties that
automation controllers can use to access your dialog. These methods
and properties are not exposed from the dialog class directly, because
in the case of a modal dialog-based MFC application it is cleaner and
easier to keep the automation object separate from the user interface.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named VCClient.pch and a precompiled types file named StdAfx.obj.
Resource.h
This is the standard header file, which defines new resource IDs.
Microsoft Visual C++ reads and updates this file.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.
If your application uses MFC in a shared DLL, and your application is
in a language other than the operating system's current language, you
will need to copy the corresponding localized resources MFC42XXX.DLL
from the Microsoft Visual C++ CD-ROM onto the system or system32 directory,
and rename it to be MFCLOC.DLL. ("XXX" stands for the language abbreviation.
For example, MFC42DEU.DLL contains resources translated to German.) If you
don't do this, some of the UI elements of your application will remain in the
language of the operating system.
/////////////////////////////////////////////////////////////////////////////
// stdafx.cpp : source file that includes just the standard includes
// VCClient.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
#ifdef _ATL_STATIC_REGISTRY
#include <statreg.h>
#endif
// To Do Porting : Kalpesh : 30-oct-21 : error C1083 : atlimpl.cpp is obsolete so commented
//#include <atlimpl.cpp>
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#if !defined(AFX_STDAFX_H__B25D4CE7_BE49_45B5_8A67_8E00A437E5DC__INCLUDED_)
#define AFX_STDAFX_H__B25D4CE7_BE49_45B5_8A67_8E00A437E5DC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
// This macro is the same as IMPLEMENT_OLECREATE, except it passes TRUE
// for the bMultiInstance parameter to the COleObjectFactory constructor.
// We want a separate instance of this application to be launched for
// each automation proxy object requested by automation controllers.
#ifndef IMPLEMENT_OLECREATE2
#define IMPLEMENT_OLECREATE2(class_name, external_name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
AFX_DATADEF COleObjectFactory class_name::factory(class_name::guid, \
RUNTIME_CLASS(class_name), TRUE, _T(external_name)); \
const AFX_DATADEF GUID class_name::guid = \
{ l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } };
#endif // IMPLEMENT_OLECREATE2
#define _ATL_APARTMENT_THREADED
#include <atlbase.h>
#include <afxmt.h>
//You may derive a class from CComModule and use it if you want to override
//something, but do not change the name of _Module
//To Do Porting: Commented by Bhabananda, Dated:03/12/2021
//#import "..\..\accw\PROUnicodeRelease\accw.tlb" raw_interfaces_only, raw_native_types, no_namespace, named_guids
//End
//To Do Porting:Added by Bhabananda, Dated:03/12/2021
#import "..\..\accw\PROUnicodeRelease\accw.tlb" raw_interfaces_only, raw_native_types, no_namespace, named_guids
//End
//#import "Z:\CSAC\SourceCode\Accw\PROUnicodeRelease\accw.tlb" raw_interfaces_only, raw_native_types, no_namespace, named_guids
class CVCClientModule : public CComModule
{
public:
LONG Unlock();
LONG Lock();
DWORD dwThreadID;
};
extern CVCClientModule _Module;
#include <atlcom.h>
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STDAFX_H__B25D4CE7_BE49_45B5_8A67_8E00A437E5DC__INCLUDED_)
// VCClient.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "VCClient.h"
#include "VCClientDlg.h"
#include <initguid.h>
#include "VCClient_i.c"
#include "ClientClass.h"
#include "WPCommLoginDlg.h"
#include "DlgPointControl.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CVCClientApp
BEGIN_MESSAGE_MAP(CVCClientApp, CWinApp)
//{{AFX_MSG_MAP(CVCClientApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CVCClientApp construction
CVCClientApp::CVCClientApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CVCClientApp object
CVCClientApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CVCClientApp initialization
BOOL CVCClientApp::InitInstance()
{
// Initialize OLE libraries
if (!AfxOleInit())
{
AfxMessageBox(IDP_OLE_INIT_FAILED);
return FALSE;
}
if (!InitATL())
return FALSE;
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
//Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
// Parse the command line to see if launched as OLE server
if (RunEmbedded() || RunAutomated())
{
// Register all OLE server (factories) as running. This enables the
// OLE libraries to create objects from other applications.
COleTemplateServer::RegisterAll();
_Module.RegisterClassObjects(CLSCTX_LOCAL_SERVER,
REGCLS_MULTIPLEUSE);
}
else
{
// When a server application is launched stand-alone, it is a good idea
// to update the system registry in case it has been damaged.
COleObjectFactory::UpdateRegistryAll();
}
CVCClientDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;
}
CVCClientModule _Module;
BEGIN_OBJECT_MAP(ObjectMap)
//OBJECT_ENTRY(CLSID_ClientClass, CClientClass)
OBJECT_ENTRY_NON_CREATEABLE(CClientClass)
END_OBJECT_MAP()
LONG CVCClientModule::Unlock()
{
AfxOleUnlockApp();
return 0;
}
LONG CVCClientModule::Lock()
{
AfxOleLockApp();
return 1;
}
int CVCClientApp::ExitInstance()
{
if (m_bATLInited)
{
_Module.RevokeClassObjects();
_Module.Term();
}
return CWinApp::ExitInstance();
}
BOOL CVCClientApp::InitATL()
{
m_bATLInited = TRUE;
_Module.Init(ObjectMap, AfxGetInstanceHandle());
_Module.dwThreadID = GetCurrentThreadId();
return TRUE;
}
# Microsoft Developer Studio Project File - Name="VCClient" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Application" 0x0101
CFG=VCClient - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "VCClient.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "VCClient.mak" CFG="VCClient - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "VCClient - Win32 Release" (based on "Win32 (x86) Application")
!MESSAGE "VCClient - Win32 Debug" (based on "Win32 (x86) Application")
!MESSAGE "VCClient - Win32 PRO UNICODE Release" (based on "Win32 (x86) Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName "VCClient"
# PROP Scc_LocalPath "."
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
!IF "$(CFG)" == "VCClient - Win32 Release"
# PROP BASE Use_MFC 6
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 6
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /FR /Yu"stdafx.h" /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL"
# ADD RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 /nologo /subsystem:windows /machine:I386
# ADD LINK32 /nologo /subsystem:windows /machine:I386
!ELSEIF "$(CFG)" == "VCClient - Win32 Debug"
# PROP BASE Use_MFC 6
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 6
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /GZ /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /FR /Yu"stdafx.h" /FD /GZ /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL"
# ADD RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 ole32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
!ELSEIF "$(CFG)" == "VCClient - Win32 PRO UNICODE Release"
# PROP BASE Use_MFC 6
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "VCClient___Win32_PRO_UNICODE_Release"
# PROP BASE Intermediate_Dir "VCClient___Win32_PRO_UNICODE_Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 6
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "PROUnicodeRelease"
# PROP Intermediate_Dir "PROUnicodeRelease"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /FR /Yu"stdafx.h" /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /D "UNICODE" /D "_UNICODE" /Fr /Yu"stdafx.h" /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /win32
# ADD MTL /nologo /D "NDEBUG" /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL"
# ADD RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 /nologo /subsystem:windows /machine:I386
# ADD LINK32 /nologo /entry:"wWinMainCRTStartup" /subsystem:windows /machine:I386
!ENDIF
# Begin Target
# Name "VCClient - Win32 Release"
# Name "VCClient - Win32 Debug"
# Name "VCClient - Win32 PRO UNICODE Release"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\ClientClass.cpp
# End Source File
# Begin Source File
SOURCE=.\DlgADVControl.cpp
# End Source File
# Begin Source File
SOURCE=.\DlgPointControl.cpp
# End Source File
# Begin Source File
SOURCE=.\DlgProxy.cpp
# End Source File
# Begin Source File
SOURCE=.\DlgReaderTimeZone.cpp
# End Source File
# Begin Source File
SOURCE=.\StdAfx.cpp
# ADD CPP /Yc"stdafx.h"
# End Source File
# Begin Source File
SOURCE=.\VCClient.cpp
# End Source File
# Begin Source File
SOURCE=.\VCClient.odl
# ADD MTL /h "VCClient_i.h" /iid "VCClient_i.c" /Oicf
# End Source File
# Begin Source File
SOURCE=.\VCClient.rc
# End Source File
# Begin Source File
SOURCE=.\VCClientDlg.cpp
# End Source File
# Begin Source File
SOURCE=.\WPCommLoginDlg.cpp
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=.\ClientClass.h
# End Source File
# Begin Source File
SOURCE=.\DlgADVControl.h
# End Source File
# Begin Source File
SOURCE=.\DlgPointControl.h
# End Source File
# Begin Source File
SOURCE=.\DlgProxy.h
# End Source File
# Begin Source File
SOURCE=.\DlgReaderTimeZone.h
# End Source File
# Begin Source File
SOURCE=.\Protocol.h
# End Source File
# Begin Source File
SOURCE=.\Resource.h
# End Source File
# Begin Source File
SOURCE=.\StdAfx.h
# End Source File
# Begin Source File
SOURCE=.\VCClient.h
# End Source File
# Begin Source File
SOURCE=.\VCClientDlg.h
# End Source File
# Begin Source File
SOURCE=.\WPCommLoginDlg.h
# End Source File
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# Begin Source File
SOURCE=.\ClientClass.rgs
# End Source File
# Begin Source File
SOURCE=.\res\ClientClass.rgs
# End Source File
# Begin Source File
SOURCE=.\res\VCClient.ico
# End Source File
# Begin Source File
SOURCE=.\res\VCClient.rc2
# End Source File
# Begin Source File
SOURCE=.\VCClient.rgs
# End Source File
# End Group
# Begin Source File
SOURCE=.\ReadMe.txt
# End Source File
# Begin Source File
SOURCE=.\VCClient.reg
# End Source File
# End Target
# End Project
# Section VCClient : {0050004F-0045-0052-5400-59005F005200}
# 1:12:IDR_VCCLIENT:103
# End Section
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "VCClient"=".\VCClient.dsp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################
// VCClient.h : main header file for the VCCLIENT application
//
#if !defined(AFX_VCCLIENT_H__D9E1ECB9_C1C4_4EEB_B328_9740383CC7A4__INCLUDED_)
#define AFX_VCCLIENT_H__D9E1ECB9_C1C4_4EEB_B328_9740383CC7A4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
#include "VCClient_i.h"
/////////////////////////////////////////////////////////////////////////////
// CVCClientApp:
// See VCClient.cpp for the implementation of this class
//
class CVCClientApp : public CWinApp
{
public:
CVCClientApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CVCClientApp)
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CVCClientApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
BOOL m_bATLInited;
private:
BOOL InitATL();
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_VCCLIENT_H__D9E1ECB9_C1C4_4EEB_B328_9740383CC7A4__INCLUDED_)
// VCClient.odl : type library source for VCClient.exe
// This file will be processed by the MIDL compiler to produce the
// type library (VCClient.tlb).
//import "\\view\E198458_local_view\NCI\Source\WINPAKLite\accw\ProRelease\accw.tlb" raw_interfaces_only, raw_native_types, no_namespace, named_guids
[ uuid(DE9619FD-75CD-4340-99CB-560C72CC23FC), version(1.0) ]
library VCClient
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
// Primary dispatch interface for CVCClientDoc
[ uuid(A133626C-47D9-4EC8-8185-C7809AC3B6CF) ]
dispinterface IVCClient
{
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CVCClientDlgAutoProxy)
//}}AFX_ODL_PROP
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(CVCClientDlgAutoProxy)
//}}AFX_ODL_METHOD
};
[
object,
uuid(AEC6AEE8-331B-4234-8AF8-59E20B4C5224),
dual,
helpstring("IClientClass Interface"),
pointer_default(unique)
]
interface IClientClass : IDispatch
{
};
// Class information for CVCClientDoc
[ uuid(7DED7EB1-4D40-41CF-99BE-A1BA59B47E7A) ]
coclass VCClient
{
[default] dispinterface IVCClient;
};
//{{AFX_APPEND_ODL}}
//}}AFX_APPEND_ODL}}
[
uuid(BF1B54D8-74C8-4D74-8787-2ECC76706A64),
helpstring("ClientClass Class")
]
coclass ClientClass
{
[default] interface IClientClass;
};
};
This diff is collapsed.
REGEDIT
; This .REG file may be used by your SETUP program.
; If a SETUP program is not available, the entries below will be
; registered in your InitInstance automatically with a call to
; CWinApp::RegisterShellFileTypes and COleObjectFactory::UpdateRegistryAll.
HKEY_CLASSES_ROOT\VCClient.Application = VCClient Application
HKEY_CLASSES_ROOT\VCClient.Application\CLSID = {7DED7EB1-4D40-41CF-99BE-A1BA59B47E7A}
HKEY_CLASSES_ROOT\CLSID\{7DED7EB1-4D40-41CF-99BE-A1BA59B47E7A} = VCClient Application
HKEY_CLASSES_ROOT\CLSID\{7DED7EB1-4D40-41CF-99BE-A1BA59B47E7A}\ProgId = VCClient.Application
HKEY_CLASSES_ROOT\CLSID\{7DED7EB1-4D40-41CF-99BE-A1BA59B47E7A}\LocalServer32 = VCCLIENT.EXE
HKCR
{
NoRemove AppID
{
{67FFF6C8-7356-4494-A46F-F3265A55A549} = s 'VCClient'
'VCClient.EXE'
{
val AppID = s {67FFF6C8-7356-4494-A46F-F3265A55A549}
}
}
}

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "VCClient", "VCClient.vcxproj", "{D2142C06-C36E-486D-88E8-8EEEB737BB92}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
PRO UNICODE Release|Win32 = PRO UNICODE Release|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D2142C06-C36E-486D-88E8-8EEEB737BB92}.Debug|Win32.ActiveCfg = Debug|Win32
{D2142C06-C36E-486D-88E8-8EEEB737BB92}.Debug|Win32.Build.0 = Debug|Win32
{D2142C06-C36E-486D-88E8-8EEEB737BB92}.PRO UNICODE Release|Win32.ActiveCfg = PRO UNICODE Release|Win32
{D2142C06-C36E-486D-88E8-8EEEB737BB92}.PRO UNICODE Release|Win32.Build.0 = PRO UNICODE Release|Win32
{D2142C06-C36E-486D-88E8-8EEEB737BB92}.Release|Win32.ActiveCfg = Release|Win32
{D2142C06-C36E-486D-88E8-8EEEB737BB92}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
// VCClientDlg.h : header file
//
#include "ClientClass.h"
#include "DlgReaderTimezone.h"
#if !defined(AFX_VCCLIENTDLG_H__E0A1F026_6DA4_4870_B740_325C0C373B32__INCLUDED_)
#define AFX_VCCLIENTDLG_H__E0A1F026_6DA4_4870_B740_325C0C373B32__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CVCClientDlgAutoProxy;
/////////////////////////////////////////////////////////////////////////////
// CVCClientDlg dialog
class CVCClientDlg : public CDialog
{
DECLARE_DYNAMIC(CVCClientDlg);
friend class CVCClientDlgAutoProxy;
// Construction
public:
CVCClientDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CVCClientDlg();
// Dialog Data
//{{AFX_DATA(CVCClientDlg)
enum { IDD = IDD_VCCLIENT_DIALOG };
CComboBox m_ComboDoorMode;
CListBox m_LstDetails;
CListBox m_ctlListAlarm;
CListCtrl m_cLstStatus;
CListCtrl m_cLstEvent;
long m_lAlarmHID;
long m_lAlarmPointID;
CString m_strNote;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CVCClientDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CVCClientDlgAutoProxy* m_pAutoProxy;
HICON m_hIcon;
BOOL CanExit();
// Generated message map functions
//{{AFX_MSG(CVCClientDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnClose();
virtual void OnOK();
virtual void OnCancel();
afx_msg void OnBtnRegister();
afx_msg void OnBtnAck();
afx_msg void OnBtnClear();
afx_msg void OnBtnStatus();
afx_msg void OnBtndetails();
afx_msg void OnMenuPanelControl();
afx_msg void OnMenuADVControl();
afx_msg void OnMenuAbout();
afx_msg void OnMenuLogin();
afx_msg void OnMenuLogout();
afx_msg void OnMenuExit();
afx_msg void OnBtnAddNote();
afx_msg void OnLbnSelchangeListAlarm();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public :
IMTSCBServerPtr m_pServer; //Pointer to the Server (CommServer API)
CComObject<CClientClass>* m_pCallback; //Pointer of Client to pass to the server
HANDLE m_hdlThread; //Thread handle to spy on messages from the server
BOOL m_bLoggedIn; //To hold the logged in status for the whole
BSTR b_transaction;
public :
void AddToEventList(CString); //Function for displaying events
void AddToStatusList(CString); //Function for displaying HID status
//Helper
CString GetFieldFromInput(const CString ,const CString );
private:
int m_iEventItemNo;
int m_iStatusItemNo;
CString m_strUser;
CString m_strPswd;
private :
void Register();
void UnRegister(); // Unregistration of the client from the server
void LoadColumnHeaders();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_VCCLIENTDLG_H__E0A1F026_6DA4_4870_B740_325C0C373B32__INCLUDED_)
/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */
/* link this file in with the server and any clients */
/* File created by MIDL compiler version 8.01.0622 */
/* at Tue Jan 19 08:44:07 2038
*/
/* Compiler settings for VCClient.odl:
Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 8.01.0622
protocol : dce , ms_ext, c_ext, robust
error checks: allocation ref bounds_check enum stub_data
VC __declspec() decoration level:
__declspec(uuid()), __declspec(selectany), __declspec(novtable)
DECLSPEC_UUID(), MIDL_INTERFACE()
*/
/* @@MIDL_FILE_HEADING( ) */
#ifdef __cplusplus
extern "C"{
#endif
#include <rpc.h>
#include <rpcndr.h>
#ifdef _MIDL_USE_GUIDDEF_
#ifndef INITGUID
#define INITGUID
#include <guiddef.h>
#undef INITGUID
#else
#include <guiddef.h>
#endif
#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8)
#else // !_MIDL_USE_GUIDDEF_
#ifndef __IID_DEFINED__
#define __IID_DEFINED__
typedef struct _IID
{
unsigned long x;
unsigned short s1;
unsigned short s2;
unsigned char c[8];
} IID;
#endif // __IID_DEFINED__
#ifndef CLSID_DEFINED
#define CLSID_DEFINED
typedef IID CLSID;
#endif // CLSID_DEFINED
#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
EXTERN_C __declspec(selectany) const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}
#endif // !_MIDL_USE_GUIDDEF_
MIDL_DEFINE_GUID(IID, LIBID_VCClient,0xDE9619FD,0x75CD,0x4340,0x99,0xCB,0x56,0x0C,0x72,0xCC,0x23,0xFC);
MIDL_DEFINE_GUID(IID, DIID_IVCClient,0xA133626C,0x47D9,0x4EC8,0x81,0x85,0xC7,0x80,0x9A,0xC3,0xB6,0xCF);
MIDL_DEFINE_GUID(IID, IID_IClientClass,0xAEC6AEE8,0x331B,0x4234,0x8A,0xF8,0x59,0xE2,0x0B,0x4C,0x52,0x24);
MIDL_DEFINE_GUID(CLSID, CLSID_VCClient,0x7DED7EB1,0x4D40,0x41CF,0x99,0xBE,0xA1,0xBA,0x59,0xB4,0x7E,0x7A);
MIDL_DEFINE_GUID(CLSID, CLSID_ClientClass,0xBF1B54D8,0x74C8,0x4D74,0x87,0x87,0x2E,0xCC,0x76,0x70,0x6A,0x64);
#undef MIDL_DEFINE_GUID
#ifdef __cplusplus
}
#endif
This diff is collapsed.
This diff is collapsed.
HKCR
{
VCClient.ClientClass.1 = s 'ClientClass Class'
{
CLSID = s '{BF1B54D8-74C8-4D74-8787-2ECC76706A64}'
}
VCClient.ClientClass = s 'ClientClass Class'
{
CLSID = s '{BF1B54D8-74C8-4D74-8787-2ECC76706A64}'
}
NoRemove CLSID
{
ForceRemove {BF1B54D8-74C8-4D74-8787-2ECC76706A64} = s 'ClientClass Class'
{
ProgID = s 'VCClient.ClientClass.1'
VersionIndependentProgID = s 'VCClient.ClientClass'
val AppID = s '{67FFF6C8-7356-4494-A46F-F3265A55A549}'
LocalServer32 = s '%Module%'
}
}
}
//
// VCCLIENT.RC2 - resources Microsoft Visual C++ does not edit directly
//
#ifdef APSTUDIO_INVOKED
#error this file is not editable by Microsoft Visual C++
#endif //APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
// Add manually edited resources here...
/////////////////////////////////////////////////////////////////////////////
This diff is collapsed.

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.40629.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPCommSharpClient", "WPCommSharpClient\WPCommSharpClient.csproj", "{BAE221A6-0675-4198-B743-1BC6B1AECDA1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BAE221A6-0675-4198-B743-1BC6B1AECDA1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BAE221A6-0675-4198-B743-1BC6B1AECDA1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BAE221A6-0675-4198-B743-1BC6B1AECDA1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BAE221A6-0675-4198-B743-1BC6B1AECDA1}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment