Help Center

AfxRmDirfunction

Deletes an existing empty directory.

WindowsfunctionAfxWin.incdocumented

Syntax

FUNCTION AfxRmDir (BYVAL lpPathName AS LPCWSTR) AS LONG
Also documented as AfxRemoveDirectory, AfxRemoveDir — one description covers them all.

Parameters

NameDescription
lpPathNameThe path of the directory to be removed. This path must specify an empty directory, and the calling process must have delete access to the directory. To extend the limit to 32,767 wide characters, prepend "\\\\?\\" to the path.

Description

Deletes an existing empty directory. Aliases: AfxRemoveDirectory. AfxRmDir is an unicode replacement for Free Basic's RmDir.

Reference

  • Include file AfxWin.inc
  • Defined in AfxNova/AfxWin.inc:4027
  • Documented in Windows/Windows Procedures.md
  • Topic: Windows Procedures