Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:docs:fapi:dosrmdir [2021/08/20 04:21] – prokushev | en:docs:fapi:dosrmdir [2021/09/17 08:17] (current) – prokushev | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| This call removes a subdirectory from the specified disk. | This call removes a subdirectory from the specified disk. | ||
| - | ==Syntax== | + | ===== Syntax |
| - | | + | <code c> |
| + | DosRmDir (DirName, Reserved) | ||
| + | </ | ||
| - | ==Parameters== | + | ===== Parameters |
| - | *DirName (PSZ) - input : Address of the fully qualified path name of the subdirectory being removed. | + | *DirName ([[PSZ]]) - input : Address of the fully qualified path name of the subdirectory being removed. |
| - | *Reserved (ULONG) - input : Reserved must be set to zero. | + | *Reserved ([[ULONG]]) - input : Reserved must be set to zero. |
| - | ==Return Code== | + | ===== Return Code ===== |
| - | | + | rc ([[USHORT]]) - return |
| Return code descriptions are: | Return code descriptions are: | ||
| Line 30: | Line 32: | ||
| * 206 ERROR_FILENAME_EXCED_RANGE | * 206 ERROR_FILENAME_EXCED_RANGE | ||
| - | ==Remarks== | + | ===== Remarks ===== |
| The subdirectory must be empty, which means it cannot contain hidden files or directory entries other than the " | The subdirectory must be empty, which means it cannot contain hidden files or directory entries other than the " | ||
| Line 36: | Line 39: | ||
| The root directory and current directory cannot be removed. | The root directory and current directory cannot be removed. | ||
| - | ==Example Code== | + | ===== Example Code ===== |
| - | === C Binding=== | + | |
| + | ==== C Binding ==== | ||
| + | <code c> | ||
| #define INCL_DOSFILEMGR | #define INCL_DOSFILEMGR | ||
| Line 47: | Line 52: | ||
| | | ||
| USHORT | USHORT | ||
| + | </ | ||
| - | ===MASM Binding=== | + | ==== MASM Binding |
| + | <code asm> | ||
| EXTRN DosRmDir: | EXTRN DosRmDir: | ||
| INCL_DOSFILEMGR | INCL_DOSFILEMGR | ||
| Line 56: | Line 63: | ||
| PUSH | PUSH | ||
| CALL | CALL | ||
| + | </ | ||
| Returns WORD | Returns WORD | ||
| - | ====== Note ====== | + | ===== Note ===== |
| Text based on http:// | Text based on http:// | ||




