ReactOS
0.4.16-dev-36-g301675c
query.c
Go to the documentation of this file.
1
/*
2
* COPYRIGHT: See COPYING in the top level directory
3
* PROJECT: File Management IFS Utility functions
4
* FILE: reactos/dll/win32/fmifs/query.c
5
* PURPOSE: Query volume information
6
*
7
* PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.org)
8
*/
9
10
#include "
precomp.h
"
11
12
BOOLEAN
13
NTAPI
14
QueryAvailableFileSystemFormat
(
15
IN
DWORD
Index
,
16
IN
OUT
PWCHAR
FileSystem
,
/* FIXME: Probably one minimal size is mandatory, but which one? */
17
OUT
UCHAR
*Major,
18
OUT
UCHAR
*
Minor
,
19
OUT
BOOLEAN
*LatestVersion)
20
{
21
PLIST_ENTRY
ListEntry;
22
PIFS_PROVIDER
Provider
;
23
24
if
(!
FileSystem
|| !Major ||!
Minor
||!LatestVersion)
25
return
FALSE
;
26
27
ListEntry =
ProviderListHead
.
Flink
;
28
while
(
TRUE
)
29
{
30
if
(ListEntry == &
ProviderListHead
)
31
return
FALSE
;
32
if
(
Index
== 0)
33
break
;
34
ListEntry = ListEntry->
Flink
;
35
Index
--;
36
}
37
38
Provider
=
CONTAINING_RECORD
(ListEntry,
IFS_PROVIDER
, ListEntry);
39
wcscpy
(
FileSystem
,
Provider
->Name);
40
*Major = 0;
/* FIXME */
41
*
Minor
= 0;
/* FIXME */
42
*LatestVersion =
TRUE
;
/* FIXME */
43
44
return
TRUE
;
45
}
BOOLEAN
unsigned char BOOLEAN
Definition:
ProcessorBind.h:185
FileSystem
PWCHAR FileSystem
Definition:
format.c:72
Provider
Definition:
provider.h:10
TRUE
#define TRUE
Definition:
types.h:120
FALSE
#define FALSE
Definition:
types.h:117
ProviderListHead
LIST_ENTRY ProviderListHead
Definition:
init.c:20
QueryAvailableFileSystemFormat
BOOLEAN NTAPI QueryAvailableFileSystemFormat(IN DWORD Index, IN OUT PWCHAR FileSystem, OUT UCHAR *Major, OUT UCHAR *Minor, OUT BOOLEAN *LatestVersion)
Definition:
query.c:14
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
wcscpy
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_IFS_PROVIDER
Definition:
precomp.h:33
_LIST_ENTRY
Definition:
typedefs.h:120
_LIST_ENTRY::Flink
struct _LIST_ENTRY * Flink
Definition:
typedefs.h:121
NTAPI
#define NTAPI
Definition:
typedefs.h:36
IN
#define IN
Definition:
typedefs.h:39
PWCHAR
uint16_t * PWCHAR
Definition:
typedefs.h:56
CONTAINING_RECORD
#define CONTAINING_RECORD(address, type, field)
Definition:
typedefs.h:260
OUT
#define OUT
Definition:
typedefs.h:40
Index
_In_ WDFCOLLECTION _In_ ULONG Index
Definition:
wdfcollection.h:182
precomp.h
Minor
_Out_opt_ PULONG Minor
Definition:
cmfuncs.h:44
UCHAR
unsigned char UCHAR
Definition:
xmlstorage.h:181
dll
win32
fmifs
query.c
Generated on Mon Sep 16 2024 06:12:30 for ReactOS by
1.9.6