Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This example shows how to evaluate a return value from IsSourceRegistered to see whether a particular component has already been registered. Refer to ISystemDebugEventInstall Example (Visual Basic) to see this code in context.
' Check to see whether a normal component is registered.
Private Sub Sample_IsSourceRegistered(ByVal sSourceGUID As String)
Dim bIsRegistered As Boolean
' sSourceGUID is the GUID for the component.
' bIsRegistered is passed by reference and gets the answer.
' Run the method.
mESI.IsSourceRegistered sSourceGUID, bIsRegistered
If bIsRegistered Then MsgBox "Registered" Else MsgBox "Not Registered"
End Sub