Hi,
I have a question.
I Purchased Virtual Serial Port Driver OEM license.
Please look at attached image.
The virtual serial ports generated from your GUI will be displayed in Device Manager after PC rebooting.
However, The virtual serial ports created with the OEM sample program will disappear after rebooting.
Here is my code...
void CMyEditPortDlg::AddPortPair()
{
CStringA strUser;
UpdateData(true);
InitDll();
if (!m_libInst)
return;
if (m_chkUser.GetCheck())
{
GetUserSessionFn GetUserSession = (GetUserSessionFn)GetProcAddress(m_libInst, "GetUserSession");
if (GetUserSession)
{
int iSize = 1024;
GetUserSession(strUser.GetBufferSetLength(1024), iSize);
strUser.ReleaseBuffer();
}
}
CreatePairExFn CreatePair = (CreatePairExFn)GetProcAddress(m_libInst, "CreatePairEx");
if (CreatePair == 0)
return; /* Couldn't find function */
CString strComPortNo;
m_eComPortNo.GetWindowText(strComPortNo);
m_strComPort = "COM" + strComPortNo;
m_strComPort_P = m_strComPort + "_P";
CreatePair((LPSTR)((LPCSTR)CStringA(m_strComPort)), (LPSTR)((LPCSTR)CStringA(m_strComPort_P)), (LPSTR)((LPCSTR)strUser));
}
The code I use is the same as the sample code.
Why does the generated virtual serial port disappear after rebooting?
Please let me know if there is a way to keep it from disappearing.
Thank you.