是否有针对不同System.IO API"S"的Kernel32 API

Dev*_*per 5 .net c#

在我的应用程序中,我们需要在深度超过256个字符的情况下进行System.IO操作,在这种情况下,所有System.IO API都失败了.我们正在使用以下API.

  • System.IO.Path.Combine()
  • System.IO.Path.GetDirectoryName()
  • System.IO.Path.GetFileName()
  • System.IO.Path.GetPathRoot()
  • System.IO.Directory.Exists()
  • System.IO.Directory.GetFiles()
  • System.IO.Directory.GetDirectories()
  • System.IO.Directory.CreateDirectory()

如果上述API的替代品可以使用超过256个字符,请指导我,

谢谢

小智 0

PI 调用。但您可能不想使用它。uhttp://www.pinvoke.net/default.aspx/kernel32.CreateDirectoryEx