Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 713051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:55:04+00:00 2026-05-14T04:55:04+00:00

I need to find some strings that the current version of Windows is using.

  • 0

I need to find some strings that the current version of Windows is using. For example, when I create a new folder, it is initially named “New Folder” on English Vista. I need to programmatically find what that folder would be named on any language and version of Windows that I might be running on.

Anyone have any ideas how to do that?

Thanks Morinar — I just stumbled upon that article too. Unfortunately, the stringID doesn’t appear to be constant — it’s 30396 on my Vista, which isn’t the same as what they show for XP. So it would appear MS didn’t keep it stable.

EDIT: Looks like this isn’t possible…? This apps runs on computers in Germany, The Netherlands, France, Spain, Brazil, Mexico, Vietnam, Taiwan, China, Japan, South Korea, India, Israel, Hungary … You get the idea. It will take a very long time to install all the different language packs and find out what ‘New Folder’ is in every language.

Perhaps the best option is to default to “New Folder” and make the user change that value if they want to. I just prefer to have the software figure out as much as it can and spare the user from configuring _yet_another_setting_.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T04:55:04+00:00Added an answer on May 14, 2026 at 4:55 am

    Shamelessly cribbed from http://blogs.msdn.com/oldnewthing/archive/2004/01/30/65013.aspx. This is mostly correct but if there is a resource string of "New Folder something else" it will match that:

    LPCWSTR FindStringResourceEx(HINSTANCE hinst,
        UINT uId, UINT langId)
    {
        // Convert the string ID into a bundle number
        LPCWSTR pwsz = NULL;
        HRSRC hrsrc = FindResourceEx(hinst, RT_STRING,
            MAKEINTRESOURCE(uId / 16 + 1),
            langId);
        if (hrsrc) {
            HGLOBAL hglob = LoadResource(hinst, hrsrc);
            if (hglob) {
                pwsz = reinterpret_cast<LPCWSTR>
                    (LockResource(hglob));
                if (pwsz) {
                    // okay now walk the string table
                    for (int i = 0; i < (uId & 15); i++) {
                        pwsz += 1 + (UINT)*pwsz;
                    }
    
                    pwsz+= 1;
                }
            }
        }
        return pwsz;
    }
    
    UINT FindResourceStringId(HMODULE resource_handle, LPCWSTR string, UINT langId)
    {
        UINT resource_id= -1;
    
        for (int i= 0; i<65536; ++i)
        {
            LPCWSTR resource_string= FindStringResourceEx(resource_handle, i, langId);
    
            if (resource_string && wcsncmp(resource_string, string, wcslen(string))==0)
            {
                resource_id= i;
            }
        }
    
        return resource_id;
    }
    
    int main()
    {
        HMODULE shell_handle= LoadLibraryW(L"shell32.dll");
        UINT new_folder_id= FindResourceStringId(shell_handle, L"New Folder", 0x409); // look for US English "New Folder" resource id.
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 380k
  • Answers 380k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I think that the problem is with the model variable...… May 14, 2026 at 10:00 pm
  • Editorial Team
    Editorial Team added an answer Dublin is the codename for Windows Server AppFabric. It is… May 14, 2026 at 10:00 pm
  • Editorial Team
    Editorial Team added an answer Why not just parse the url and send the user… May 14, 2026 at 10:00 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.