Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WinExec and Administrators privileges
Message
 
To
19/11/2007 16:21:40
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 8
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01269892
Message ID:
01270021
Views:
20
Hi Denis,

you cannot pass an empty string for the two structures. Here's code to create them:
	Local lcStartupInfo, lcProcessInfo
	lcStartupInfo = ;
		BINTOC(68,"RS") + ;
		Replicate(Chr(0),40) + ;
		BinToC(1,"RS") + ;
		BinToC(0,"2RS") + ; && SW_HIDE
		BinToC(0,"2RS") + ;
		Replicate(Chr(0),16)
	lcProcessInfo = Replicate(Chr(0),16)
You need to change the parameter marked with SW_HIDE.
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform