分享一个NB函数,有了它就不需要递归调用CreateDirectory创建多级目录了。相比于SHCreateDirectoryEx创建多级目录,好处不言自明。
BOOL IMAGEAPI MakeSureDirectoryPathExists( PCSTR DirPath );
https://docs.microsoft.com/en-us/windows/win32/api/dbghelp/nf-dbghelp-makesuredirectorypathexists
由
·
分享一个NB函数,有了它就不需要递归调用CreateDirectory创建多级目录了。相比于SHCreateDirectoryEx创建多级目录,好处不言自明。
BOOL IMAGEAPI MakeSureDirectoryPathExists( PCSTR DirPath );
https://docs.microsoft.com/en-us/windows/win32/api/dbghelp/nf-dbghelp-makesuredirectorypathexists
发表回复