How to name USB printer?
System Admin
1
Posts
1
Posters
0
Views
1
Watching
-
I have to print the text directly to the printer. If i share this usb printer on the network and do the following in my prog: hP = CreateFile("\\mycomp\hpusbprn", ...); WriteFile(hP, "aaa",...); (where "mycomp" -- network name of my computer, "hpusbprn" - network name of the printer) it works fine -- printer prints "aaa" emulating text mode. How to make the string with the name of printer for "CreateFile" buf without sharing printer? konst