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.