.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH MIME_GetExtensionA 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBMIME_GetExtensionA\fR (SHLWAPI.330) .SH SYNOPSIS BOOL MIME_GetExtensionA ( LPCSTR \fIlpszType\fR, LPSTR \fIlpExt\fR, INT \fIiLen\fR ) .SH DESCRIPTION .PP Get the file extension for a given Mime type. .SH PARAMS \fIlpszType\fR \fB[In]\fR Mime type to get the file extension for. .PP \fIlpExt\fR \fB[Out]\fR Destination for the resulting extension. .PP \fIiLen\fR \fB[In]\fR Length of \fIlpExt\fR in characters. .PP .SH RETURNS .PP \fBSuccess:\fR \fBTRUE\fR. \fIlpExt\fR contains the file extension. .PP \fBFailure:\fR \fBFALSE\fR, if any parameter is invalid or the extension cannot be retrieved. If \fIiLen\fR > \fB0\fR, \fIlpExt\fR is set to an empty string. .SH NOTES .PP \fB-\fR The extension returned in \fIlpExt\fR always has a leading \fB'.'\fR character, even if the registry Mime database entry does not. .PP \fB-\fR \fIiLen\fR must be long enough for the file extension for this function to succeed. .SH IMPLEMENTATION .PP Exported by ordinal only. Use \fBGetProcAddress(3w)\fR to obtain a pointer to the function. .PP Implemented in \fB"dlls/shlwapi/reg.c"\fR. .PP Debug channel \fB"shell"\fR.