IVsPreviewChangesList::UpdateCounter Method (UInt32, UInt32)
Updates the current change counter and returns whether any changes have been made to the preview list and if so, what kind of changes.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int UpdateCounter( [OutAttribute] unsigned int% pCurUpdate, [OutAttribute] unsigned int% pgrfChanges )
Parameters
- pCurUpdate
-
Type:
System::UInt32
[out] Returns the current update counter.
- pgrfChanges
-
Type:
System::UInt32
[out] Returns a combination of values from the _VSTREEITEMCHANGESMASK enumeration specifying what kind of changes have been made since the last time this method was called.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell80.idl:
HRESULT IVsPreviewChangesList::UpdateCounter(
[out] ULONG *pCurUpdate,
[out] VSTREEITEMCHANGESMASK *pgrfChanges
);
This method updates the current change counter each time it is called and returns that counter. This method can also return what kind of changes were made.
C++: you can set the pCurUpdate and pgrfChanges parameters to NULL pointers to simply force an update of the counter.