Using OpenSCManager to load the Service Database of a non-running Windows installation

I am pulling (in the IT sense) hard drives from working machines and need to adjust their service configuration in the registry. In the Windows API OpenSCManager, which is used to edit services in the registry, has a sparsely documented lpDatabaseName parameter. Can I use that, say if a Working but not running Windows install is mounted as drive E:\? (the running Windows install is mounted on drive C:\)

Could I do e.g. OpenSCManager(NULL, "E:\Windows\WHAT_IS_THE_FILENAME", SC_MANAGER_ALL_ACCESS). Then use the handle to edit the service configuration on drive E:\? What is the file path for the second parameter? i.e. where would I find this service database file on drive E:\?


According to the SCM remote protocol specification, lpDatabaseName can only be NULL, "ServicesActive", or "ServicesFailed".

Need Your Help

Where to find Maven CXF 2.2.6 jar?

maven jar cxf

I'm converting an ANT project that uses CXF into a Maven one. The problem is that this projects depends on CXF v2.2.6 and when I go to here or even here, there is no jar to download. I don't know w...

gwt / gwt-query - make a transparent some inner areas inside a panel

java gwt transparency gwtquery

I've been looking forward something that enables me to transparent some inner areas inside a panel but not the rest. Say, if I have a panel which dimensions are 500x300, I would like to transparent...