winapi - Why SHCreateItemFromIDList faild? -


    tchar temp[max_path] = { 0, };     hresult hr = null;     pidlist_absolute pidl; //=lpitemidlist     ishellitem2 *_psidrop=null;     hresult hr = coinitializeex(null, coinit_apartmentthreaded | coinit_disable_ole1dde); //must add this!     shparsedisplayname(l"c:\\", null, &pidl, 0, null);     if (shgetpathfromidlist(pidl, temp))     {         wprintf(l"%s\n", temp);     }     hr = shcreateitemfromidlist(pidl, iid_ppv_args(&_psidrop));     if (failed(hr))     {         wprintf(l"shcreateitemfromidlist failed");     } 

how can initialize ishellitem2 use pidlist_absolute ? _psidrop has been null.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -