Launches a portion of an information (.inf) file.
int WINAPI LaunchINFSection( HWND hwndOwner, HINSTANCE hInstance, PSTR pszParams, INT nShow );
HWND that specifies the owner window on which to display error messages. This parameter is typically NULL, which causes the desktop to be the owner window.
Handle to the instance of the program. This parameter is typically NULL.
Comma-delimited string that specifies the following in the order listed.
- The .inf file. If you do not specify the fully qualified path of the .inf file, the .inf file is extracted from the .cab file specified below.
- The section of the .inf file to launch. If you do not specify a section then the DefaultInstall section of the .inf file is launched.
- The fully qualified path of a cabinet file (.cab) that contains the .inf file.
- Flags that specify the installation mode.
The following flags are used to specify the installation mode.
Quiet mode, no UI.
Don't run GrpConv.
Returns one of the following values.
The section launched successfully.
The section failed to launch.
You can call this function using Rundll32.exe from the command line.
Note Using an entry point function with Rundll32.exe does not resemble a normal function call. The function name and the name of the .dll file where it is stored are used only as command line parameters. The function definition shown in the Syntax section of this topic is only a standard prototype for all functions that you can call using Rundll32. The specific values for hwndOwner and hInstance are not provided by the user, but are handled behind the scenes by Rundll32.
The following examples demonstrate how to call the LaunchINFSection function using Rundll32.
This example demonstrates how to extract the myinf.inf file from the c:\temp\mydata.cab file in Quiet|Backup mode, launch the DefaultInstall section, and reboot if needed.
rundll32.exe advpack.dll,LaunchINFSection myinf.inf,,c:\temp\mydata.cab,36
Minimum supported client
Windows 2000 Professional
Minimum supported server
Windows 2000 Server