Skip to content

Latest commit

 

History

History
107 lines (87 loc) · 3.16 KB

nf-shimgdata-ishellimagedatafactory-getdataformatfrompath.md

File metadata and controls

107 lines (87 loc) · 3.16 KB
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.
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
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
IShellImageDataFactory::GetDataFormatFromPath
shimgdata/IShellImageDataFactory::GetDataFormatFromPath
c++
APIRef
kbSyntax
COM
Shell32.dll
IShellImageDataFactory.GetDataFormatFromPath

IShellImageDataFactory::GetDataFormatFromPath

-description

Determines a file's format based on its extension.

-parameters

-param pszPath [in]

Type: LPCWSTR

A path to the file.

-param pDataFormat [out]

Type: GUID*

A pointer to a GUID identifying the image format of the file.

-returns

Type: HRESULT

Returns S_OK if successful, or an error value otherwise, including the following:

Return code Description
E_FAIL
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.
E_OUTOFMEMORY
The internal object cannot be instantiated.

-remarks

IShellImageDataFactory::GetDataFormatFromPath should only be used to determine whether data can be saved to a particular format on the current system.