Click here to Skip to main content
15,896,269 members
Home / Discussions / COM
   

COM

 
QuestionEvent Notification using Windows MAnagement Instrumentation Pin
abhiramsss17-Feb-06 1:14
abhiramsss17-Feb-06 1:14 
AnswerRe: Event Notification using Windows MAnagement Instrumentation Pin
oshah20-Feb-06 3:11
oshah20-Feb-06 3:11 
GeneralRe: Event Notification using Windows MAnagement Instrumentation Pin
abhiramsss21-Mar-06 21:18
abhiramsss21-Mar-06 21:18 
GeneralRe: Event Notification using Windows MAnagement Instrumentation Pin
oshah22-Mar-06 1:03
oshah22-Mar-06 1:03 
GeneralRe: Event Notification using Windows MAnagement Instrumentation Pin
abhiramsss2-Apr-06 23:37
abhiramsss2-Apr-06 23:37 
GeneralRe: Event Notification using Windows MAnagement Instrumentation Pin
abhiramsss5-Apr-06 19:21
abhiramsss5-Apr-06 19:21 
GeneralRe: Event Notification using Windows MAnagement Instrumentation Pin
abhiramsss22-May-06 19:17
abhiramsss22-May-06 19:17 
GeneralRe: Event Notification using Windows MAnagement Instrumentation Pin
oshah23-May-06 6:42
oshah23-May-06 6:42 
Let's start off with a little modification of your original code. Use this WMI query instead, "Select * From Win32_ProcessStartTrace" to get notified of process creation.

Now to receive notification whenever a new Win32_ProcessStartTrace is fired, you need to invoke that WMI query with ExecNotificationQueryAsync. This operates almost exactly like ExecNotificationQuery, except it takes one extra parameter: a pointer to your implementation of IWbemObjectSink.

If you don't have an implementation of IWbemObjectSink, just use the stock implementation from MSDN[^] or Codeproject[^].

But why do you need to be notified when a new process is being created? What are you going to do to the process?
GeneralRe: Event Notification using Windows MAnagement Instrumentation Pin
abhiramsss28-May-06 23:36
abhiramsss28-May-06 23:36 
GeneralRe: Event Notification using Windows MAnagement Instrumentation Pin
oshah29-May-06 6:54
oshah29-May-06 6:54 
GeneralRe: Event Notification using Windows MAnagement Instrumentation Pin
abhiramsss30-May-06 20:48
abhiramsss30-May-06 20:48 
GeneralRe: Event Notification using Windows MAnagement Instrumentation Pin
abhiramsss12-Jun-06 21:03
abhiramsss12-Jun-06 21:03 
GeneralRe: Event Notification using Windows MAnagement Instrumentation Pin
abhiramsss26-Jun-06 18:18
abhiramsss26-Jun-06 18:18 
GeneralWindows MAnagement Instrumentation Pin
abhiramsss7-Nov-06 14:32
abhiramsss7-Nov-06 14:32 
QuestionService Objects Pin
waxie16-Feb-06 22:05
waxie16-Feb-06 22:05 
QuestionHow to realize my own shell format? Pin
Jerry New16-Feb-06 15:20
Jerry New16-Feb-06 15:20 
AnswerRe: How to realize my own shell format? Pin
QuickDeveloper16-Feb-06 21:43
QuickDeveloper16-Feb-06 21:43 
AnswerRe: How to realize my own shell format? Pin
mbue18-Feb-06 21:35
mbue18-Feb-06 21:35 
AnswerRe: How to realize my own shell format? Pin
Jerry New26-Feb-06 17:17
Jerry New26-Feb-06 17:17 
QuestionSIMPLE COM DLL WITH MULTI RETURN VALUES!!! Pin
LordBalu15-Feb-06 22:29
LordBalu15-Feb-06 22:29 
AnswerRe: SIMPLE COM DLL WITH MULTI RETURN VALUES!!! Pin
Stephen Hewitt15-Feb-06 23:55
Stephen Hewitt15-Feb-06 23:55 
AnswerRe: SIMPLE COM DLL WITH MULTI RETURN VALUES!!! Pin
LordBalu16-Feb-06 0:46
LordBalu16-Feb-06 0:46 
AnswerRe: SIMPLE COM DLL WITH MULTI RETURN VALUES!!! Pin
LordBalu16-Feb-06 2:58
LordBalu16-Feb-06 2:58 
GeneralRe: SIMPLE COM DLL WITH MULTI RETURN VALUES!!! Pin
Stephen Hewitt16-Feb-06 11:19
Stephen Hewitt16-Feb-06 11:19 
QuestionDirectX movie play from URL Pin
Anilkumar K V15-Feb-06 1:26
Anilkumar K V15-Feb-06 1:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.