Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy
shellabout (shell32)
 
.
Summary

C# Signature:

[DllImport("shell32.dll")]

static extern int ShellAbout(IntPtr hWnd, string szApp, string szOtherStuff, IntPtr hIcon);

VB Signature:

Declare Ansi Function ShellAbout Lib "shell32.dll" Alias "ShellAboutA" (ByVal hWnd As IntPtr, ByVal szApp As String, ByVal szOtherStuff As String, ByVal hIcon As IntPtr) As Integer

User-Defined Types:

None.

Notes:

The ShellAbout function dialog box uses text and a default icon that are specific to either Windows or Windows NT.

To see an example of a ShellAbout dialog box, choose About Windows from the Help menu drop-down list in Windows Explorer.

Windows 95/98/Me: ShellAbout is supported by the Microsoft Layer for Unicode (MSLU). To use MSLU, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows Me/98/95 Systems.

Tips & Tricks:

(C#)

using System.Runtime.InteropServices;

using System.Reflection;

(VB)

None.

Sample Code:

(C#)

ShellAbout(this.Handle, "AppName " + Assembly.GetExecutingAssembly().GetName().Version.ToString(), "", IntPtr.Zero);

(VB)

ShellAbout(Me.Handle, Application.ProductName, "Version: " & Application.ProductVersion, Me.Icon.Handle)

Alternative Managed API:

Do you know one? Please contribute it!

Documentation
ShellAbout on MSDN

http://msdn2.microsoft.com/en-us/library/bb762152.aspx

Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions