Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddPort
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
00995563
Message ID:
00995600
Vues:
26
Hi Gunnar,

>anyone know how to use/code the AddPort Api?

The first parameter is the server name. If you want to add a port to the local machine, this value should be NULL, not "".

The third parameter isn't the name of a printer, but a port monitor. To get a list of all ports that are available on your machine, take a look into the registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors
The following line should display the Add Port dialog on your machine:
  AddPort(NULL,_Screen.HWnd,"Local Port")
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform