|
of_CreateDirectory
|
|
Full name
|
pfc_n_cst_filesrvsol2.of_CreateDirectory
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_CreateDirectory(string)
|
Name
|
Datatype
|
lstr_Security
|
os_securityattributes
|
public function integer of_CreateDirectory (string as_directoryname);//////////////////////////////////////////////////////////////////////////////
// Public Function: of_CreateDirectory
// Arguments: as_DirectoryName The name of the directory to be created; an
// absolute path may be specified or it will
// be relative to the current working directory
// Returns: Integer
// 1 if successful,
// -1 if an error occurrs.
// Description: Create a new directory.
//////////////////////////////////////////////////////////////////////////////
// Rev. History: Version
// 5.0.02 Initial version
//////////////////////////////////////////////////////////////////////////////
// Copyright © 1996-1999 Sybase, Inc. and its subsidiaries. All rights reserved. Any distribution of the
// PowerBuilder Foundation Classes (PFC) source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//////////////////////////////////////////////////////////////////////////////
os_securityattributes lstr_Security
lstr_Security.ul_Length = 7
SetNull(lstr_Security.ch_description) // Use default security
lstr_Security.b_Inherit = False
If CreateDirectoryA(as_DirectoryName, lstr_Security) Then
Return 1
Else
Return -1
End If
end function