title: how to use SHCreateStreamOnFileEx to create a file with a long UNC path
body: <p>When I use SHCreateStreamOnFileEx to create a stream with a long UNC path (WCHAR, like \?\UNC\localhost\long.......long.....path\abc.txt), I got error "0x80070003 The system cannot find the path specified. ".</p>
  
  <p>From <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/bb759866(v=vs.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/desktop/bb759866(v=vs.85).aspx</a>,</p>
  
  <p><em>Remarks
  The SHCreateStreamOnFileEx function extends the semantics of the STGM flags and produces the same effect as calling the <strong>CreateFile</strong> function.</em></p>
  
  <p>From <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v=vs.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v=vs.85).aspx</a>,
  *lpFileName [in]
  In the ANSI version of this function, the name is limited to MAX_PATH characters. <strong>To extend this limit to 32,767 wide characters</strong>, call the Unicode version of the function and prepend <strong>"\?\"</strong> to the path. For more information, see Naming Files, Paths, and Namespaces.*</p>
  
  <p>Anyone know how to let SHCreateStreamOnFileEx support long UNC path?</p>
  
  <p>Thanks!</p>