3/12/2021 4:06 PM | |
Joined: 5/29/2019 Last visit: 1/31/2025 Posts: 6 Rating:
|
Dear All, I am using WincCC Prof V16. I am doing a lot of VB scripting. Now I should extract user group name of user logged on. That is only possible with C-Scripting. Support referenced to https://support.industry.siemens.com/cs/de/de/view/109773785 Chapter 3.5 Functions of User Management (RT Professional)and I found topic https://support.industry.siemens.com/tf/WW/en/posts/group-user-in-wincc-v6/3718?page=0 with code #include "apdefap.h" #include "usegenap.h" BOOL enum_user(LPTSTR lpUserInfo, PVOID lpUser) { PWGEN_USERINFO* pCls; char* a; char* b; pCls = (LPWGEN_USERINFO*)lpUserInfo; a = pCls->login; b = strcmp(a, GetTagChar("@CurrentUser")); if (b == 0) SetTagChar("GroupName1", pCls->group); return TRUE; } but I cannot fit these topics together. How to setup a c-script with that functionality in Win-Prof V. 16? Thanks for any help Jens |
Follow us on