![Xcalibur Systems LLC Logo](../icons/logo.png) |
ShellExecuteInfo Fields |
The ShellExecuteInfo type exposes the following members.
Fields | Name | Description |
---|
![Public field Public field](../icons/pubField.gif) | AppInstanceHandle |
[out] If is set and the
call succeeds, it sets this
member to a value greater than 32. If the function fails, it is set to an
error value that indicates the cause of the failure.
Although hInstApp is declared as an HINSTANCE for compatibility with 16-bit Windows
applications, it is not a true HINSTANCE. It can be cast only to an int and compared to
either 32 or the following error codes.
|
![Public field Public field](../icons/pubField.gif) | Class |
The address of a null-terminated string that specifies one of the following:
- A ProgId.For example, "Paint.Picture".
- A URI protocol scheme. For example, "http".
- A file extension.For example, ".txt".
- A registry path under HKEY_CLASSES_ROOT that names a subkey that contains one or more Shell
verbs. This key will have a subkey that conforms to the Shell verb registry schema, such as
shell\verb name
This member is ignored if fMask does not include .
|
![Public field Public field](../icons/pubField.gif) | Directory |
Optional. The address of a null-terminated string that specifies the name of the working
directory. If this member is NULL, the current directory is used as the working directory.
|
![Public field Public field](../icons/pubField.gif) | File |
The address of a null-terminated string that specifies the name of the file or object on
which will perform the action specified by the
Verb parameter. The system registry verbs that are supported by the
function include "open" for executable files
and document files and "print" for document files for which a print handler has been
registered. Other applications might have added Shell verbs through the system registry,
such as "play" for .avi and .wav files. To specify a Shell namespace object, pass the fully
qualified parse name and set the flag in the Mask
parameter.
|
![Public field Public field](../icons/pubField.gif) | Handle |
Optional. A handle to the parent window, used to display any message boxes that the system
might produce while executing this function. This value can be NULL.
|
![Public field Public field](../icons/pubField.gif) | HotKey |
A keyboard shortcut to associate with the application. The low-order word is the virtual
key code, and the high-order word is a modifier flag (HOTKEYF_). For a list of modifier
flags, see the description of the WM_SETHOTKEY message. This member is ignored if fMask
does not include SEE_MASK_HOTKEY.
|
![Public field Public field](../icons/pubField.gif) | Icon |
A handle to the icon for the file type. This member is ignored if Mask does not include
. This value is used only in Windows XP and earlier. It is
ignored as of Windows Vista.
|
![Public field Public field](../icons/pubField.gif) | IdList |
The address of an absolute ITEMIDLIST structure (PCIDLIST_ABSOLUTE) to contain an item
identifier list that uniquely identifies the file to execute. This member is ignored if the
Mask member does not include or
.
|
![Public field Public field](../icons/pubField.gif) | Mask |
Flags that indicate the content and validity of the other structure members; a combination
of values of type .
|
![Public field Public field](../icons/pubField.gif) | Parameters |
Optional. The address of a null-terminated string that contains the application parameters.
The parameters must be separated by spaces. If the File member specifies a document file,
Parameters should be NULL.
|
![Public field Public field](../icons/pubField.gif) | ProcessHandle |
A handle to the newly started application. This member is set on return and is always NULL
unless Mask is set to . Even if fMask is set to
, hProcess will be NULL if no process was launched.
For example, if a document to be launched is a URL and an instance of Internet Explorer is
already running, it will display the document. No new process is launched, and ProcessHandle
will be NULL.
|
![Public field Public field](../icons/pubField.gif) | RegistryKeyClass |
A handle to the registry key for the file type. The access rights for this registry key
should be set to KEY_READ. This member is ignored if Mask does not include
.
|
![Public field Public field](../icons/pubField.gif) | Show |
Required. Flags that specify how an application is to be shown when it is opened; one of
the SW_ values listed for the function. If
File specifies a document file, the flag is simply passed to the associated application. It
is up to the application to decide how to handle it.
|
![Public field Public field](../icons/pubField.gif) | Size |
Required. The size of this structure, in bytes.
|
![Public field Public field](../icons/pubField.gif) | Verb |
A string, referred to as a verb, that specifies the action to be performed. The set of
available verbs depends on the particular file or folder. Generally, the actions available
from an object's shortcut menu are available verbs. This parameter can be NULL, in which
case the default verb is used if available. If not, the "open" verb is used. If neither
verb is available, the system uses the first verb listed in the registry. These are of type
.
|
Top
See Also