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

  • SEARCH
  • Home
  • 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 7956425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:59:10+00:00 2026-06-04T03:59:10+00:00

I have to create a ShellItem to Windows Help and Windows Run… I have

  • 0

I have to create a ShellItem to Windows Help and Windows Run…

I have this

Help and Support    {2559a1f1-21d7-11d4-bdaf-00c04f60b9f0}
Run {2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}

from http://www.sevenforums.com/tutorials/110919-clsid-key-list-windows-7-a.html

I’ve tried

IShellFolder* desk = NULL;
HRESULT hr =SHGetDesktopFolder(&desk);
LPITEMIDLIST pidl2=NULL;
            ULONG cbEaten;
            DWORD dwAttribs = 0 ;

            hr = desk->ParseDisplayName(NULL,
                                         NULL,
                                         L"::{2559A1F1-21D7-11D4-BDAF-00C04F60B9F0}",
                                     &cbEaten,  // This can be NULL
                                         &pidl2,
                                         &dwAttribs);

It returns OK but Null as pidl2

could you guys give me some help?

  • 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-06-04T03:59:11+00:00Added an answer on June 4, 2026 at 3:59 am

    ParseDisplayName should be able to parse it if you pass “shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}” but I guess that is not really what you want.

    ParseDisplayName is able to parse some ::{clsid} paths but I think it is restricted to a very limited set of CSIDL_* special folders. SHSimpleIDListFromPath was able to parse it.

    If you really want to parse it with ParseDisplayName you can try to emulate SHSimpleIDListFromPath:

    class EmptyFileSystemBindData : public IFileSystemBindData {
    public:
        STDMETHODIMP QueryInterface(REFIID riid, void **ppv)
        {
            if (riid == IID_IUnknown || riid == IID_IFileSystemBindData) {
                *ppv = static_cast<IUnknown*>(this);
                AddRef();
                return S_OK;
            }
            *ppv = NULL; return E_NOINTERFACE;
        }
        STDMETHODIMP_(ULONG) AddRef() { return 2; }
        STDMETHODIMP_(ULONG) Release() { return 1; }
        STDMETHODIMP SetFindData(const WIN32_FIND_DATAW *pfd) 
        {
            return S_OK;
        }
        STDMETHODIMP GetFindData(WIN32_FIND_DATAW *pfd)
        {
            ZeroMemory(pfd,sizeof(WIN32_FIND_DATAW));
            return S_OK;
        }
    };
    
    LPITEMIDLIST pidl2=NULL;
    HRESULT hr;
    IShellFolder*psf;
    IBindCtx*pbc;
    hr = CreateBindCtx(0,&pbc);
    EmptyFileSystemBindData efsbd;
    if (SUCCEEDED(hr))
    {
        BIND_OPTS bo = {sizeof(bo)};
        bo.grfMode = STGM_CREATE;
        hr = pbc->RegisterObjectParam(STR_FILE_SYS_BIND_DATA,&efsbd);
        if (SUCCEEDED(hr) && 0==pbc->SetBindOptions(&bo))
        {
            hr = SHGetDesktopFolder(&psf);
            if (SUCCEEDED(hr))
            {
                hr = psf->ParseDisplayName(0,pbc,L"::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}",0,&pidl2,0);
                if (SUCCEEDED(hr))
                {
                    OutputDebugStringA("parsed ok\n");
                    ILFree(pidl2);
                }
                psf->Release();
            }
        }
        pbc->Release();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have create name range on sheet A so I need to use this
I have create in MySQdb a DB with a table named example,in this table
I have create a getDBConnection method in my Java application. This returns a connection
I Have Create a One Swing Application and I Want To Run My Swing
I have create two tables with reference with another table: I like this: Table1:
i have create this code for my button but the image doesen't change why?
I have create object lik e this testObj.prototype = { cVar: 15, init: function(c){
I have create a application which have to run in both mode. But while
I have create a Spring form like this: index.jsp <a href=/Spring_MVC/order.jsp>Order</a> Order.jsp <form:form action=createOrder
I have create an csv file in my windows phone, I want to post

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.