CreateDirectory Method

MCManager API

Kernel32 function that creates directory. Due to a bug/issue with the .NET runtime a call to this method is required.

Namespace:  Moxiecode.Manager.Utils
Assembly:  MCManager (in MCManager.dll) Version: 1.0.0.0

Syntax

C#
public static bool CreateDirectory(
	string lpPathName,
	IntPtr lpSecurityAttributes
)
Visual Basic (Declaration)
Public Shared Function CreateDirectory ( _
	lpPathName As String, _
	lpSecurityAttributes As IntPtr _
) As Boolean
Visual C++
public:
static bool CreateDirectory(
	String^ lpPathName, 
	IntPtr lpSecurityAttributes
)

Parameters

lpPathName
Type: System..::.String
Path to create.
lpSecurityAttributes
Type: System..::.IntPtr
Security attributes.

Return Value

true - success, false - failure

See Also