dos12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
DosMkDir2 (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSFILEMGR
 
USHORT DosMkDir2(pszDir, peaop, ulReserved);
PSZ pszDir;          /* pointer to directory name                    */
PEAOP peaop;         /* pointer to structure for extended attributes */
ULONG ulReserved;    /* must be zero                                 */
 
The DosMkDir2 function creates a directory.
 
Parameter   Description
────────────────────────────────────────────────────────────────────────────
 
pszDir      Points to a null-terminated string that specifies a valid MS
            OS/2 directory name.
 
peaop       Points to the EAOP structure that defines extended attributes
            for the directory.
 
ulReserved  Specifies a reserved value; must be zero.
 
Return Value
 
The return value is zero if the function is successful. Otherwise, it is an
error value, which may be one of the following:
 
     ERROR_ACCESS_DENIED
     ERROR_EA_LIST_INCONSISTENT
     ERROR_FILENAME_EXCED_RANGE
     ERROR_INVALID_EA_NAME
     ERROR_PATH_NOT_FOUND
 
Comments
 
Prior to the function call, the fpFEAList field of the EAOP structure should
be set to point to the buffer that contains the relevant list of extended
attributes.
 
If the peaop parameter is NULL, no extended attributes are defined for the
directory.
 
If an error occurs during the creation of the extended attributes, the
oError field of the EAOP structure will contain the offset within the list
where the error occurred.
 
See Also
 
DosMkDir, EAOP