Solved

IShellFolder::SetNameOf() calls with Output PIDL NULL

Posted on 1998-11-28
3
418 Views
Last Modified: 2008-02-07
In my Shell Namespace Extension, IShellFolder::SetNameOf() insist on calling my extension with the return* PIDL set to NULL. All other parameters appear OK ? Why is this happening.
0
Comment
Question by:RONOS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1178752
Hmm, that's a long time ago.
I think NULL is a legal value for the explorer to give to you since it is not interested in the new PIDL. So everything seems ok. Just don't give him a new PIDL in this case.
0
 

Author Comment

by:RONOS
ID: 1178753
Yes, Although NULL is valid, the Actual Namespace PIDL is not being upgraded to the new name given by the user. Its reverts back to the original name. The original PIDL was not released, since the new one could not be provided, and the new one could not be provided since the return PIDL was NULL. DEADLOCK! So, whu did explorer give me a NULL return PIDDLE value ?
0
 
LVL 10

Accepted Solution

by:
Lischke earned 50 total points
ID: 1178754
RONOS,

null PIDL is ok, if the shell doesn't need it. Another thing is that you should'n change the original PIDL passed to SetNameOf else the update of the explorer tree will fail.

What you need to do to is to call:

SHChangeNotify(SHCNE_UPDATEDIR,SHCNF_IDLIST | SHCNF_FLUSH,FLocation,null);

in SetNameOf after you have stored the new name, where FLocation is the absolute PIDL of your shell folder, passed in from IPersistFolder.Initialize.

Hope this helps,

Ciao, Mike
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question