How To Use ShellExecute to Launch Associated File (32-bit) (170918)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q170918 SUMMARY
You can use the Windows API ShellExecute() function to start the
application associated with a given document extension without knowing the
name of the associated application. For example, you could start the
Paintbrush program by passing the filename ARCADE.BMP to the ShellExecute()
function.
REFERENCES
"Programmer's Reference, Volume 2: Functions" of the Microsoft Windows
Software Development Kit (SDK), pages 901-904
Modification Type: | Minor | Last Reviewed: | 8/30/2004 |
---|
Keywords: | kbhowto KB170918 |
---|
|