Go to the source code of this file.
|
BOOLEAN | DissectArcPath (IN PCSTR ArcPath, OUT PCSTR *Path OPTIONAL, OUT PUCHAR DriveNumber, OUT PULONG PartitionNumber) |
|
BOOLEAN | DissectArcPath2 (IN PCSTR ArcPath, OUT PULONG x, OUT PULONG y, OUT PULONG z, OUT PULONG Partition, OUT PULONG PathSyntax) |
|
VOID | ConstructArcPath (PCHAR ArcPath, PCHAR SystemFolder, UCHAR Disk, ULONG Partition) |
|
◆ ConstructArcPath()
Definition at line 175 of file arcname.c.
179 strcpy(ArcPath,
"multi(0)disk(0)");
187 sprintf(tmp,
"fdisk(%d)", (
int) Disk);
196 sprintf(tmp,
"rdisk(%d)partition(%d)", (
int) (Disk - 0x80), (
int) Partition);
char * strcat(char *DstString, const char *SrcString)
#define sprintf(buf, format,...)
char * strcpy(char *DstString, const char *SrcString)
Referenced by EditCustomBootReactOS().
◆ DissectArcPath()
Definition at line 25 of file arcname.c.
34 if (
_strnicmp(ArcPath,
"ramdisk(0)", 10) == 0)
48 if (
_strnicmp(ArcPath,
"multi(0)disk(0)", 15) != 0)
59 *DriveNumber =
atoi(
p);
73 *DriveNumber =
atoi(
p) + 0x80;
87 *DriveNumber =
atoi(
p) + 0x80;
_In_ ULONG _In_ ULONG PartitionNumber
#define _strnicmp(_String1, _String2, _MaxCount)
PRTL_UNICODE_STRING_BUFFER Path
char * strchr(const char *String, int ch)
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
Referenced by DiskOpen().
◆ DissectArcPath2()
Definition at line 121 of file arcname.c.
130 if (
_strnicmp(ArcPath,
"ramdisk(0)", 10) == 0)
138 else if (
sscanf(ArcPath,
"scsi(%lu)disk(%lu)rdisk(%lu)partition(%lu)",
x,
y,
z, Partition) == 4)
144 else if (
sscanf(ArcPath,
"scsi(%lu)cdrom(%lu)fdisk(%lu)",
x,
y,
z) == 3)
151 else if (
sscanf(ArcPath,
"multi(%lu)disk(%lu)rdisk(%lu)partition(%lu)",
x,
y,
z, Partition) == 4)
157 else if (
sscanf(ArcPath,
"multi(%lu)disk(%lu)cdrom(%lu)",
x,
y,
z) == 3)
164 else if (
sscanf(ArcPath,
"multi(%lu)disk(%lu)fdisk(%lu)",
x,
y,
z) == 3)
GLint GLint GLint GLint GLint x
_Check_return_ _CRTIMP int __cdecl sscanf(_In_z_ const char *_Src, _In_z_ _Scanf_format_string_ const char *_Format,...)
#define _strnicmp(_String1, _String2, _MaxCount)
GLint GLint GLint GLint GLint GLint y
Referenced by DiskOpen().