title: Where can I create a directory without Administrator Rights / Privileges?
body: <p>I am creating a DLL that goes with a 3rd-party program. Whether or not the 3rd-party program has Administrator rights in Windows is outside my control.</p>
  
  <p>The DLL needs to create a directory, but it seems like CreateDirectory won't work because it doesn't have administrator rights.</p>
  
  <p>Escalating the UAC isn't an option because I am only modifying the DLL, not the 3rd-party program. I can't force the user to right-click the 3rd-party program and "Run As Administrator".</p>
  
  <p><em>(Visual C++ 2010)</em></p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I am trying to write to <code>C:\ProgramData\</code>. I retrieve that path using <code>SHGetFolderPath()</code> and <code>CSIDL_COMMON_APPDATA</code>.</p>