title: Dropping privileges in C++ on Windows
body: <p>Is it possible for a C++ application running on Windows to drop privileges at runtime? </p>
  
  <p>For instance, if a user starts my application as Administrator, but there's no reason to run my application as administrator, can I in some way give up the Administrator-privileges?</p>
  
  <p>In short, I would like to write code in the main() function which drops privileges I don't need (for instance, Write access on the Windows directory).</p>