Click here to Skip to main content
15,902,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Frame Pane Fixing Problem! Pin
Russell'17-Feb-06 2:43
Russell'17-Feb-06 2:43 
Questionserial port data communication in Visual c++ Pin
omprakashsingh17-Feb-06 1:46
omprakashsingh17-Feb-06 1:46 
AnswerRe: serial port data communication in Visual c++ Pin
Cedric Moonen17-Feb-06 2:02
Cedric Moonen17-Feb-06 2:02 
QuestionRe: serial port data communication in Visual c++ Pin
David Crow17-Feb-06 2:35
David Crow17-Feb-06 2:35 
AnswerRe: serial port data communication in Visual c++ Pin
ThatsAlok17-Feb-06 23:11
ThatsAlok17-Feb-06 23:11 
AnswerRe: serial port data communication in Visual c++ Pin
LittleYellowBird17-Feb-06 2:20
LittleYellowBird17-Feb-06 2:20 
AnswerRe: serial port data communication in Visual c++ Pin
ThatsAlok17-Feb-06 23:14
ThatsAlok17-Feb-06 23:14 
QuestionEvent Notification USing WMI Pin
abhiramsss17-Feb-06 1:24
abhiramsss17-Feb-06 1:24 
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
QuestionFile or Folder Pin
pc_dev17-Feb-06 1:23
pc_dev17-Feb-06 1:23 
AnswerRe: File or Folder Pin
James R. Twine17-Feb-06 1:29
James R. Twine17-Feb-06 1:29 
QuestionHelp me to correct it please, i can't find the problem. Pin
dannysoo202016-Feb-06 23:58
dannysoo202016-Feb-06 23:58 
AnswerRe: Help me to correct it please, i can't find the problem. Pin
toxcct17-Feb-06 0:12
toxcct17-Feb-06 0:12 
GeneralRe: Help me to correct it please, i can't find the problem. Pin
dannysoo202017-Feb-06 1:17
dannysoo202017-Feb-06 1:17 
GeneralRe: Help me to correct it please, i can't find the problem. Pin
James R. Twine17-Feb-06 1:24
James R. Twine17-Feb-06 1:24 
GeneralRe: Help me to correct it please, i can't find the problem. Pin
toxcct17-Feb-06 1:53
toxcct17-Feb-06 1:53 
GeneralRe: Help me to correct it please, i can't find the problem. Pin
ThatsAlok17-Feb-06 21:56
ThatsAlok17-Feb-06 21:56 
GeneralRe: Help me to correct it please, i can't find the problem. Pin
Russell'17-Feb-06 2:19
Russell'17-Feb-06 2:19 
GeneralRe: Help me to correct it please, i can't find the problem. Pin
toxcct17-Feb-06 2:21
toxcct17-Feb-06 2:21 
GeneralRe: Help me to correct it please, i can't find the problem. Pin
Russell'17-Feb-06 2:26
Russell'17-Feb-06 2:26 
GeneralRe: Help me to correct it please, i can't find the problem. Pin
dannysoo202017-Feb-06 2:49
dannysoo202017-Feb-06 2:49 
GeneralRe: Help me to correct it please, i can't find the problem. Pin
dannysoo202017-Feb-06 2:54
dannysoo202017-Feb-06 2:54 
QuestionRe: Help me to correct it please, i can't find the problem. Pin
David Crow17-Feb-06 2:38
David Crow17-Feb-06 2:38 
AnswerRe: Help me to correct it please, i can't find the problem. Pin
Cedric Moonen17-Feb-06 0:55
Cedric Moonen17-Feb-06 0:55 
JokeRe: Help me to correct it please, i can't find the problem. Pin
toxcct17-Feb-06 1:56
toxcct17-Feb-06 1:56 
JokeRe: Help me to correct it please, i can't find the problem. Pin
Cedric Moonen17-Feb-06 1:59
Cedric Moonen17-Feb-06 1:59 

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.