Im writing small app which is about check the process's and I need check interval less then 1s - about 0,5s. With WQL Query Im not able to set up less then 1s. Can you please advise? I was trying diff. types of imput but without luck. :( Thanks.
Const PollingInterval As Double = 1 'Seconds.
Const PollingInterval As String = "0.1" 'Seconds.
Const PollingInterval As String = "0,1" 'Seconds
Dim WithEvents ProcessStartWatcher As New ManagementEventWatcher(New WqlEventQuery("SELECT * FROM __InstanceCreationEvent WITHIN " & PollingInterval & " WHERE TargetInstance ISA 'Win32_Process'"))
Dim WithEvents ProcessStopWatcher As New ManagementEventWatcher(New WqlEventQuery("SELECT * FROM __InstanceDeletionEvent WITHIN " & PollingInterval & " WHERE TargetInstance ISA 'Win32_Process'"))