How to make Semisynchronous WMI calls in C#.Net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DKn
    New Member
    • Aug 2007
    • 53

    How to make Semisynchronous WMI calls in C#.Net

    Hello all,

    This is semisynchronous call in vbscripts.
    In this below query 48 is the
    WbemFlagReturnI mmediately 16 : Returns control immediately to the calling script
    WbemFlagForward Only 32: Returns each result as and when it arrives.

    Set objSvc = GetObject("winm gmts:")
    Set objSet = objSvc.ExecQuer y("Select * From Win32_NtLogEven t Where Logfile = 'Application'", ,48)

    What is the equivalent code for the above lines in C#.NET?
    How to make a SemiSynchronous WMI call in C#.Net?

    Thanks in advance.
Working...