Enumerating Debuggable Service Processes
You obtain an IJavaEnumRemoteProcess enumerator for the active Java processes by calling GetActiveProcesses. However, if you are logged on to Microsoft® Windows NT® under the system account, GetActiveProcesses may not enumerate all debuggable Java service processes.
Use dcomcnfg.exe (in your %Windir%\System[32] directory) to set the default access permissions. Dcomcnfg.exe manipulates some registry values under HKEY_LOCAL_MACHINE\Software\Microsoft\OLE.
To allow enumeration of all debuggable Java service processes
- Run dcomcnfg.exe to display the Distributed COM Configuration Properties dialog box.
- Click the Default Security tab.
- In the Default Launch Permissions group box, click the Edit Default button.
- Make sure that Interactive and System are allowed to launch applications. If they're not listed, add them. This modifies the DefaultLaunchPermission REG_BINARY ACL value under the OLE registry key.
- Click OK to close the Registry Value Permissions dialog box.
- In the Default Access Permissions group box, click the Edit Default button.
- Make sure that Interactive and System are allowed to access applications. If they're not listed, add them. This modifies the DefaultAccessPermission REG_BINARY ACL value under the OLE registry key.
- Click OK to close the Default Access Permissions dialog box.
This can also be accomplished programmatically. Each registry value is an access control list (ACL). The DCOMPERM.CPP sample in MSDN demonstrates how to manipulate DCOM permissions. See especially the ChangeDefaultAccessACL( ) and ChangeDefaultLaunchACL( ) methods in DCOMPERM.CPP.
© 1999 Microsoft Corporation. All rights reserved. Terms of use.