Z
zxx1234
Guest
We found that since we installed Windows 10 Update for 1903, my application can not create a printer local port successfully.
After we debug my application, we found that the xcvData API can not create Local Port when the parameter(port name path) include the short names. and returned dwStatus 161 .
Win32 error 161 means 'The specified path is invalid.'
include the short name path:
‘C:\Users\ZHANGX~1\AppData\Local\Temp\~test dd-17620-04801.prn’
If the parameter(port name path) is not including the short names, the printer local port can be create.
‘C:\Users\test\AppData\Local\Temp\~test dd-17620-04801.prn’
This issue is not happened before installed Windows 10 Update for 1903.
Can any one explain why windows 10 1903 update is causing this issue and how to get this fixed?
Continue reading...
After we debug my application, we found that the xcvData API can not create Local Port when the parameter(port name path) include the short names. and returned dwStatus 161 .
Win32 error 161 means 'The specified path is invalid.'
include the short name path:
‘C:\Users\ZHANGX~1\AppData\Local\Temp\~test dd-17620-04801.prn’
If the parameter(port name path) is not including the short names, the printer local port can be create.
‘C:\Users\test\AppData\Local\Temp\~test dd-17620-04801.prn’
This issue is not happened before installed Windows 10 Update for 1903.
Can any one explain why windows 10 1903 update is causing this issue and how to get this fixed?
Continue reading...