How to Call SHSetLocalizedName in C#

142 Views Asked by At

I want to localize a folder name. While I haven't found any method in C# Microsoft provides the C++ function SHSetLocalizedName.

I should be able to access this function by declaring it like this:

[System.Runtime.InteropServices.DllImport("Shell32.dll")]
private static extern IntPtr SHSetLocalizedName(string path, string resourcePath, int resourceID);

However, how do I provide the necessary parameters? I probably need an unmanaged resource file? And how do I know the ID of the resource string?

Thanks for any hints.

0

There are 0 best solutions below