Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
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