Share via


MimeOleGenerateFileName function

Do not use. On success, creates a file name.

Syntax

HRESULT MimeOleGenerateFileName(
  _In_    LPCSTR pszContentType,
  _In_    LPCSTR pszSuggest,
  _In_    LPCSTR pszDefaultExt,
  _Inout_ LPSTR  *ppszFileName
);

Parameters

pszContentType [in]

Type: LPCSTR

Specifies the content type.

pszSuggest [in]

Type: LPCSTR

Specifies suggested file name.

pszDefaultExt [in]

Type: LPCSTR

Specifies default file name extension.

ppszFileName [in, out]

Type: LPSTR*

Specifies pointer to contain new file name.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_OUTOFMEMORY
An attempt to allocate memory failed.
E_INVALIDARG
Indicates pointer parameter is NULL.

Remarks

Note

User responsible for freeing ppszFileName.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Product
Outlook Express 6.0
Header
Mimeole.h
Library
Inetcomm.lib
DLL
Inetcomm.dll (version 6.0 or later)