1.用户注销:
#pragma code ("useadmin.dll")
#include "PWRT_api.h"
#pragma code()
PWRTLogout();
2.用户登录:
#pragma code ("useadmin.dll")
#include "PWRT_api.h"
#pragma code()
PWRTLogin('c');
3.关闭项目并退出wincc:
ExitWinCC ();
4.退出运行到wincc资源管理器:
DeactivateRTProject ();