what is the latest version of .net to use
abhi
what is the latest version of .net to use
abhi
Hi all, I need some help regarding MSMQ using VC++. i am new to this concept. let say i am running a application on LOcal Pc and i want to save some information from this application into a database which is running on a remote machine. can you please tell how MSMQ can be used in this scenerio.if you can provide a example for this that will be a great help to me. Thanks
abhi
Hi All, With MSMQ using VC++ what kind of messages we can transfer , i mean can we send and recieve binary data, SQL statements,STructures etc Thanks
abhi
Can any body please send some good links on mSMQ with examples using VC++ Thanks
abhi
Hi all Can u pls help in monitoring UPS using Power Management Thanks
abhi
Hi all Can you pls help in Using Power management to Monitor UPS Thanks & Reagrds
abhi
Hi all Can you pls help in Using Power management to Monitor UPS Thanks & Reagrds
abhi
Hi How to start a interactive process(say calc.exe) on a remote machine USing WMI Thanks In Advance
abhi
Hi How to start a interactive process(say calc.exe) on a remote machine USing WMIon Windows XP Thanks In Advance
abhi
Hi i want some help from you regarding vbscript and WMI suppose there are five systems in a network say 1 2 3 4 5 and iam monitoring other systems from system 1. so whenever I run a script it should tell me what are the other systems running in the network and write the output to a log file. and the script should check for a folder and the files in that folder on remote machines and writes to the log file on the monitoring systyem i.e on system 1 can u please help me with a script example for this Thanks in Advance
abhi
hi all i want to find the difference between two times say example now i have started a application and after 1 min i want to see the difference how to do it shall i call GetSystemTime twice . please help me with an example Thanks in Advance
abhi
hi all how to create and terminate a process using WMI Can i have c++ code for it Thanks
abhi
hi all how to create and terminate a process using WMI Can i have c++ code for it Thanks
abhi
To SendMessage how to send a string as argument and how to recieve and display that string lets say in a edit box i have some text ABCD , i want to capture this text to a CString and pass this CString to Sendmessage as Wparam parameter to other remote process(iam using sockets for remote connevtion). and at remote Application i will capture this wparam and display the message how to do this using send message. Thanks in advance
abhi
To SendMessage how to send a string as argument and how to recieve and display that string lets say in a edit box i have some text ABCD , i want to capture this text to a CString and pass this CString to Sendmessage as Wparam parameter to other remote process(iam using sockets for remote connevtion). and at remote Application i will capture this wparam and display the message how to do this using send message. Thanks in advance
abhi
how to ping remote system running on Windows 2000 using WMI is there any patch for windows 2000 to ping remote system using win32_pingstatus class thanks
abhi
how to ping remote system running on Windows 2000 using WMI is there any patch for windows 2000 to ping remote system using win32_pingstatus class thanks
abhi
Can i know how to ping remote systems on windows 2000 professional operating system using WMI can u please provide example in C++. i have the following script example strComputer = "PC1;PC2;" sArray = Split(strComputer, ";") strDomain = "WOrkArea" strUser = InputBox("Enter user name") strPassword = InputBox("Enter password") Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator") For each Machine in sArray= Set objWMIService = objSWbemLocator.ConnectServer(strComputer, _ "root\CIMV2", _ strUser, _ strPassword, _ "MS_409", _ "ntlmdomain:" + strDomain) Set colProcessList = objWMIService.ExecQuery _ ("SELECT * FROM Win32_Process WHERE Name = 'notepad.exe'") For Each objProcess in colProcessList objProcess.Terminate() Next Next can u please help with c++ code using WMI to run on Windows 2000 professional Thanks in Advance
abhi
Can i know how to ping remote systems on windows 2000 professional operating system using WMI can u please provide example in C++. i have the following script example strComputer = "PC1;PC2;" sArray = Split(strComputer, ";") strDomain = "WOrkArea" strUser = InputBox("Enter user name") strPassword = InputBox("Enter password") Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator") For each Machine in sArray= Set objWMIService = objSWbemLocator.ConnectServer(strComputer, _ "root\CIMV2", _ strUser, _ strPassword, _ "MS_409", _ "ntlmdomain:" + strDomain) Set colProcessList = objWMIService.ExecQuery _ ("SELECT * FROM Win32_Process WHERE Name = 'notepad.exe'") For Each objProcess in colProcessList objProcess.Terminate() Next Next can u please help with c++ code using WMI to run on Windows 2000 professional Thanks in Advance
abhi
hi I am working killing a process using WMI iam using the following code . HRESULT hres; BSTR ClassName = SysAllocString(L"Win32_Process"); /* YOU NEED TO CHANGE THE NUMBER VALUE OF THE HANDLE (PROCESS ID) TO THE CORRECT VALUE OF THE PROCESS YOU ARE TRYING TO TERMINATE (this provides a path to the class instance you are tying to terminate). */ BSTR ClassNameInstance = SysAllocString( L"Win32_Process.Handle=\"\1418\""); _bstr_t MethodName = (L"Terminate"); BSTR ParameterName = SysAllocString(L"Reason"); IWbemClassObject* pClass = NULL; hres = m_pIWbemService->GetObject(ClassName, 0, NULL, &pClass, NULL); IWbemClassObject* pInParamsDefinition = NULL; IWbemClassObject* pOutMethod = NULL; hres = pClass->GetMethod(MethodName, 0, &pInParamsDefinition, &pOutMethod); if (FAILED(hres)) { cout << "Could not get the method. Error code = 0x" << hex << hres << endl; } IWbemClassObject* pClassInstance = NULL; hres = pInParamsDefinition->SpawnInstance(0, &pClassInstance); // Create the values for the in parameters VARIANT pcVal; VariantInit(&pcVal); V_VT(&pcVal) = VT_I4; // Store the value for the in parameters hres = pClassInstance->Put(L"Reason", 0, &pcVal, 0); // Execute Method hres = m_pIWbemService->ExecMethod(ClassNameInstance, MethodName, 0, NULL, pClassInstance, NULL, NULL); if (FAILED(hres)) { cout << "Could not execute method. Error code = 0x" << hex << hres << endl; VariantClear(&pcVal); SysFreeString(ClassName); SysFreeString(MethodName); pClass->Release(); pInParamsDefinition->Release(); m_pIWbemService->Release(); //pLoc->Release(); CoUninitialize(); return 1; // Program has failed. } it is working fine ,but here iam gicing the Process ID which has to be terminated like 1418. Instead of ProcessID i want to use process Name like CAlc.exe or notepad.exe but when IAm tring to change the code with the process name like SysAllocString( L"Win32_Process.Name=\"\notepad.exe\""); notepad is not terminating . can you please help me to solve it. Thanks in Advance
abhi