|
-
November 19th, 2008, 02:30 AM
#1
CreateInstanceEnum fails with error c0000005
Hi !
I am writing a management app for our company. I am using visual studio 2005 and VC++. Its a
client server architecture. One of the services provided by the server is setting of static IP for
NIC's. I am using WMI class Win32_NetworkAdapterConfiguration and EnableStatic method. I
am using IWbemServices::CreateInstanceEnum method to enumerate instances of Adapters with a particular interfaceindex. All the WMI code is inside the function SetAdapterIpAddress
which i made into a dll and the server links to this dll to provide the service. The first time the
server executes the function conatining the code it succeeds, but the subsequent calls to this
function fails...the point of failure is the line containing the function CreateInstanceEnum....the
return code is c0000005. please help me. thank you.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|