Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Do not use. Returns the Content-Type of the specified file name extension.
Syntax
HRESULT MimeOleGetExtContentType(
_In_ LPCSTR pszExtension,
_Out_ LPSTR *ppszContentType
);
Parameters
-
pszExtension [in]
-
Type: LPCSTR
Specifies an LPCSTR that contains the file name extension. The file name extension must begin with a period (".").
-
ppszContentType [out]
-
Type: LPSTR*
Receives a pointer to an LPSTR that contains the Content-Type. Note: ppszContentType must point to a valid LPSTR 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 |
|