CreateFile / CreatefileA getlasterror returns 5, even after driver sddl settings reduced

Hari 21 Reputation points
2022-09-23T07:38:42.87+00:00

We have developed a c++ application tool to interact with one of the inhouse driver. we are suppose to use IOCTL's to communicate with driver. Initially the driver SDDL information was D:P(A;;GA;;;SY), and understood only the system account privilege is required from the app side to communicate / open the device.
later the driver updated the security to SECURITY_STRING = "D:P(A;;GA;;;SY)(A;;GA;;;LA)" and still it fails sometimes.

I would like to know if you have any sample code / reference that can have system account access privilege. please help much appreciated.

Windows development | Windows API - Win32
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.