?
Solved

IShellFolder::SetNameOf() calls with Output PIDL NULL

Posted on 1998-11-28
3
Medium Priority
?
422 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 100 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

Independent Software Vendors: 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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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…
Suggested Courses

770 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