none
Open serial port without administrator privilages RRS feed

  • Question

  • I developed a serial port driver using serial sample and I installed it.

    Then I try to open the COM port using Teraterm (or any other application). but it gives an error.

    When I run the Teraterm with administrator privileges, Port will opens successfully.

    Can you explain what are the changes I should carry out to the serial sample in order to open the COM port without administrator privileges? 


    sdammika

    Thursday, July 18, 2013 11:25 AM

Answers

  • To the SerialDeviceAdd you need to put in a call to WdfDeviceInitAssignSDDLString with an SDDL that is appropriate. 


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Thursday, July 18, 2013 11:43 AM

All replies

  • To the SerialDeviceAdd you need to put in a call to WdfDeviceInitAssignSDDLString with an SDDL that is appropriate. 


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Thursday, July 18, 2013 11:43 AM
  • Or set the security in the inf

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Thursday, July 18, 2013 2:35 PM
  • I done the change & it works well now.

    Thank you very much for your kind reply


    sdammika

    Thursday, July 18, 2013 2:50 PM