INtime SDK Help
RemoveDirectory (iwin32)
INtime SDK v6 > About INtime > Alternate APIs > iwin32 API > iwin32 API > RemoveDirectory (iwin32)

Deletes an existing empty directory.

BOOLEAN RemoveDirectory(
    LPCTSTR lpPathName
);

Parameters

lpPathName
Pointer to a null-terminated string that specifies the path of the directory to remove. The path must specify an empty directory.

Remarks

A bad path results in ERROR_FILE_NOT_FOUND instead of ERROR_PATH_NOT_FOUND.

RemoveDirectory operates only on empty directories. If the directory is not empty, an application must first recursively enumerate and delete the files and subdirectories inside the directory.

Return Values

Non-zero
Success.
0 (zero)
Failure. For extended error information, see GetLastError.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/winbase.h windows.h iwin32.lib

Note

This function operates in the real-time portion of your application.

See Also

CreateDirectory, DeleteFile, iwin32 API, iwin32 Overview