SHPathPrepareForWrite

[DllImport("shlwapi.dll", CharSet = CharSet.Unicode)]
public static extern int SHPathPrepareForWrite(
   IntPtr hwnd,
   IntPtr pbc,
   string pszPath,
   uint dwFlags
);

Microsoft documentation: Link

Last updated