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);
}
示例#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;
}
示例#4
0
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);
}
示例#7
0
void CAccessLog::SetProcessesStatus( LPCTSTR lpstrProcess)
{
	m_csProcessesStatus = lpstrProcess;
	StrForSQL( m_csProcessesStatus);
}
示例#8
0
void CAccessLog::SetLogonDate( COleDateTime &dtDate)
{
	m_csLogonDate = dtDate.Format( _T( "%Y-%m-%d %H:%M:%S"));
	StrForSQL( m_csLogonDate);
}
示例#9
0
void CNetworkAdapter::SetDescription( LPCTSTR lpstrDescription)
{
	m_csDescription = lpstrDescription;
	StrForSQL( m_csDescription);
}
示例#10
0
void CNetworkAdapter::SetDhcpServer( LPCTSTR lpstrDhcpServer)
{
	m_csDhcpServer = lpstrDhcpServer;
	StrForSQL( m_csDhcpServer);
}
void CRegistryValue::SetDeviceName( LPCTSTR lpstrDeviceName)
{
	m_csDeviceName = lpstrDeviceName;
	StrForSQL( m_csDeviceName);
}
示例#12
0
void CNetworkAdapter::SetIPNetMask( LPCTSTR lpstrNetMask)
{
	m_csIPNetMask = lpstrNetMask;
	StrForSQL( m_csIPNetMask);
}
示例#13
0
void CNetworkAdapter::SetGateway( LPCTSTR lpstrGateway)
{
	m_csGateway = lpstrGateway;
	StrForSQL( m_csGateway);
}
示例#14
0
void CNetworkAdapter::SetIPAddress( LPCTSTR lpstrIP)
{
	m_csIPAddr = lpstrIP;
	StrForSQL( m_csIPAddr);
}
示例#15
0
void CNetworkAdapter::SetStatus( LPCTSTR lpstrStatus)
{
	m_csOperStatus = lpstrStatus;
	StrForSQL( m_csOperStatus);
}
示例#16
0
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);
}
示例#19
0
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);
}
示例#22
0
void CNetworkAdapter::SetTypeMIB( LPCTSTR lpstrMIBType)
{
	m_csTypeMIB = lpstrMIBType;
	StrForSQL( m_csTypeMIB);
}
void CSoundDevice::SetName(LPCTSTR lpstrName)
{
	m_csName = lpstrName;
	StrForSQL( m_csName);
}
示例#24
0
void CAccessLog::SetUserID( LPCTSTR lpstrUserID)
{
	m_csUserID = lpstrUserID;
	StrForSQL( m_csUserID);
}
示例#25
0
void CAccessLog::SetLogonDate( LPCTSTR lpstrDate)
{
	m_csLogonDate = lpstrDate;
	StrForSQL( m_csLogonDate);
}
示例#26
0
void CNetworkAdapter::SetNetNumber( LPCTSTR nbr )
{
	m_csNetNumber = nbr;
	StrForSQL( m_csNetNumber);
}