Reputation: 633
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.
Upvotes: 0
Views: 141