FindMimeFromData (Windows CE 5.0)
This function determines the MIME type from the data provided.
HRESULTFindMimeFromData(LPBCpBC,LPCWSTRpwzUrl,LPVOIDpBuffer,DWORDcbSize,LPCWSTRpwzMimeProposed,DWORDdwMimeFlags,LPWSTR* ppwzMimeOut,DWORDdwReserved);
Parameters
- pBC
Address of the bind context. This can be set to NULL. - pwzUrl
Address of a string value that contains the URL of the data. This can be set to NULL if pBuffer contains the data to be sniffed. - pBuffer
Address of the buffer containing the data to be sniffed. This can be set to NULL if pwzUrl contains a valid URL. - cbSize
Unsigned long integer value that contains the size of the buffer. - pwzMimeProposed
Address of a string value containing the proposed MIME type. This can be set to NULL. - dwMimeFlags
Not currently defined. Must be set to zero. - ppwzMimeOut
Address of a string value containing the suggested MIME type. - dwReserved
Reserved. Must be set to zero.
Return Values
This function returns one of the values shown in the following table.
Value | Description |
---|---|
E_INVALIDARG | One or more of the arguments passed to the function were invalid. |
E_OUTOFMEMORY | The function could not allocate enough memory to complete the call. |
NOERROR | The call was completed successfully. |
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Urlmon.h, Urlmon.idl.
Link Library: Urlmon.lib.
Send Feedback on this topic to the authors