I am writing a C# application to replace an existing C++ application, and I
am having some difficulties in mapping some of the specifics.
For example, the C++ application adds Windows BACKUP authority to the
process before attempting to communicate with a specific server/service, and
this authority is used to permit the code to bypass some default file system
filters. This is not a virus and is intended behavior. I hav enot yet had a
chance to examine the specific source, but another developer explained it
this way: "You need to get token handle using OpenProcessToken and then pass
it to AdjustTokenPrivileges to enable the backup privilege."
How can I do this in C#/.Net? Is there a built-in mechanism, or do I need to
invoke Win32 API calls to achieve this?
-Ken