With VS 2010, I'm trying to use the IVsSelectionEvents interface, especially the OnCmdUIContextChanged(uint dwCmdUICookie, int fActive) method.
The problem is this method return a uint which represent a UI context. I would like to know how to "convert" this cookie (aka the uint) to a Guid.
When the package register is own UI context, you already have the value dwCmdUICookie thank to the call to IVsMonitorSelection.GetCmdUIContextCookie, so conversion is obvious. But how do you convert the uint to a VS Guid ? I mean OnCmdUIContextChanged send me a uint but it's not use, I need the Guid like VSConstants.UICONTEXT_SolutionBuilding instead.