Runs the unregistered MIME content type dialog box.
INTSHCUTAPI HRESULT MIMEAssociationDialogA( HWND hwndParent, DWORD dwInFlags, PCSTR pcszFile, PCSTR pcszMIMEContentType, PSTR pszAppBuf, UINT ucAppBufLen );
A handle to the parent window of any posted child windows.
A bit flag value that specifies if an association is to be registered. The bit flag is the value MIMEASSOCDLG_FL_REGISTER_ASSOC (0x0001). If this bit is set, the selected application is registered as the handler for the given MIME type. If this bit is clear, no association is registered.
An application is registered only if this flag is set and the user indicates that a persistent association is to be made.
Registration is impossible if the string at pcszFile does not contain an extension.
The address of a null-terminated string that contains the name of the target file. This file must conform to the content type described by the pcszMIMEContentType parameter.
The address of a null-terminated string that contains the unregistered content type.
A pointer to a buffer that, when this function returns successfully, receives the path of the application specified by the user.
Size of pszAppBuf, in characters.
||The user canceled the operation.|
||The flag combination passed in dwInFlags is invalid.|
||There was insufficient memory available to complete the operation.|
||One of the input pointers is invalid.|
This function does not validate the syntax of the input content type string at pcszMIMEContentType. A successful return value does not indicate that the specified MIME content type is valid.
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|