Retrieves the localized name of a file in a Shell folder.
Syntax
HRESULT SHGetLocalizedName(
LPCWSTR pszPath,
LPWSTR pszResModule,
UINT cch,
int *pidsRes
);
Parameters
- pszPath
-
[in] A pointer to a string that specifies the fully qualified path of the file.
- pszResModule
-
[out] When this function returns, contains a pointer to a string resource that specifies the localized version of the file name.
- cch
-
[out] When this function returns, contains the size of the string, in WCHARs, at pszResModule.
- pidsRes
-
[out] When this function returns, contains a pointer to the ID of the localized file name in the resource file.
Return Value
Returns S_OK if successful, or an error value otherwise.
Function Information
| Minimum DLL Version | shell32.dll |
|---|
| Custom Implementation | No |
|---|
| Header | shellapi.h |
|---|
| Import library | None |
|---|
| Minimum operating systems |
Windows Vista |
|---|