View Single Post
Old 12th October 2009, 23:47   #1
Senior Member
Join Date: Mar 2006
Location: Dallas
Posts: 462
Error from CoInitializeSecurity (WMI)

I borrowed the System plugin calls that F0rt wrote about and wrote my own program to access WMI. On my laptop at home (Vista 64) it works fine, and here at work (XP Pro) it works fine. But on our target systems (Win 2000 Pro) the very first system call fails.

I stripped the program down to some essentials, and it still fails. The routines (in the attached file) work on my XP desktop and fail with RPC_E_TOO_LATE (0x80010119) at the very first line of code. On other Win2k machines here, that call works but it fails later with a line that says failed ExecQuery 0xc0000005.

Is there anyone that can see why this fails (either error, or best, both errors)?

Attached Files
File Type: nsi wmisample.nsi (3.3 KB, 337 views)
demiller9 is offline   Reply With Quote