wwUtils::DCOMLaunchPermissions

Sets the Launch and Access permissions of a DCOM server.

o.DCOMLaunchPermissions(lcProgid,lcusername)

Return Value

.T. or .F.
Error dialog pops up with error info on failures.

Parameters

lcProgid
ProgId of the COM server to configure. Server must be registered for this to work.
You can also leave this value empty to set the default launch and access permission. Use this option with care and let the user know what you're doing!

lcusername
The username to add to the launch lists.

Remarks

Requires that the operator is logged on as an administrator.

Requires DCOMPermissions.exe to be available in the FoxPro path (FULLPATH() must find it).

Example

DCOMCnfgServer("wcDemo.wcDemoServer")   && Interactive User

loAPI = CREATE("wwAPI")
lcMachineName = loAPI.GetComputerName()

DCOMLaunchPermissions("wcdemo.wcDemoServer","IUSR_" + lcMachineName)
DCOMLaunchPermissions("wcdemo.wcDemoServer","IWAM_" + lcMachineName)
DCOMLaunchPermissions("wcdemo.wcDemoServer","Administrators")
DCOMLaunchPermissions("wcdemo.wcDemoServer","SYSTEM")
DCOMLaunchPermissions("wcdemo.wcDemoServer","INTERACTIVE")

See also:

Library wwUtils | wwUtils::DCOMCnfgServer

© West Wind Technologies, 2023 • Updated: 04/08/15
Comment or report problem with topic