Click here to Skip to main content
15,916,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPointers Pin
durban211-May-09 20:03
durban211-May-09 20:03 
AnswerRe: Pointers Pin
Cedric Moonen11-May-09 20:16
Cedric Moonen11-May-09 20:16 
QuestionDATETIMEPICKER Pin
durban211-May-09 19:59
durban211-May-09 19:59 
AnswerRe: DATETIMEPICKER Pin
Stuart Dootson11-May-09 20:27
professionalStuart Dootson11-May-09 20:27 
AnswerRe: DATETIMEPICKER Pin
Cedric Moonen11-May-09 20:34
Cedric Moonen11-May-09 20:34 
QuestionHow to figure out the port number of a device? Pin
Syamlal S Nair11-May-09 19:57
Syamlal S Nair11-May-09 19:57 
AnswerRe: How to figure out the port number of a device? Pin
Cedric Moonen11-May-09 20:41
Cedric Moonen11-May-09 20:41 
GeneralRe: How to figure out the port number of a device? Pin
Syamlal S Nair11-May-09 21:09
Syamlal S Nair11-May-09 21:09 
GeneralRe: How to figure out the port number of a device? Pin
CPallini11-May-09 21:26
mveCPallini11-May-09 21:26 
GeneralRe: How to figure out the port number of a device? Pin
klau2k11-May-09 22:07
klau2k11-May-09 22:07 
Questiontwo dialog window and variable Pin
durban211-May-09 19:54
durban211-May-09 19:54 
AnswerRe: two dialog window and variable Pin
Stuart Dootson11-May-09 20:23
professionalStuart Dootson11-May-09 20:23 
QuestionHow do I wrap text in Editbox? Pin
SherTeks11-May-09 19:04
SherTeks11-May-09 19:04 
AnswerRe: How do I wrap text in Editbox? Pin
Naveen11-May-09 19:26
Naveen11-May-09 19:26 
AnswerRe: How do I wrap text in Editbox? Pin
Michael Schubert11-May-09 21:44
Michael Schubert11-May-09 21:44 
QuestionRemove exe from task manager Pin
Davitor11-May-09 18:23
Davitor11-May-09 18:23 
AnswerRe: Remove exe from task manager [modified] Pin
Madhu Nair11-May-09 19:18
Madhu Nair11-May-09 19:18 
GeneralRe: Remove exe from task manager Pin
Naveen11-May-09 19:28
Naveen11-May-09 19:28 
AnswerRe: Remove exe from task manager Pin
Rajesh R Subramanian11-May-09 20:02
professionalRajesh R Subramanian11-May-09 20:02 
AnswerRe: Remove exe from task manager Pin
Stuart Dootson11-May-09 20:21
professionalStuart Dootson11-May-09 20:21 
AnswerRe: Remove exe from task manager Pin
«_Superman_»11-May-09 20:25
professional«_Superman_»11-May-09 20:25 
AnswerRe: Remove exe from task manager Pin
Stuart Dootson11-May-09 22:02
professionalStuart Dootson11-May-09 22:02 
As an addition to my previous answer - here's some VBScript that will wait until the next time a process called "myprocess.exe" is deleted:

' Get a reference to the WMI service
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
' Open a WMI query for __instancedeletionevents where the target instance is a Win32_Process and 
' the target instance's name (i.e. the process name) is myprocess.exe
Set colMonitoredProcesses = objWMIService. _
   ExecNotificationQuery("select * from __instancedeletionevent " & _
     "within 1 where TargetInstance isa 'Win32_Process' and " & _
     "TargetInstance.Name = 'myprocess.exe'")
' This call will complete the next time a process called myprocess.exe is deleted.
colMonitoredProcesses.NextEvent


The equivalent in C++ would be quite a bit longer, but would do the same thing.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Remove exe from task manager Pin
Rajesh R Subramanian11-May-09 22:19
professionalRajesh R Subramanian11-May-09 22:19 
JokeRe: Remove exe from task manager Pin
Stuart Dootson11-May-09 22:23
professionalStuart Dootson11-May-09 22:23 
JokeRe: Remove exe from task manager Pin
Rajesh R Subramanian11-May-09 23:12
professionalRajesh R Subramanian11-May-09 23:12 

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.