FixedWire Posted April 1, 2019 Report Posted April 1, 2019 Hi, I'm in the process of creating an app where the code had previously used the DSC module, that used to be included in LV, just for logging in. The DSC has now been replaced with the OPC toolkit afik. On a new project it doesn't make sense to use DSC nor does getting the OPC and dealing with runtimes when a fraction of the toolkit will be used. Having looked around I've not found a good replacement. At this point I'm looking at rolling my own & using the Windows logon (Advapi32.dll:LogonUserA) or the .NET System.DirectoryServices.AccountManagment.PrincipalContext Any suggestions? The end application is for a regulated environment so the code needs to be extensively tested. Thought I'd ask before diving into a rabbit hole unnecessarily. Thanks! Quote
bmoyer Posted April 1, 2019 Report Posted April 1, 2019 These links could be of help: https://forums.ni.com/t5/LabVIEW/Windows-Logon-Information/td-p/1236288 https://forums.ni.com/t5/Example-Programs/Retrieve-Windows-User-Name-Using-LabVIEW/ta-p/3526812 https://forums.ni.com/t5/Example-Programs/How-to-Access-the-Username-of-the-Current-User/ta-p/3522702 Quote
hooovahh Posted April 1, 2019 Report Posted April 1, 2019 And here are a few more links with examples from LAVA. Quote
Popular Post paul_cardinale Posted April 2, 2019 Popular Post Report Posted April 2, 2019 Try this. Windows User Login 2017.zip 2 1 Quote
FixedWire Posted April 2, 2019 Author Report Posted April 2, 2019 Thank you Paul. Nice work. Sweet. Thank you all! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.