void CRegistryValue::Set( LPCTSTR lpstrName, LPCTSTR lpstrValue)
{
	m_csName = lpstrName;
	StrForSQL( m_csName);
	m_csValue = lpstrValue;
	StrForSQL( m_csValue);
}
void CSoundDevice::Set( LPCTSTR lpstrManufacturer, LPCTSTR lpstrName, LPCTSTR lpstrDescription)
{
	m_csManufacturer = lpstrManufacturer;
	StrForSQL( m_csManufacturer);
	m_csName = lpstrName;
	StrForSQL( m_csName);
	m_csDescription = lpstrDescription;
	StrForSQL( m_csDescription);
}
Exemple #3
0
BOOL CAccessLog::Retrieve( LPCTSTR lpstrUserID, LPCTSTR lpstrProcessesNames)
{
	COleDateTime	cTime = COleDateTime::GetCurrentTime();
	BOOL			bResult = FALSE;
	m_csUserID = lpstrUserID;
	StrForSQL( m_csUserID);
	m_csLogonDate = cTime.Format( _T( "%Y-%m-%d %H:%M:%S"));
	if (lpstrProcessesNames != NULL)
		bResult = CheckRunningProcesses( lpstrProcessesNames, m_csProcessesStatus);
	StrForSQL( m_csProcessesStatus);
	return bResult;
}
void CNetworkAdapter::SetSpeed( LPCTSTR lpstrSpeed)
{
	CString csBuffer = lpstrSpeed;

	m_csSpeed = lpstrSpeed;
	StrForSQL( m_csSpeed);
	// Recalculate byte speed
	if (csBuffer.Find( _T( " Gb/s")) >= 0)
	{
		csBuffer.TrimRight( _T( " Gb/s"));
		m_ulSpeed = _tcstoul( csBuffer, NULL, 10) * 1000000000;
		return;
	}
	if (csBuffer.Find( _T( " Mb/s")) >= 0)
	{
		csBuffer.TrimRight( _T( " Mb/s"));
		m_ulSpeed = _tcstoul( csBuffer, NULL, 10) * 1000000;
		return;
	}
	if (csBuffer.Find( _T( " Kb/s")) >= 0)
	{
		csBuffer.TrimRight( _T( " Kb/s"));
		m_ulSpeed = _tcstoul( csBuffer, NULL, 10) * 1000;
		return;
	}
	csBuffer.TrimRight( _T( " b/s"));
	m_ulSpeed = _tcstoul( csBuffer, NULL, 10);
}
void CRegistryValue::SetName(LPCTSTR lpstrName)
{
	m_csName = lpstrName;
	StrForSQL( m_csName);
}
void CRegistryValue::SetDeviceID( LPCTSTR lpstrDeviceID)
{
	m_csDeviceID = lpstrDeviceID;
	StrForSQL( m_csDeviceID);
}
Exemple #7
0
void CAccessLog::SetProcessesStatus( LPCTSTR lpstrProcess)
{
	m_csProcessesStatus = lpstrProcess;
	StrForSQL( m_csProcessesStatus);
}
Exemple #8
0
void CAccessLog::SetLogonDate( COleDateTime &dtDate)
{
	m_csLogonDate = dtDate.Format( _T( "%Y-%m-%d %H:%M:%S"));
	StrForSQL( m_csLogonDate);
}
void CNetworkAdapter::SetDescription( LPCTSTR lpstrDescription)
{
	m_csDescription = lpstrDescription;
	StrForSQL( m_csDescription);
}
void CNetworkAdapter::SetDhcpServer( LPCTSTR lpstrDhcpServer)
{
	m_csDhcpServer = lpstrDhcpServer;
	StrForSQL( m_csDhcpServer);
}
void CRegistryValue::SetDeviceName( LPCTSTR lpstrDeviceName)
{
	m_csDeviceName = lpstrDeviceName;
	StrForSQL( m_csDeviceName);
}
void CNetworkAdapter::SetIPNetMask( LPCTSTR lpstrNetMask)
{
	m_csIPNetMask = lpstrNetMask;
	StrForSQL( m_csIPNetMask);
}
void CNetworkAdapter::SetGateway( LPCTSTR lpstrGateway)
{
	m_csGateway = lpstrGateway;
	StrForSQL( m_csGateway);
}
void CNetworkAdapter::SetIPAddress( LPCTSTR lpstrIP)
{
	m_csIPAddr = lpstrIP;
	StrForSQL( m_csIPAddr);
}
void CNetworkAdapter::SetStatus( LPCTSTR lpstrStatus)
{
	m_csOperStatus = lpstrStatus;
	StrForSQL( m_csOperStatus);
}
void CNetworkAdapter::SetMACAddress( LPCTSTR lpstrMAC)
{
	m_csHWAddr = lpstrMAC;
	StrForSQL( m_csHWAddr);
}
void CRegistryValue::SetValue(LPCTSTR lpstrValue)
{
	m_csValue = lpstrValue;
	StrForSQL( m_csValue);
}
void CSoundDevice::SetManufacturer(LPCTSTR lpstrManufacturer)
{
	m_csManufacturer = lpstrManufacturer;
	StrForSQL( m_csManufacturer);
}
void CNetworkAdapter::SetType( LPCTSTR lpstrType)
{
	m_csType = lpstrType;
	StrForSQL( m_csType);
}
void CSoundDevice::SetDescription(LPCTSTR lpstrDescription)
{
	m_csDescription = lpstrDescription;
	StrForSQL( m_csDescription);
}
void CSoundDevice::SetDeviceID( LPCTSTR lpstrDeviceID)
{
	m_csDeviceID = lpstrDeviceID;
	StrForSQL( m_csDeviceID);
}
void CNetworkAdapter::SetTypeMIB( LPCTSTR lpstrMIBType)
{
	m_csTypeMIB = lpstrMIBType;
	StrForSQL( m_csTypeMIB);
}
void CSoundDevice::SetName(LPCTSTR lpstrName)
{
	m_csName = lpstrName;
	StrForSQL( m_csName);
}
Exemple #24
0
void CAccessLog::SetUserID( LPCTSTR lpstrUserID)
{
	m_csUserID = lpstrUserID;
	StrForSQL( m_csUserID);
}
Exemple #25
0
void CAccessLog::SetLogonDate( LPCTSTR lpstrDate)
{
	m_csLogonDate = lpstrDate;
	StrForSQL( m_csLogonDate);
}
void CNetworkAdapter::SetNetNumber( LPCTSTR nbr )
{
	m_csNetNumber = nbr;
	StrForSQL( m_csNetNumber);
}