add current/selected user to a group

前端 未结 3 1901
梦毁少年i
梦毁少年i 2021-01-27 01:12

can anyone tell me how can I (programatically) add the current/selected user to a group (like power user, backup opetarors)

any function/info/code is welcomed

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-27 01:24

    You can use the NetLocalGroupAddMembers function in the Windows API.

    The JEDI API Library includes a Lan Manager Access API interface Unit, for use with Delphi.

提交回复
热议问题