The MakeSureDirectoryPathExists function creates all the directories in the specified DirPath, beginning with the root.
BOOL MakeSureDirectoryPathExists(
IN LPSTR 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: Requires version 3.1 or later.
Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in imagehlp.h.
Import Library: Use imagehlp.lib.
PE Image Helper (ImageHlp) Overview, ImageHlp General Functions