Users access my driver by calling create file like:
sprintf( szBoardName, “\\.\%s%d”, m_BoardName, BoardNumb);
hMyDriver = CreateFile( szBoardName,
0,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL,
OPEN_EXISTING, 0, NULL);
I found that under windows 7 this did not work unless the user was an elevated administrator. After searching this forum, I found that I was supposed to add security to my inf file. I add the lines below to my inf
[SGRWDF.Dev.NT.HW]
AddReg = SGRWDF.Dev.Security
[SGRWDF.Dev.Security]
HKR,DeviceCharacteristics,0x10001,0x100
HKR,Security,“D:P(A;;GA;;;SY)(A;;GRGWGX;;;BA)(A;;GRGWGX;;;WD)(A;;GRGWGX;;;RC)”
And lo and behold I could now access the driver from a normal user account.
My question is, I expecedt to be able to see a change in security settings when viewing my device in WinObj. This I did not see. I navigate to the GLOBAL?? tree and find my symbolic name, right click to select properties and then the security tab. What it shows is basically that no one has any access. This is obviously not true as things are working… So what am I doing wrong? Should I be looking at something other than the symbolic link name?