[NTOS:IO] Reformat iorsrce.c, no functional code changes.

- Fix whitespace; add SAL annotations, doxygen documentation...

- Deduplicate the array of description strings corresponding to
  IO_QUERY_DEVICE_DATA_FORMAT.

- Unhardcode the "[3]" into 'IoQueryDeviceMaxData': the maximum number
  of device data queried.
This commit is contained in:
Hermès Bélusca-Maïto 2023-05-27 22:48:50 +02:00
parent 509359b3ec
commit 2674e26cbb
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
3 changed files with 920 additions and 805 deletions

View file

@ -1330,17 +1330,17 @@ IopStartRamdisk(
// Configuration Routines // Configuration Routines
// //
NTSTATUS NTSTATUS
NTAPI IopFetchConfigurationInformation(
IopFetchConfigurationInformation(OUT PWSTR * SymbolicLinkList, _Out_ PWSTR* SymbolicLinkList,
IN GUID Guid, _In_ GUID Guid,
IN ULONG ExpectedInterfaces, _In_ ULONG ExpectedInterfaces,
IN PULONG Interfaces _Out_ PULONG Interfaces
); );
VOID VOID
NTAPI IopStoreSystemPartitionInformation(
IopStoreSystemPartitionInformation(IN PUNICODE_STRING NtSystemPartitionDeviceName, _In_ PUNICODE_STRING NtSystemPartitionDeviceName,
IN PUNICODE_STRING OsLoaderPathName _In_ PUNICODE_STRING OsLoaderPathName
); );
// //

File diff suppressed because it is too large Load diff

View file

@ -1492,7 +1492,7 @@ IoQueryDeviceDescription(
_In_opt_ PCONFIGURATION_TYPE PeripheralType, _In_opt_ PCONFIGURATION_TYPE PeripheralType,
_In_opt_ PULONG PeripheralNumber, _In_opt_ PULONG PeripheralNumber,
_In_ PIO_QUERY_DEVICE_ROUTINE CalloutRoutine, _In_ PIO_QUERY_DEVICE_ROUTINE CalloutRoutine,
_Inout_opt_ PVOID Context); _In_opt_ PVOID Context);
_IRQL_requires_max_(APC_LEVEL) _IRQL_requires_max_(APC_LEVEL)
NTKERNELAPI NTKERNELAPI