Desktop Functions: Smart Device Functions:
|
CreateDirectory (kernel32)
C# Signature:
[DllImport("kernel32.dll")] User-Defined Types:None. Notes:This is a alternitive to the Directory.CreateDirectory() method provided by the .NET Framework. The advantage of using the DllImport is that the running assembly does not require access to the root directory structure. The disadvantage is that it will only create the end most directory where as the method provided by .NET will create the entire folder structure. However you 'could' create a recursive function to do this... Tips & Tricks:Please add some! Sample Code:
string path = "c:\\test\\mydir"; Alternative Managed API:
[DllImport("msvcrt.dll", SetLastError=true)] Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|