Hear my plea:
Problems du jour:
How do you resolve the guid for a GPO retrieved by the gpLink property to the group policy name (I'm using System.DirectoryServices)?
I'm writing a WMI app which retrieves the value for the property 'Speed' from an instance of the class Win32_NetworkAdapter...this is supposed to be current bandwidth in bps returned as a uint64, but I don't think I'm formatting it properly. Anyone have an example of how to format this value correctly?
I wrote an OLE controller which binds to a running instance of an OLE
server (Reflection2) via GetActiveObject. This works fine when executed
by
an interactive user.
However when the OLE controller is called from an NT service,
GetActiveObject fails to bind to the running instance of the OLE server.
According to MSKB Q149571 "...a service that implements an OLE server
must
run in the same security context as the client..." (in my case the
service
calls CreateProcess and runs a script which runs an OLE client, but I
suspect the same restriction applies). The KB article applies to NT
3.51
and says "The next version of NT will allow processes in different
security
contexts to communicate using OLE."
Since I'm running "the next version of NT" (4.0), my question is, what
technique does my OLE client need to use in order to bind to a running
instance of an OLE server in another security context? Just calling
GetActiveObject doesn't work. [NT 4.0, SP3]
FindFirstUrlCacheEntry() fails, and GetLastError returns 1062 ("The
service has not been started"). But the services running on the NT
workstation are identical to those on another workstation which does not
produce this error. Any clues welcome.
Email a clue to The Big Dummy