GetSqmableFileName

Go to Home Page

Gets the filename part of a path if that path ends in exe or msc or if the path is a shortcut link to either one of those types.

Syntax

BOOL WINAPI GetSqmableFileName (
    LPCWSTR pwszFileName,
    LPWSTR pwszSqmName,
    UINT sqmNameBufLen
)

Parameters

pwszFileName
A file path or a name that can be parsed by SHParseDisplayName
pwszSqmName
Pointer to a buffer that receives the filename
sqmNameBufLen
Length of the pwszSqmName buffer in characters

Return Value

Non-zero if pwszSqmName is filled in, zero otherwise

Remarks

As its name suggests, this function is used by Software Quality Metrics code. It is called when a process is started by the shell, if it returns non-zero an ETW event is logged.

This function is also known as _GetSqmableFileName@12.