This commit is contained in:
2024-08-07 09:16:27 -04:00
parent fdfadd5c7e
commit 5f971cf684
5200 changed files with 731717 additions and 0 deletions

18
rasapi/CONNSTAT.CPP Normal file
View 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());
}