Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:docs:fapi:dosrmdir [2018/08/29 12:42] – created prokushev | en:docs:fapi:dosrmdir [2021/09/17 08:17] (current) – prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{page> | ||
+ | ====== DosRmDir ====== | ||
This call removes a subdirectory from the specified disk. | This call removes a subdirectory from the specified disk. | ||
- | ==Syntax== | + | ===== Syntax ===== |
- | | + | |
- | ==Parameters== | + | <code c> |
- | ;DirName (PSZ) - input : Address of the fully qualified path name of the subdirectory being removed. | + | DosRmDir (DirName, Reserved) |
- | ;Reserved (ULONG) - input : Reserved must be set to zero. | + | </ |
+ | |||
+ | ===== Parameters | ||
+ | |||
+ | *DirName ([[PSZ]]) - input : Address of the fully qualified path name of the subdirectory being removed. | ||
+ | *Reserved ([[ULONG]]) - input : Reserved must be set to zero. | ||
+ | |||
+ | ===== Return Code ===== | ||
+ | |||
+ | rc ([[USHORT]]) - return | ||
- | ==Return Code== | ||
- | rc (USHORT) - return | ||
Return code descriptions are: | Return code descriptions are: | ||
- | * 0 NO_ERROR | ||
- | * 2 ERROR_FILE_NOT_FOUND | ||
- | * 3 ERROR_PATH_NOT_FOUND | ||
- | * 5 ERROR_ACCESS_DENIED | ||
- | * 16 | ||
- | * 26 | ||
- | * 87 | ||
- | * 108 ERROR_DRIVE_LOCKED | ||
- | * 206 ERROR_FILENAME_EXCED_RANGE | ||
- | ==Remarks== | + | * 0 NO_ERROR |
- | The subdirectory must be empty, which means it cannot contain hidden files or directory entries other than the " | + | * 2 ERROR_FILE_NOT_FOUND |
+ | * 3 ERROR_PATH_NOT_FOUND | ||
+ | * 5 ERROR_ACCESS_DENIED | ||
+ | * 16 | ||
+ | * 26 | ||
+ | * 87 | ||
+ | * 108 ERROR_DRIVE_LOCKED | ||
+ | * 206 ERROR_FILENAME_EXCED_RANGE | ||
- | The root directory and current directory cannot be removed. | + | ===== Remarks ===== |
- | ==Example Code== | ||
- | === C Binding=== | ||
- | <PRE> | ||
- | #define INCL_DOSFILEMGR | ||
- | USHORT | + | The subdirectory must be empty, which means it cannot contain hidden files or directory entries other than the " |
- | PSZ DirName; | + | The root directory and current directory cannot |
- | ULONG 0; /* Reserved (must be zero) */ | + | |
- | USHORT | + | ===== Example Code ===== |
- | </ | + | |
- | ===MASM Binding=== | + | ==== C Binding |
- | <PRE> | + | <code c> |
- | EXTRN DosRmDir: | + | |
- | INCL_DOSFILEMGR | + | |
- | PUSH@ ASCIIZ | + | #define INCL_DOSFILEMGR |
- | PUSH | + | |
- | CALL | + | USHORT |
+ | |||
+ | PSZ DirName; | ||
+ | | ||
+ | |||
+ | USHORT | ||
+ | </ | ||
- | Returns WORD | + | ==== MASM Binding ==== |
- | </ | + | |
+ | <code asm> | ||
+ | EXTRN DosRmDir: | ||
+ | INCL_DOSFILEMGR | ||
+ | | ||
+ | PUSH@ ASCIIZ | ||
+ | PUSH | ||
+ | CALL | ||
+ | </ | ||
+ | Returns WORD | ||
- | ====== Note ====== | + | ===== Note ===== |
Text based on http:// | Text based on http:// |