Platform SDK: Debugging and Error Handling |
The MakeSureDirectoryPathExists function creates all the directories in the specified DirPath, beginning with the root.
BOOL MakeSureDirectoryPathExists( PCSTR DirPath );
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE. To retrieve extended error information, call GetLastError.
Each directory specified is created, if it does not already exist. If only some of the directories are created, the function will return FALSE.
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in Dbghelp.h.
Library: Use Dbghelp.lib.