MIME_GetExtensionA (SHLWAPI.330)
BOOL MIME_GetExtensionA ( LPCSTR lpszType, LPSTR lpExt, INT iLen )
Get the file extension for a given Mime type.
lpszType | [In] | Mime type to get the file extension for. |
lpExt | [Out] | Destination for the resulting extension. |
iLen | [In] | Length of lpExt in characters. |
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.
- 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.
Exported by ordinal only. Use GetProcAddress to obtain a pointer to the function.
Implemented in "dlls/shlwapi/reg.c". gitlab.winehq.org/wine/wine/blob/master/dlls/shlwapi/reg.c
Debug channel "shell".
Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Nov 2024.