UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:shimgdata.IShellImageDataFactory.GetDataFormatFromPath |
IShellImageDataFactory::GetDataFormatFromPath (shimgdata.h) |
Determines a file's format based on its extension. |
|
shell\IShellImageDataFactory_GetDataFormatFromPath.htm |
shell |
ca6aa555-5997-43c6-84d1-35a24301d0a2 |
12/05/2018 |
GetDataFormatFromPath, GetDataFormatFromPath method [Windows Shell], GetDataFormatFromPath method [Windows Shell],IShellImageDataFactory interface, IShellImageDataFactory interface [Windows Shell],GetDataFormatFromPath method, IShellImageDataFactory.GetDataFormatFromPath, IShellImageDataFactory::GetDataFormatFromPath, _shell_IShellImageDataFactory_GetDataFormatFromPath, shell.IShellImageDataFactory_GetDataFormatFromPath, shimgdata/IShellImageDataFactory::GetDataFormatFromPath |
shimgdata.h |
Windows |
Windows XP [desktop apps only] |
Windows Server 2003 [desktop apps only] |
Shimgdata.idl |
Shell32.dll |
Windows |
19H1 |
|
|
|
|
|
|
Determines a file's format based on its extension.
Type: LPCWSTR
A path to the file.
Type: GUID*
A pointer to a GUID identifying the image format of the file.
Type: HRESULT
Returns S_OK if successful, or an error value otherwise, including the following:
Return code | Description |
---|---|
|
The pszPath parameter is NULL, the file name extension does not correspond to any defined GDI+ decoder, or an internal error has occurred. In any of these cases, pDataFormat is set to GUID_NULL. |
|
The internal object cannot be instantiated. |
IShellImageDataFactory::GetDataFormatFromPath should only be used to determine whether data can be saved to a particular format on the current system.