General information
Category:
Windows API functions
I use this in Win95, I don't know if it works on NT or Win 3.11
FUNCTION RunFile(cFile, cPath, cAction, ShowWindow)
PRIVATE X, Main_hWnd, cur_window
&& ShowWindow = 2 && Minimized
&& ShowWindow = 3 && Maximized
&& ShowWindow = 10 && Normal
SET LIBRARY TO HOME() + ".\FOXTOOLS.FLL"
* Returns Handle of Main VFP Window
Main_hWnd = MainHWND()
* Returns Current Window
cur_window = _WhToHwnd(_WOnTop())
DECLARE ShellExecute IN "Shell32.dll" LONG, String, String, String, String, LONG
X = ShellExecute(cur_window, cAction, cFile, "", cPath, ShowWindow)
CLEAR DLLS
RETURN X
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only