MIME_GetExtensionA(3w)

MIME_GetExtensionA3w

Usage

BOOL MIME_GetExtensionA
(
LPCSTR lpszType,
LPSTR lpExt,
INT iLen
)

Overview

Get the file extension for a given Mime type.

Params

lpszType [In] Mime type to get the file extension for.

lpExt [Out] Destination for the resulting extension.

iLen [In] Length of lpExt in characters.

Returns

Success: TRUE. lpExt contains the file extension.

Failure: FALSE, if any parameter is invalid or the extension cannot be retrieved. If iLen > 0, lpExt is set to an empty string.

Notes

- The extension returned in lpExt always has a leading '.' character, even if the registry Mime database entry does not.

- iLen must be long enough for the file extension for this function to succeed.

Implementation

Exported by ordinal only. Use GetProcAddress(3w) to obtain a pointer to the function.

Implemented in "dlls/shlwapi/reg.c".

Debug channel "shell".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.