Home
last modified time | relevance | path

Searched refs:FileName (Results 1 – 25 of 417) sorted by relevance

12345678910>>...17

/reactos/modules/rostests/apitests/ntdll/
H A DRtlDoesFileExists.c55 IN PCWSTR FileName,
66 IN PUNICODE_STRING FileName
76 IN PCUNICODE_STRING FileName,
88 PCWSTR FileName; in START_TEST() member
179 WCHAR FileName[MAX_PATH]; in START_TEST() local
291 swprintf(FileName, Tests[i].FileName, CustomPath); in START_TEST()
340 Success = DeleteFileW(FileName); in START_TEST()
343 Success = DeleteFileW(FileName); in START_TEST()
346 Success = DeleteFileW(FileName); in START_TEST()
350 Success = DeleteFileW(FileName); in START_TEST()
[all …]
H A DRtlGetFullPathName_UstrEx.c28 IN PUNICODE_STRING FileName,
135 PCWSTR FileName; in RunTestCases() member
213 RtlInitUnicodeString(&FileName, TestCases[i].FileName); in RunTestCases()
311 TempString = FileName; in START_TEST()
318 TempString = FileName; in START_TEST()
346 TempString = FileName; in START_TEST()
362 TempString = FileName; in START_TEST()
372 TempString = FileName; in START_TEST()
383 TempString = FileName; in START_TEST()
398 TempString = FileName; in START_TEST()
[all …]
H A DRtlGetFullPathName_Ustr.c34 IN PCUNICODE_STRING FileName,
143 PCWSTR FileName; in RunTestCases() member
182 UNICODE_STRING FileName; in RunTestCases() local
220 RtlInitUnicodeString(&FileName, TestCases[i].FileName); in RunTestCases()
320 TempString = FileName; in START_TEST()
327 TempString = FileName; in START_TEST()
358 TempString = FileName; in START_TEST()
371 TempString = FileName; in START_TEST()
384 TempString = FileName; in START_TEST()
398 TempString = FileName; in START_TEST()
[all …]
H A DRtlDetermineDosPathNameType.c38 PCWSTR FileName; in START_TEST() member
109 PWSTR FileName; in START_TEST() local
135 RtlCopyMemory(FileName, Tests[i].FileName, Length + sizeof(UNICODE_NULL)); in START_TEST()
136 MakeReadOnly(FileName, Length + sizeof(UNICODE_NULL)); in START_TEST()
138 PathType = RtlDetermineDosPathNameType_U(FileName); in START_TEST()
141 FreeGuarded(FileName); in START_TEST()
147 FileName = AllocateGuarded(Length); in START_TEST()
148 RtlCopyMemory(FileName, Tests[i].FileName, Length); in START_TEST()
149 MakeReadOnly(FileName, Length); in START_TEST()
150 PathString.Buffer = FileName; in START_TEST()
[all …]
/reactos/drivers/filesystems/ntfs/
H A Ddirctl.c78 PFILENAME_ATTRIBUTE FileName; in NtfsGetNamesInformation() local
90 if (FileName == NULL) in NtfsGetNamesInformation()
107 RtlCopyMemory(Info->FileName, FileName->Name, BytesToCopy); in NtfsGetNamesInformation()
135 PFILENAME_ATTRIBUTE FileName; in NtfsGetDirectoryInformation() local
148 if (FileName == NULL) in NtfsGetDirectoryInformation()
168 RtlCopyMemory(Info->FileName, FileName->Name, BytesToCopy); in NtfsGetDirectoryInformation()
208 PFILENAME_ATTRIBUTE FileName; in NtfsGetFullDirectoryInformation() local
221 if (FileName == NULL) in NtfsGetFullDirectoryInformation()
241 RtlCopyMemory(Info->FileName, FileName->Name, BytesToCopy); in NtfsGetFullDirectoryInformation()
295 if (FileName == NULL) in NtfsGetBothDirectoryInformation()
[all …]
H A Dfcb.c41 if (*FileName == L'\0') in NtfsGetNextPathElement()
46 while (*FileName != L'\0' && *FileName != L'\\') in NtfsGetNextPathElement()
48 FileName++; in NtfsGetNextPathElement()
51 return FileName; in NtfsGetNextPathElement()
67 NtfsCreateFCB(PCWSTR FileName, in NtfsCreateFCB() argument
89 if (FileName) in NtfsCreateFCB()
231 if (FileName == NULL || *FileName == 0) in NtfsGrabFCBFromTable()
323 PFILENAME_ATTRIBUTE FileName; in NtfsMakeRootFCB() local
338 if (!FileName) in NtfsMakeRootFCB()
406 if (!FileName) in NtfsMakeFCBFromDirEntry()
[all …]
H A Dfinfo.c103 PFILENAME_ATTRIBUTE FileName = &Fcb->Entry; in NtfsGetBasicInformation() local
112 BasicInfo->CreationTime.QuadPart = FileName->CreationTime; in NtfsGetBasicInformation()
114 BasicInfo->LastWriteTime.QuadPart = FileName->LastWriteTime; in NtfsGetBasicInformation()
115 BasicInfo->ChangeTime.QuadPart = FileName->ChangeTime; in NtfsGetBasicInformation()
203 PFILENAME_ATTRIBUTE FileName = &Fcb->Entry; in NtfsGetNetworkOpenInformation() local
210 NetworkInfo->CreationTime.QuadPart = FileName->CreationTime; in NtfsGetNetworkOpenInformation()
213 NetworkInfo->ChangeTime.QuadPart = FileName->ChangeTime; in NtfsGetNetworkOpenInformation()
578 UNICODE_STRING FileName; in NtfsSetEndOfFile() local
674 FileName.Buffer = FileNameAttribute->Name; in NtfsSetEndOfFile()
676 FileName.MaximumLength = FileName.Length; in NtfsSetEndOfFile()
[all …]
/reactos/drivers/filesystems/ext2/src/
H A Ddebug.c228 FileName = L"Unknown"; in Ext2DbgPrintCall()
232 FileName = DEVICE_NAME; in Ext2DbgPrintCall()
236 FileName = CDROM_NAME; in Ext2DbgPrintCall()
243 FileName = L"\\Volume"; in Ext2DbgPrintCall()
253 FileName = NULL; in Ext2DbgPrintCall()
256 FileName = DEVICE_NAME; in Ext2DbgPrintCall()
258 FileName = CDROM_NAME; in Ext2DbgPrintCall()
260 FileName = L"\\Volume"; in Ext2DbgPrintCall()
263 if (FileName) { in Ext2DbgPrintCall()
290 FileName in Ext2DbgPrintCall()
[all …]
H A Dcreate.c41 if (FileName == NULL) { in Ext2IsNameValid()
225 IN PUNICODE_STRING FileName, in Ext2IsSpecialSystemFile() argument
283 UNICODE_STRING FileName; in Ext2LookupFile() local
922 FileName.MaximumLength = IrpSp->FileObject->FileName.MaximumLength; in Ext2CreateFile()
923 FileName.Length = IrpSp->FileObject->FileName.Length; in Ext2CreateFile()
961 INC_MEM_COUNT(PS_FILE_NAME, FileName.Buffer, FileName.MaximumLength); in Ext2CreateFile()
963 RtlZeroMemory(FileName.Buffer, FileName.MaximumLength); in Ext2CreateFile()
964 RtlCopyMemory(FileName.Buffer, IrpSp->FileObject->FileName.Buffer, FileName.Length); in Ext2CreateFile()
1815 if (FileName.Buffer) { in Ext2CreateFile()
1816 DEC_MEM_COUNT(PS_FILE_NAME, FileName.Buffer, FileName.MaximumLength); in Ext2CreateFile()
[all …]
/reactos/drivers/filesystems/cdfs/
H A Ddirctrl.c942 PUNICODE_STRING FileName; in CdInitializeEnumeration() local
965 FileName = (PUNICODE_STRING) IrpSp->Parameters.QueryDirectory.FileName; in CdInitializeEnumeration()
966 if (FileName && FileName->Length > 0) { in CdInitializeEnumeration()
988 FileName = IrpSp->Parameters.QueryDirectory.FileName; in CdInitializeEnumeration()
997 if ((FileName == NULL) || in CdInitializeEnumeration()
998 (FileName->Buffer == NULL) || in CdInitializeEnumeration()
999 (FileName->Length == 0) || in CdInitializeEnumeration()
1019 WildCardName.FileName = *FileName; in CdInitializeEnumeration()
1066 SearchExpression.FileName.MaximumLength = FileName->Length; in CdInitializeEnumeration()
1095 SearchExpression.FileName.Length = WildCardName.FileName.Length; in CdInitializeEnumeration()
[all …]
H A Dnamesup.c38 _Post_satisfies_(_Old_(CdName->FileName.Length) >=
379 _In_ PUNICODE_STRING FileName in CdIsLegalName() argument
409 for (Wchar = FileName->Buffer; in CdIsLegalName()
410 Wchar < Add2Ptr( FileName->Buffer, FileName->Length, PWCHAR ); in CdIsLegalName()
431 _In_ UNICODE_STRING FileName in CdIs8dot3Name() argument
469 NT_ASSERT( FileName.Length != 0 ); in CdIs8dot3Name()
479 NextWchar = FileName.Buffer; in CdIs8dot3Name()
515 } while (Count < FileName.Length); in CdIs8dot3Name()
523 FileName.Length -= sizeof( WCHAR ); in CdIs8dot3Name()
552 _In_ PUNICODE_STRING FileName, in CdGenerate8dot3Name() argument
[all …]
H A Dcreate.c42 _Inout_ PUNICODE_STRING FileName,
90 _In_ PCD_NAME FileName,
231 PUNICODE_STRING FileName; in _Requires_lock_held_() local
303 FileName = &FileObject->FileName; in _Requires_lock_held_()
371 if ((FileName->Length == 0) && in _Requires_lock_held_()
1142 (FileName->Buffer[ (FileName->Length/2) - 1 ] == L'\\')) { in CdNormalizeFileNames()
1335 RemainingName->FileName.Buffer = Add2Ptr( FileName->Buffer, in CdNormalizeFileNames()
1397 RemainingName->FileName = *FileName; in CdNormalizeFileNames()
1425 RemainingName->FileName.Buffer = Add2Ptr( RemainingName->FileName.Buffer, in CdNormalizeFileNames()
1441 RemainingName->FileName.Buffer = Add2Ptr( RemainingName->FileName.Buffer, in CdNormalizeFileNames()
[all …]
H A Dprefxsup.c152 if (Name->FileName.Length > BYTE_COUNT_EMBEDDED_NAME) { in CdInsertPrefix()
169 PrefixEntry->ExactCaseName.FileName.Buffer = NameBuffer; in CdInsertPrefix()
174 PrefixEntry->IgnoreCaseName.FileName.MaximumLength = in CdInsertPrefix()
175 PrefixEntry->IgnoreCaseName.FileName.Length = in CdInsertPrefix()
176 PrefixEntry->ExactCaseName.FileName.MaximumLength = in CdInsertPrefix()
177 PrefixEntry->ExactCaseName.FileName.Length = Name->FileName.Length; in CdInsertPrefix()
190 RtlCopyMemory( NameLink->FileName.Buffer, in CdInsertPrefix()
191 Name->FileName.Buffer, in CdInsertPrefix()
192 Name->FileName.Length ); in CdInsertPrefix()
279 Fcb->FileNamePrefix.ExactCaseName.FileName.Buffer = NULL; in CdRemovePrefix()
[all …]
H A Ddirsup.c507 Dirent->FileName = (PCHAR)RawDirent->FileId; in CdUpdateDirentFromRawDirent()
581 DirectoryValue = *((PCHAR) Dirent->FileName); in CdUpdateDirentName()
707 Dirent->FileName, in CdUpdateDirentName()
712 Dirent->CdFileName.FileName.Length = (USHORT) Length; in CdUpdateDirentName()
721 Dirent->FileName, in CdUpdateDirentName()
739 if (Dirent->CdFileName.FileName.Length == 0) { in CdUpdateDirentName()
748 …if (Dirent->CdFileName.FileName.Buffer[(Dirent->CdFileName.FileName.Length - sizeof( WCHAR )) / 2]… in CdUpdateDirentName()
785 Dirent->CdFileName.FileName.Length -= sizeof( WCHAR ); in CdUpdateDirentName()
808 Dirent->CdCaseFileName.FileName.Buffer = Add2Ptr( Dirent->CdFileName.FileName.Buffer, in CdUpdateDirentName()
812 … Dirent->CdCaseFileName.FileName.MaximumLength = Dirent->CdFileName.FileName.MaximumLength / 2; in CdUpdateDirentName()
[all …]
H A Dpathsup.c840 PathEntry->CdDirName.FileName = CdUnicodeDirectoryNames[0]; in CdUpdatePathEntryName()
893 PathEntry->CdDirName.FileName.Buffer = PathEntry->NameBuffer; in CdUpdatePathEntryName()
902 if (Length > PathEntry->CdDirName.FileName.MaximumLength) { in CdUpdatePathEntryName()
910 CdFreePool( &PathEntry->CdDirName.FileName.Buffer ); in CdUpdatePathEntryName()
920 PathEntry->CdDirName.FileName.MaximumLength = (USHORT) Length; in CdUpdatePathEntryName()
931 Status = RtlOemToUnicodeN( PathEntry->CdDirName.FileName.Buffer, in CdUpdatePathEntryName()
939 PathEntry->CdDirName.FileName.Length = (USHORT) Length; in CdUpdatePathEntryName()
967 …if (PathEntry->CdDirName.FileName.Buffer[(PathEntry->CdDirName.FileName.Length - sizeof( WCHAR )) … in CdUpdatePathEntryName()
973 PathEntry->CdDirName.FileName.Length -= sizeof( WCHAR ); in CdUpdatePathEntryName()
983 PathEntry->CdCaseDirName.FileName.Buffer = Add2Ptr( PathEntry->CdDirName.FileName.Buffer, in CdUpdatePathEntryName()
[all …]
/reactos/modules/rostests/apitests/psapi/
H A Dpsapi.c106 CHAR FileName[255]; in START_TEST() local
110 Len = GetDeviceDriverFileNameA(0, FileName, 255); in START_TEST()
117 Len = GetDeviceDriverFileNameA(ModInfo.ImageBase, FileName, 255); in START_TEST()
120 ok(lstrcmpiA(ModInfo.Path, FileName) == 0, "File name: %s\n", FileName); in START_TEST()
126 FileName[ModInfo.Len] = 0; in START_TEST()
130 ok(lstrcmpiA(ModInfo.Path, FileName) == 0, "File name: %s\n", FileName); in START_TEST()
165 CHAR FileName[255]; in START_TEST() local
169 Len = GetDeviceDriverBaseNameA(0, FileName, 255); in START_TEST()
179 ok(lstrcmpiA(ModInfo.Path, FileName) == 0, "File name: %s\n", FileName); in START_TEST()
185 FileName[ModInfo.Len] = 0; in START_TEST()
[all …]
/reactos/modules/rostests/kmtests/kernel32/
H A DFileAttributes_user.c32 Ret = SetFileAttributesW(FileName, FILE_ATTRIBUTE_NORMAL); in START_TEST()
37 Ret = SetFileAttributesW(FileName, 0); in START_TEST()
47 Attributes = GetFileAttributesW(FileName); in START_TEST()
52 Attributes = GetFileAttributesW(FileName); in START_TEST()
57 Attributes = GetFileAttributesW(FileName); in START_TEST()
62 Attributes = GetFileAttributesW(FileName); in START_TEST()
67 Attributes = GetFileAttributesW(FileName); in START_TEST()
88 Attributes = GetFileAttributesW(FileName); in START_TEST()
93 Attributes = GetFileAttributesW(FileName); in START_TEST()
98 Attributes = GetFileAttributesW(FileName); in START_TEST()
[all …]
/reactos/boot/freeldr/freeldr/
H A Dmiscboot.c44 PCSTR FileName; in LoadAndBootSector() local
103 FileName = NULL; in LoadAndBootSector()
105 (FileName && *FileName)) in LoadAndBootSector()
119 FileName = NULL; in LoadAndBootSector()
136 FileName = GetArgumentValue(Argc, Argv, "BootSectorFile"); in LoadAndBootSector()
137 if (FileName && !*FileName) in LoadAndBootSector()
138 FileName = NULL; in LoadAndBootSector()
144 if (FileName) in LoadAndBootSector()
154 if (FileName) in LoadAndBootSector()
160 UiMessageBox("Unable to open %s", FileName ? FileName : BootPath); in LoadAndBootSector()
[all …]
/reactos/dll/win32/advapi32/misc/
H A Defs.c34 UNICODE_STRING FileName; in DecryptFileA() local
45 if (FileName.Buffer != NULL) in DecryptFileA()
46 RtlFreeUnicodeString(&FileName); in DecryptFileA()
69 UNICODE_STRING FileName; in EncryptFileA() local
78 ret = EncryptFileW(FileName.Buffer); in EncryptFileA()
80 if (FileName.Buffer != NULL) in EncryptFileA()
81 RtlFreeUnicodeString(&FileName); in EncryptFileA()
117 UNICODE_STRING FileName; in FileEncryptionStatusA() local
122 FileName.Buffer = NULL; in FileEncryptionStatusA()
133 if (FileName.Buffer != NULL) in FileEncryptionStatusA()
[all …]
/reactos/modules/rosapps/drivers/vfd/
H A Dvfdimg.c129 &DeviceExtension->FileName, in VfdOpenImage()
145 DeviceExtension->FileName.Buffer, in VfdOpenImage()
151 DeviceExtension->FileName.Buffer, in VfdOpenImage()
152 ImageInfo->FileName, in VfdOpenImage()
446 DeviceExtension->FileName.Length = 0; in VfdCloseImage()
509 DeviceExtension->FileName.Length) in VfdQueryImage()
518 DeviceExtension->FileName.Buffer) { in VfdQueryImage()
520 RtlCopyMemory(ImageInfo->FileName, in VfdQueryImage()
521 DeviceExtension->FileName.Buffer, in VfdQueryImage()
522 DeviceExtension->FileName.Length); in VfdQueryImage()
[all …]
/reactos/modules/rostests/apitests/kernel32/
H A DGetModuleFileName.c18 PWSTR FileName; in StartChild() local
34 FileName = wcsrchr(Path, '\\'); in StartChild()
36 if (Slash && (!FileName || Slash > FileName)) in StartChild()
37 FileName = Slash; in StartChild()
39 if (FileName) in StartChild()
42 FileName++; in StartChild()
43 FileName[-1] = L'\0'; in StartChild()
48 trace("Starting '%ls' in path '%ls'\n", FileName, Path); in StartChild()
52 FileName = Path; in StartChild()
53 trace("Starting '%ls', which is already relative\n", FileName); in StartChild()
[all …]
/reactos/base/system/smss/
H A Dsmss.c30 SmpExecuteImage(IN PUNICODE_STRING FileName, in SmpExecuteImage() argument
63 FileName, Status); in SmpExecuteImage()
92 Status = RtlCreateUserProcess(FileName, in SmpExecuteImage()
107 FileName, Status); in SmpExecuteImage()
170 FileName); in SmpInvokeAutoChk()
193 SmpExecuteImage(FileName, in SmpInvokeAutoChk()
224 &FileName, in SmpExecuteCommand()
268 if (FileName.Buffer) RtlFreeHeap(RtlGetProcessHeap(), 0, FileName.Buffer); in SmpExecuteCommand()
315 if (FileName.Buffer) RtlFreeHeap(RtlGetProcessHeap(), 0, FileName.Buffer); in SmpExecuteInitialCommand()
328 Status = SmpExecuteImage(&FileName, in SmpExecuteInitialCommand()
[all …]
/reactos/modules/rostests/apitests/shell32/
H A DExtractIconEx.cpp18 BOOL FileExists(LPCSTR FileName) in FileExists() argument
23 fp = fopen(FileName, "r"); in FileExists()
32 BOOL ResourceToFile(INT i, LPCSTR FileName) in ResourceToFile() argument
40 if (FileExists(FileName)) in ResourceToFile()
42 skip("'%s' already exists. Exiting now\n", FileName); in ResourceToFile()
70 fout = fopen(FileName, "wb"); in ResourceToFile()
101 CHAR FileName[2][13] = { "ROS.ico", "sysicon.ico" }; in START_TEST() local
103 if (!ResourceToFile(2, FileName[0])) in START_TEST()
105 if (!ResourceToFile(3, FileName[1])) in START_TEST()
122 DeleteFileA(FileName[0]); in START_TEST()
[all …]
/reactos/ntoskrnl/config/
H A Dcmlazy.c283 UNICODE_STRING FileName; in CmpCmdHiveOpen() local
357 if (!FileName.Buffer) in CmpCmdHiveOpen()
364 FileName.MaximumLength = Length; in CmpCmdHiveOpen()
373FileName.Length > 0 && FileName.Buffer[FileName.Length / sizeof(WCHAR) - 1] != OBJ_NAME_PATH_SEPAR… in CmpCmdHiveOpen()
376 FileName.Buffer[FileName.Length / sizeof(WCHAR)] = OBJ_NAME_PATH_SEPARATOR; in CmpCmdHiveOpen()
377 FileName.Length += sizeof(WCHAR); in CmpCmdHiveOpen()
378 FileName.Buffer[FileName.Length / sizeof(WCHAR)] = UNICODE_NULL; in CmpCmdHiveOpen()
393 FileName = *FileAttributes->ObjectName; in CmpCmdHiveOpen()
397 Status = CmpInitHiveFromFile(&FileName, in CmpCmdHiveOpen()
415 Status = CmpInitHiveFromFile(&FileName, in CmpCmdHiveOpen()
[all …]
/reactos/sdk/tools/mkhive/
H A Dmkhive.c102 CHAR FileName[PATH_MAX]; in main() local
167 convert_path(FileName, argv[i]); in main()
168 if (!ImportRegistryFile(FileName)) in main()
178 strcpy(FileName, DestPath); in main()
179 strcat(FileName, DIR_SEPARATOR_STRING); in main()
181 ptr = FileName + strlen(FileName); in main()
183 strcat(FileName, RegistryHives[i].HiveName); in main()
188 strcat(FileName, ".HIV"); in main()
202 if (!ExportBinaryHive(FileName, RegistryHives[i].CmHive)) in main()

12345678910>>...17