ITcUserManager

The interface ITcUserManager allows access to the TwinCAT User Manager. The TwinCAT User Manager is based on the Windows NT security system. An important feature of the Windows NT security system is the option of either providing or withholding privileges for each operating system object (e.g. hard disk, file, network, …). Furthermore the users, user groups and their privileges can be propagated across the network.

Methods in Vtable sequence

IUnknown Methods

Description

QueryInterface

Returns a pointer to the interface requested.

AddRef

Increments the reference counter.

Release

Decrements the reference counter.

IDispatch Methods

Description

GetTypeInfoCount

Supplies the number of "type information" interfaces, that an object offers. (0 or 1).

GetTypeInfo

Gets the type information for an object.

GetIDsOfNames

Connects names of methods with optional arguments with a corresponding set of DISPIDs.

Invoke

Offers access to properties and methods of an object.

 

ITcUserManager Methods

Description

CreateUserAccount

Creates a new user account.

CreateUserAccountDlg

Dialogue for generation of a new user account.

ImpersonateUser

The invoking thread impersonates the user denoted by name and password.

ImpersonateUserDlg

Dialogue with password query for impersonation of a user.

RevertToSelf

A previous impersonation is cancelled.

UserIsMemberOf

Checks whether the invoking thread is a member of the desired user group.

CreateProcessAsUser

Starts a process with the desired user account.

CreateProcessAsUserDlg

Dialogue for the start of a process with specified user account.

UserIsAdmin

Checks whether the invoking thread belongs to the administrators’ group.

UserName

Property for display of the current user name.

UserEnumLocalGroups

Returns the user groups of a user.

RemoveUserAccount

Removes a user account.

EnumLocalGroups

Returns the locally defined user groups.

EnumLocalUsers

Returns the locally defined users.