title: Disabling a Win32 function at compile time
body: <p>Dealing with a bizarre and irritating situation here...I'm using code from an open source project that has a function called DeleteFile(std::string filename).  However, if I call DeleteFile(&quot;const string&quot;) it dumps to the Win32 version instead.</p>
  <p>Is there some way to selective disable specific Win32 functions during compile?  #pragma depreciated will WARN me, but what I really want is to utterly undeclare the Win32 version of DeleteFile at all in some header.</p>