- lpszDriverName = (LPSTR)lpDevNames + lpDevNames->wDriverOffset;
- lpszDeviceName = (LPSTR)lpDevNames + lpDevNames->wDeviceOffset;
- lpszPortName = (LPSTR)lpDevNames + lpDevNames->wOutputOffset;
+ lpszDriverName = (LPTSTR)lpDevNames + lpDevNames->wDriverOffset;
+ lpszDeviceName = (LPTSTR)lpDevNames + lpDevNames->wDeviceOffset;
+ lpszPortName = (LPTSTR)lpDevNames + lpDevNames->wOutputOffset;