Initial
This commit is contained in:
18
rasapi/CONNSTAT.CPP
Normal file
18
rasapi/CONNSTAT.CPP
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <rasapi/connstat.hpp>
|
||||
|
||||
void RasConnectionStatus::deviceName(String deviceName)
|
||||
{
|
||||
::memset(tagRASCONNSTATUSA::szDeviceName,0,sizeof(tagRASCONNSTATUSA::szDeviceName));
|
||||
if(deviceName.isNull())return;
|
||||
if(deviceName.length()>RAS_MaxDeviceName)deviceName.length(RAS_MaxDeviceName);
|
||||
::memcpy(tagRASCONNSTATUSA::szDeviceName,(LPSTR)deviceName,deviceName.length());
|
||||
}
|
||||
|
||||
void RasConnectionStatus::deviceType(String deviceType)
|
||||
{
|
||||
::memset(tagRASCONNSTATUSA::szDeviceType,0,sizeof(tagRASCONNSTATUSA::szDeviceType));
|
||||
if(deviceType.isNull())return;
|
||||
if(deviceType.length()>RAS_MaxDeviceType)deviceType.length(RAS_MaxDeviceType);
|
||||
::memcpy(tagRASCONNSTATUSA::szDeviceType,(LPSTR)deviceType,deviceType.length());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user