JCL Help:AddAccountToLocalGroup

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Adds an account to a local group.


Pascal

 function AddAccountToLocalGroup(const Accountname: string; const Groupname: string): Boolean;


Parameters

Parameters Description
const Accountname: string The name of the account to add to the local group. This can be a global or local account.
const Groupname: string The name of the group the account is added to.


Return Value

If the function succeeds, the result is True, otherwise it is False.


Description

AddAccountToLocalGroup adds an existing account to a local group in the local account database. The account can be a local or global account.


About

Unit

JclLANMan


Donator

Peter Friese


Notes

If the function returns False, the user can retrieve extended error information by calling RaiseLastOSException.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page