Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing directly to the lpt port - bypass of network
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00625888
Message ID:
00626724
Vues:
11
>>While I do not claim to have an absolute answer, I don't think it can be done.
>>
>>AFAIK, Windows virtualizes the port, thus any application that tries to access the port will be trapped by Windows.
>>
>>Plus, if you were able to bypass the capture, I would expect that NT (W2K, XP) would let you know by killing your application, since NT requires to handle all the hardware for stability. ("Windows" and "stability" in the same sentence? *g*)
>>
>>Again, this is based on what I think I know! :)
>>
>>>Is it possible to bypass the network capture of an lpt port and print out directly to the port.
>
>If it is not possible, is there a way to turn off and on the capture in code?

Absolutely - you can use the WSH Wscript.Network object to add and remove network port assignments, the WinAPI has WNetAddConnection3() or WNetUseConnection() and WNetCancelConnection2() for the same thing, and you can always use the command line NET USE commands via RUN.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform