On 13/11/2013 11:40,
rahul.s...@gmail.com wrote:
> We read a registry key in GetOverlayInfo() and IsMemberOf() methods
> to determine whether to show the overlay icons or not. From both of
> these methods we return S_FALSE if registry key is not set.
>
> Problem is that when GetOverlayInfo() is called registry key is not
> set but it is set later in the session. I've notice once
> GetOverlayInfo() returns S_FALSE, shell doesn't call IsMemberOf()
> further.
GetOverlayInfo() gets global state, and is not file/object specific,
especially as it's called during initialization.
Why not always return meaningful data and just put the condition on your
IsMemberOf() implementation?
This will be called first before subsequent GetOverlayInfo() calls so
won't impact performance.
--
Deanna Earley (
dee.e...@icode.co.uk)
iCatcher Development Team
http://www.icode.co.uk/icatcher/
iCode Systems
(Replies direct to my email address will be ignored. Please reply to the
group.)