MimeOleGetExtContentTypeW function
Do not use. Returns the Content-Type of the specified Unicode file name extension string.
Syntax
HRESULT MimeOleGetExtContentTypeW(
_In_ LPCWSTR pszExtension,
_Out_ LPWSTR *ppszContentType
);
Parameters
-
pszExtension [in]
-
Type: LPCWSTR
Specifies an LPCWSTR that contains the file name extension. The file name extension must begin with a period (".").
-
ppszContentType [out]
-
Type: LPWSTR*
Receives a pointer to an LPWSTR that contains the Content-Type. Note: ppszContentType must point to a valid LPWSTR before this function is called and user is responsible for freeing what this parameter points to.
Return value
Type: HRESULT
Returns one of the following values.
Return code | Description |
---|---|
|
Indicates success. |
|
Indicates that pszExtension or ppszContentType is NULL or that pszExtension does not begin with a period. |
|
Indicates an attempt to allocate memory failed. |
|
Indicates that no proper file name extension was found. |
Requirements
Minimum supported client |
Windows XP [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Product |
Outlook Express 6.0 |
Header |
|
Library |
|
DLL |
|