Solved

IShellFolder::SetNameOf() calls with Output PIDL NULL

Posted on 1998-11-28
3
399 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
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now