svn path=/branches/setup_improvements/; revision=75636
IN HANDLE RootDirectory OPTIONAL,
IN PCWSTR PathName,
IN BOOLEAN IsDirectory)
IN HANDLE RootDirectory OPTIONAL,
IN PCWSTR PathName,
IN BOOLEAN IsDirectory)
IN /* PCWSTR */ ...);
BOOLEAN
IN /* PCWSTR */ ...);
BOOLEAN
IN HANDLE RootDirectory OPTIONAL,
IN PCWSTR PathName,
IN BOOLEAN IsDirectory);
IN HANDLE RootDirectory OPTIONAL,
IN PCWSTR PathName,
IN BOOLEAN IsDirectory);
-#define DoesPathExist(RootDirectory, PathName) \
- DoesPathExistEx((RootDirectory), (PathName), TRUE)
+#define DoesDirExist(RootDirectory, DirName) \
+ DoesPathExist((RootDirectory), (DirName), TRUE)
#define DoesFileExist(RootDirectory, FileName) \
#define DoesFileExist(RootDirectory, FileName) \
- DoesPathExistEx((RootDirectory), (FileName), FALSE)
+ DoesPathExist((RootDirectory), (FileName), FALSE)
// FIXME: DEPRECATED! HACKish function that needs to be deprecated!
BOOLEAN
// FIXME: DEPRECATED! HACKish function that needs to be deprecated!
BOOLEAN
/* Check for the existence of \SystemRoot\System32 */
PathName = L"System32\\";
/* Check for the existence of \SystemRoot\System32 */
PathName = L"System32\\";
- if (!DoesPathExist(SystemRootDirectory, PathName))
+ if (!DoesDirExist(SystemRootDirectory, PathName))
{
// DPRINT1("Failed to open directory '%S', Status 0x%08lx\n", PathName, Status);
return FALSE;
{
// DPRINT1("Failed to open directory '%S', Status 0x%08lx\n", PathName, Status);
return FALSE;
/* Check for the existence of \SystemRoot\System32\drivers */
PathName = L"System32\\drivers\\";
/* Check for the existence of \SystemRoot\System32\drivers */
PathName = L"System32\\drivers\\";
- if (!DoesPathExist(SystemRootDirectory, PathName))
+ if (!DoesDirExist(SystemRootDirectory, PathName))
{
// DPRINT1("Failed to open directory '%S', Status 0x%08lx\n", PathName, Status);
return FALSE;
{
// DPRINT1("Failed to open directory '%S', Status 0x%08lx\n", PathName, Status);
return FALSE;
/* Check for the existence of \SystemRoot\System32\config */
PathName = L"System32\\config\\";
/* Check for the existence of \SystemRoot\System32\config */
PathName = L"System32\\config\\";
- if (!DoesPathExist(SystemRootDirectory, PathName))
+ if (!DoesDirExist(SystemRootDirectory, PathName))
{
// DPRINT1("Failed to open directory '%S', Status 0x%08lx\n", PathName, Status);
return FALSE;
{
// DPRINT1("Failed to open directory '%S', Status 0x%08lx\n", PathName, Status);
return FALSE;
*Ptr = 0;
DPRINT("PathBuffer: %S\n", PathBuffer);
*Ptr = 0;
DPRINT("PathBuffer: %S\n", PathBuffer);
- if (!DoesPathExist(NULL, PathBuffer))
+ if (!DoesDirExist(NULL, PathBuffer))
{
DPRINT("Create: %S\n", PathBuffer);
Status = SetupCreateSingleDirectory(PathBuffer);
{
DPRINT("Create: %S\n", PathBuffer);
Status = SetupCreateSingleDirectory(PathBuffer);
- if (!DoesPathExist(NULL, PathBuffer))
+ if (!DoesDirExist(NULL, PathBuffer))
{
DPRINT("Create: %S\n", PathBuffer);
Status = SetupCreateSingleDirectory(PathBuffer);
{
DPRINT("Create: %S\n", PathBuffer);
Status = SetupCreateSingleDirectory(PathBuffer);
}
else if (Ir->Event.KeyEvent.uChar.AsciiChar == 0x0D) /* ENTER */
{
}
else if (Ir->Event.KeyEvent.uChar.AsciiChar == 0x0D) /* ENTER */
{
- if (DoesPathExist(NULL, L"\\Device\\Floppy0\\") == FALSE)
+ if (DoesDirExist(NULL, L"\\Device\\Floppy0\\") == FALSE)
{
MUIDisplayError(ERROR_NO_FLOPPY, Ir, POPUP_WAIT_ENTER);
return BOOT_LOADER_FLOPPY_PAGE;
{
MUIDisplayError(ERROR_NO_FLOPPY, Ir, POPUP_WAIT_ENTER);
return BOOT_LOADER_FLOPPY_PAGE;