Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

abhiramsss

@abhiramsss
About
Posts
62
Topics
46
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • latest version of .net
    A abhiramsss

    what is the latest version of .net to use

    abhi

    .NET (Core and Framework) csharp question announcement

  • MSMQ Remote Use
    A abhiramsss

    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

    C / C++ / MFC c++ database help tutorial

  • MSMQ Send and Recv data
    A abhiramsss

    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

    C / C++ / MFC c++ database

  • MSMQ
    A abhiramsss

    Can any body please send some good links on mSMQ with examples using VC++ Thanks

    abhi

    C / C++ / MFC c++

  • Monitor UPS
    A abhiramsss

    Hi all Can u pls help in monitoring UPS using Power Management Thanks

    abhi

    Windows Forms help

  • Power management
    A abhiramsss

    Hi all Can you pls help in Using Power management to Monitor UPS Thanks & Reagrds

    abhi

    Windows API help

  • Power management to Monitor UPS
    A abhiramsss

    Hi all Can you pls help in Using Power management to Monitor UPS Thanks & Reagrds

    abhi

    C / C++ / MFC help

  • Remote Process
    A abhiramsss

    Hi How to start a interactive process(say calc.exe) on a remote machine USing WMI Thanks In Advance

    abhi

    System Admin tutorial

  • Remotely Starting a Process
    A abhiramsss

    Hi How to start a interactive process(say calc.exe) on a remote machine USing WMIon Windows XP Thanks In Advance

    abhi

    COM tutorial

  • System monitor using WMI
    A abhiramsss

    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

    COM sysadmin tools help tutorial

  • GetSystemTime
    A abhiramsss

    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

    C / C++ / MFC tutorial help

  • CREATE AND TERMINATE PROCESS USING WMI
    A abhiramsss

    hi all how to create and terminate a process using WMI Can i have c++ code for it Thanks

    abhi

    C / C++ / MFC c++ tutorial

  • create a process using WMI?
    A abhiramsss

    hi all how to create and terminate a process using WMI Can i have c++ code for it Thanks

    abhi

    COM c++ tutorial question

  • String as argument to SendMessage
    A abhiramsss

    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

    C / C++ / MFC tutorial

  • SendMessage
    A abhiramsss

    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

    Managed C++/CLI tutorial

  • Win32_PingStatus
    A abhiramsss

    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

    C / C++ / MFC tutorial

  • WMI Win32_pingStatus
    A abhiramsss

    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

    COM tutorial

  • WMI
    A abhiramsss

    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

    COM tutorial c++ tools help

  • pinging remote systems using WMI
    A abhiramsss

    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

    System Admin tutorial c++ tools help

  • Killing Process Using WMI
    A abhiramsss

    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

    COM help announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups