Skip to content

Latest commit

 

History

History
84 lines (68 loc) · 2.67 KB

nf-dbghelp-makesuredirectorypathexists.md

File metadata and controls

84 lines (68 loc) · 2.67 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:dbghelp.MakeSureDirectoryPathExists
MakeSureDirectoryPathExists function (dbghelp.h)
Creates all the directories in the specified path, beginning with the root.
MakeSureDirectoryPathExists
MakeSureDirectoryPathExists function
_win32_makesuredirectorypathexists
base.makesuredirectorypathexists
dbghelp/MakeSureDirectoryPathExists
base\makesuredirectorypathexists.htm
Debug
2be9a53a-306a-4b89-a813-0491e8a6e794
12/05/2018
MakeSureDirectoryPathExists, MakeSureDirectoryPathExists function, _win32_makesuredirectorypathexists, base.makesuredirectorypathexists, dbghelp/MakeSureDirectoryPathExists
dbghelp.h
Windows
Dbghelp.lib
Dbghelp.dll
Windows
DbgHelp.dll 5.1 or later
19H1
MakeSureDirectoryPathExists
dbghelp/MakeSureDirectoryPathExists
c++
APIRef
kbSyntax
DllExport
Dbghelp.dll
imagehlp.dll
MakeSureDirectoryPathExists

MakeSureDirectoryPathExists function

-description

Creates all the directories in the specified path, beginning with the root.

-parameters

-param DirPath [in]

A valid path name. If the final component of the path is a directory, not a file name, the string must end with a backslash (\) character.

-returns

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.

-remarks

Each directory specified is created, if it does not already exist. If only some of the directories are created, the function will return FALSE.

This function does not support Unicode strings. To specify a Unicode path, use the SHCreateDirectoryEx function.

All DbgHelp functions, such as this one, are single threaded. Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. To avoid this, you must synchronize all concurrent calls from more than one thread to this function.

-see-also

DbgHelp Functions