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 codeDescription
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

Minimum supported server

Windows Server 2003

Product

Outlook Express 6.0

Header

Mimeole.h

Library

Inetcomm.lib

DLL

Inetcomm.dll (version 6.0 or later)

 

 

Send comments about this topic to Microsoft

Build date: 6/30/2011

Community Additions

ADD
Show: