Hi Guys,
I would like to ask a question about the interface of SOLIDWORKS PDM, the scenario is like this:
I made a desktop application based on the interface of PDM (C#, running environment is .NET Framework 4), the program will always run in the desktop foreground, the function of the program is to monitor the process through the timer task (System.Timers.Timer) Timer) to the specified node to trigger the appropriate action, and output the results on the program interface, the program is deployed in the SOLIDWORKS PDM archive server.
Now the user requires to log out of the system user after the program runs for security reasons, and logging out of the system user will cause the program to be terminated since it is a frontend application. I tried to change the program architecture to Windos background service, however, I tried to use IEdmVault16.LogInWindowsUser(string bsUserName, string bsPasswd, string bsVaultName) with IEdmVault16. LoginAuto(string bsVaultName, int hParentWnd) both interfaces are not able to login.
How can I now make sure that my program continues to run and access the SOLIDWORKS PDM interface even if I log out as a system user, is there a solution? (The program must be deployed on a Windows Server 2022 server) If so, please provide the C# case code!