Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the CLSID of the object to instantiate for the specified file.
Syntax
HRESULT GetClassFileOrMime(
LPBC pBC,
LPCWSTR szFilename,
LPVOID pBuffer,
DWORD cbSize,
LPCWSTR szMime,
DWORD dwReserved,
CLSID * pclsid
);
Parameters
- pBC
Optional. Address of a bind context that may affect the mapping to a CLSID. This parameter should usually be NULL, although it may be used to override system CLSID mappings when used in conjunction with RegisterMediaTypeClass. - szFilename
Optional. Address of a string variable that contains the file name. - pBuffer
Optional. Address of a buffer that contains data from the beginning of the file. - cbSize
Unsigned long integer value that contains the size of pBuffer. - szMime
Optional. Address of a string variable that contains the Multipurpose Internet Mail Extensions (MIME) type of the file. - dwReserved
Reserved. Must be set to zero. - pclsid
Address of a CLSID that receives the CLSID of the object to instantiate for the specified file.
Return Values
Returns S_OK if successful, or an error value otherwise.
Requirements
Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: urlmon.h
Library: urlmon.lib
See Also
URL Moniker Services Functions
Send Feedback on this topic to the authors