Hi everybody !! (sorry for my english)
I've got a sirious problem interfacing my COM to another(SWbemLocator).
1. I tried to access WMI Provider with the non-visual component SWbemLocator, this component work fine if I put it on form which is auto-created by delphi. I can connect the remote server and all works fine...
2. but when I created this object programmaticly in my COM server, I cannot connect the server. I suppose that the problem is the Interface(s)... why should I suppose that ? Because I've made some tests and I saw that :
-if I launch my COM method wich connect the server trough this component, I get an error : Access denied
-after that I execute the Win32 forms based application which do same as my COM, the COM get access without any problems...
If anyone knows how to work with TOleServer,TSWbemLocator,interfaces please help me. Or have some idea thanks to reply this message...
Osman from Switzerland (very nice country )
I've got a sirious problem interfacing my COM to another(SWbemLocator).
1. I tried to access WMI Provider with the non-visual component SWbemLocator, this component work fine if I put it on form which is auto-created by delphi. I can connect the remote server and all works fine...
2. but when I created this object programmaticly in my COM server, I cannot connect the server. I suppose that the problem is the Interface(s)... why should I suppose that ? Because I've made some tests and I saw that :
-if I launch my COM method wich connect the server trough this component, I get an error : Access denied
-after that I execute the Win32 forms based application which do same as my COM, the COM get access without any problems...
If anyone knows how to work with TOleServer,TSWbemLocator,interfaces please help me. Or have some idea thanks to reply this message...
Osman from Switzerland (very nice country )