0

For a case where I want to log a string to a text file, say in C:\log.txt, is this possible in UMDF driver? considering that UMDF drivers have limited UAC.

JCGM
  • 85
  • 7
  • UDMF drivers run in user mode under the LOCAL SERVICE account. UAC does not apply. Pick a folder and use Explorer to add write access for that account. – Hans Passant Mar 02 '19 at 17:16

1 Answers1

3

You cannot log to C:\. Standard users are not allowed to write to that location.

The reason the default security settings on C:\ prevent standard users from writing to C:\ is to stop applications from writing to C:\.

You can write to locations you can write to, e.g.

See also

Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219