what api functions do i need in the module to run this
ShellExecute Me.hwnd, "open", InstallationPath$ & "\RainbowSix.exe", 0&, InstallationPath$, SW_SHOWNORMAL
Printable View
what api functions do i need in the module to run this
ShellExecute Me.hwnd, "open", InstallationPath$ & "\RainbowSix.exe", 0&, InstallationPath$, SW_SHOWNORMAL
what do you mean?
it just ShellExecute itself.
VB Code:
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Do you have the Api Viewer that comes with VB?
that is handy ;)
Download a really good, free apiviewer & api-guide at
www.allapi.net
yes i do have the api viewer
You didn't say whether your question was answered. Is it?
it doesnt work im trying to open rainbow six a game that goes full screen but when i put that code in nothin happens
I don't know anything about your .EXE. Next Step:
Check the Desktop shortcut to see if it requires some command line parameters to work.