Click here to Skip to main content
16,006,001 members
Home / Discussions / System Admin
   

System Admin

 
AnswerRe: increasing virtual memory Pin
Mekong River18-Feb-06 4:47
Mekong River18-Feb-06 4:47 
AnswerRe: increasing virtual memory Pin
Michael Dunn18-Feb-06 5:42
sitebuilderMichael Dunn18-Feb-06 5:42 
GeneralRe: increasing virtual memory Pin
Mekong River18-Feb-06 15:06
Mekong River18-Feb-06 15:06 
GeneralRe: increasing virtual memory Pin
Michael Dunn18-Feb-06 17:20
sitebuilderMichael Dunn18-Feb-06 17:20 
GeneralRe: increasing virtual memory Pin
Mekong River19-Feb-06 3:40
Mekong River19-Feb-06 3:40 
GeneralRe: increasing virtual memory Pin
Saksida Bojan19-Feb-06 3:25
Saksida Bojan19-Feb-06 3:25 
GeneralRe: increasing virtual memory Pin
Mekong River19-Feb-06 3:48
Mekong River19-Feb-06 3:48 
QuestionEvent Notification USing WMI Pin
abhiramsss17-Feb-06 1:19
abhiramsss17-Feb-06 1:19 
hi all

iam working on WMI . iam trying to write an application for Event notification.

Iam usimg Win32_Process class, and ExecNotificationQuery for WQl query.

Iam trying to display a message when a new process is created.


my WQL query is

hres = pSvc->ExecNotificationQuery(
bstr_t("WQL"),
bstr_t("SELECT * FROM __InstanceCreationEvent WITHIN 5 WHERE TargetInstance ISA 'Win32_Process' And (TargetInstance.Name = 'notepad.exe' OR TargetInstance.Name = 'calc.exe' ) "),
WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY,
NULL,
&pEnumerator);


if iam not wrong ,After executing this query TargetInstance will be Instance of WIn32_process class.


and now iam trying extract data usoing this statement

hr = pclsObj->Get(L("TargetInstance.Name"), 0, &vtProp, 0, 0);

but iam not able to get value of Name property of Win32_Process class into vtProp where vtProp is of type VARIANT.

IWbemClassObject->Get( LPCWSTR wszName,LONG lFlags, VARIANT* pVal,CIMTYPE* pvtType, LONG* plFlavor) is used to retrieves Specified property value.

but here iam using it for getting value fron an istance i.e TargetInstance.Name. Is it the correct way to do if not please help me in extracting value of Name Property.

Please help me in solving this .

Thanks in advance






abhi
AnswerRe: Event Notification USing WMI Pin
Dave Kreskowiak17-Feb-06 5:18
mveDave Kreskowiak17-Feb-06 5:18 
QuestionSir,can you help me? Pin
momer16-Feb-06 23:25
momer16-Feb-06 23:25 
AnswerRe: Sir,can you help me? Pin
toxcct16-Feb-06 23:43
toxcct16-Feb-06 23:43 
GeneralRe: Sir,can you help me? Pin
momer17-Feb-06 1:59
momer17-Feb-06 1:59 
GeneralRe: Sir,can you help me? Pin
toxcct17-Feb-06 2:02
toxcct17-Feb-06 2:02 
GeneralRe: Sir,can you help me? Pin
momer17-Feb-06 16:12
momer17-Feb-06 16:12 
AnswerRe: Sir,can you help me? Pin
code-frog17-Feb-06 6:49
professionalcode-frog17-Feb-06 6:49 
GeneralRe: Sir,can you help me? Pin
momer17-Feb-06 16:04
momer17-Feb-06 16:04 
GeneralRe: Sir,can you help me? Pin
Dave Kreskowiak17-Feb-06 16:31
mveDave Kreskowiak17-Feb-06 16:31 
GeneralRe: Sir,can you help me? Pin
momer18-Feb-06 15:28
momer18-Feb-06 15:28 
GeneralRe: Sir,can you help me? Pin
Dave Kreskowiak18-Feb-06 19:29
mveDave Kreskowiak18-Feb-06 19:29 
GeneralRe: Sir,can you help me? Pin
momer20-Feb-06 3:43
momer20-Feb-06 3:43 
AnswerRe: Sir,can you help me? Pin
Saksida Bojan19-Feb-06 3:44
Saksida Bojan19-Feb-06 3:44 
GeneralRe: Sir,can you help me? Pin
momer20-Feb-06 16:13
momer20-Feb-06 16:13 
GeneralRe: Sir,can you help me? Pin
Dave Kreskowiak20-Feb-06 17:45
mveDave Kreskowiak20-Feb-06 17:45 
GeneralRe: Sir,can you help me? Pin
momer20-Feb-06 22:07
momer20-Feb-06 22:07 
QuestionHow to realize my own shell format? Pin
Jerry New16-Feb-06 15:21
Jerry New16-Feb-06 15:21 

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.