Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddPort
Message
 
To
14/03/2005 12:14:19
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00995563
Message ID:
00995600
Views:
25
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform