Solved

WMI SDK for windows XP

Posted on 2003-11-14
5
3,449 Views
Last Modified: 2007-12-19
I would like to download WMI SDK to WIndows XP. However, WDI SDK is only available to windows 2000 and early. Microsoft .NET has some WMI SDK facility.

If I do not want to use .NET, is there any workaround for me to have WMI SDK functions? To be more specific, I can not find "wbemcli.h" in Microsoft Visual C++ 6.0 and Microsoft SDK. It is in WMI SDK for windows which I can not download for XP. How can I get it for Windows XP?

Thanks.

Alice
0
Comment
Question by:alice_2003
  • 3
5 Comments
 
LVL 44

Expert Comment

by:CrazyOne
ID: 9750216
Well according to this the link .NET also required in Win2000 also

https://qmedia.e-storefront.com/showcontent.asp?contentname=PlatformSDKHome
Microsoft Windows .NET Server RC1, Microsoft Windows XP, Microsoft Windows 2000 SP2, or Microsoft Windows NT 4.0 SP6.
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 9750229
Well maybe not that statement may have be an "or" for each item.
0
 
LVL 44

Accepted Solution

by:
CrazyOne earned 500 total points
ID: 9750251
There is one realesed early this year on CD

http://qmedia.e-storefront.com/product.asp?productid=26
0
 

Author Comment

by:alice_2003
ID: 9781541
I have downloaded the WMI SDK. Now my program compiled and is working. However, there is still one issue with it:

I am implementing a NT service which calls an executable (cm.exe). Inside cm.exe, it creates another process (rec.exe). When I stop the service from Service Control Manager(SCM), cm.exe stops. I can manually end the process rec.exe from SCM in windows XP (it is under system account). However, in Windows 2000, it can not be stopped. I have to reboot to stop rec.exe.

I want to change my program such that when cm.exe is killed, its created process rec.exe is stopped as well. I used the following functions in my program. But rec.exe is not stopped when cm.exe is stopped. Any other way? Thanks.  --A.

HANDLE pid;
  void (signal (WM_CHAR,endprog));
  void (signal (WM_QUIT,endprog));
  void (signal (SIGTERM,endprog));
  void (signal (SIGABRT,endprog));
  void (signal (SIGSEGV,endprog));

void endprog (int signal_num)
{
      printf("Got signal %d\n",signal_num);
      if (pid) {
            /* Shut down rec.exe process */
            TerminateProcess(pid, 0);  
            pid = 0;
      }
}



0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now