kenyourek Posted July 10, 2014 Share Posted July 10, 2014 Environment: Microsoft Windows 7 Professional 6.1.7601 Service Pack 1 Build 7601 x64-based PC PeWin32Pro2 Version 4.3.2.0 With admin privileges, we've configured PeWin32Pro2 to use our PMAC device. The PeWin32Pro2 application works correctly as long as we run it with administrator privileges. Our HMI application uses PCOMMSERVERLib.PmacDevice in a .NET application. Our HMI application works correctly as long as we run it with administrator privileges. When we try to run our HMI application without administrator privileges, the PMAC Devices dialog shows (attachment), and we are unable to select our PMAC device (this is the same behavior we get when running PeWin32Pro2 without administrator privileges). Is it possible to use the libraries provided by PeWin32Pro2 in an application that is running without administrator privileges? Link to comment Share on other sites More sharing options...
BUR Posted July 22, 2014 Share Posted July 22, 2014 Yes, this should be possible. Link to comment Share on other sites More sharing options...
Faraday MC - Tony Posted July 22, 2014 Share Posted July 22, 2014 You can do it but you have to manually edit the registry permissions. Right click on the PeWin Pro icon and select “Run as administrator”. This only needs to be done once and it allows the software to create the registry keys. Run regedit and change the user permissions for the following entries to give users full control: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\PMAC HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\PMACETH HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\PMACUSB Right click on the entry, select permissions and put a tick in the box to allow full control. Exit Regedit and run PeWin normally. You should now find that the PMAC software runs correctly as a standard user.PeWin registry settings.pdf Link to comment Share on other sites More sharing options...
Recommended Posts