Skip to content

Latest commit

 

History

History
65 lines (51 loc) · 2.43 KB

nf-dbgmodel-idatamodelscriptprovider-getextension.md

File metadata and controls

65 lines (51 loc) · 2.43 KB
UID title description ms.date keywords 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.lib req.dll req.irql req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library targetos tech.root ms.custom f1_keywords topic_type api_type api_location api_name
NF:dbgmodel.IDataModelScriptProvider.GetExtension
IDataModelScriptProvider::GetExtension (dbgmodel.h)
The GetExtension method returns the file extension for scripts managed by this provider (without the dot) as a string allocated via the SysAllocString method.
08/20/2018
IDataModelScriptProvider::GetExtension
IDataModelScriptProvider::GetExtension, GetExtension, IDataModelScriptProvider.GetExtension, IDataModelScriptProvider::GetExtension, IDataModelScriptProvider.GetExtension
dbgmodel.h
Windows
debugger
RS5
IDataModelScriptProvider::GetExtension
dbgmodel/IDataModelScriptProvider::GetExtension
apiref
COM
dbgmodel.h
IDataModelScriptProvider::GetExtension

IDataModelScriptProvider::GetExtension

-description

The GetExtension method returns the file extension for scripts managed by this provider (without the dot) as a string allocated via the SysAllocString method. The debugger application hosting the data model (with scripting support) will delegate opening of script files with this extension to the script provider. The caller is responsible for freeing the returned string via SysFreeString. Examples of strings which might be returned from this method are "js" or "NatVis".

No two script providers may return the same file extension (case insensitive). A provider which wishes to handle multiple file extensions must implement multiple IDataModelScriptProvider interfaces and provide unique names and file extensions to the script manager via the implementation of these methods.

-parameters

-param extension

The file extension of script files which managed by this provider is returned here. The string is allocated via SysAllocString and the caller is responsible for freeing it via SysFreeString.

-returns

This method returns HRESULT that indicates success or failure.

-remarks

-see-also

IDataModelScriptProvider interface