ReactOS  0.4.13-dev-242-g611e6d7
query.c File Reference
#include "precomp.h"
Include dependency graph for query.c:

Go to the source code of this file.

Functions

BOOLEAN NTAPI QueryAvailableFileSystemFormat (IN DWORD Index, IN OUT PWCHAR FileSystem, OUT UCHAR *Major, OUT UCHAR *Minor, OUT BOOLEAN *LatestVersion)
 

Function Documentation

◆ QueryAvailableFileSystemFormat()

BOOLEAN NTAPI QueryAvailableFileSystemFormat ( IN DWORD  Index,
IN OUT PWCHAR  FileSystem,
OUT UCHAR Major,
OUT UCHAR Minor,
OUT BOOLEAN LatestVersion 
)

Definition at line 14 of file query.c.

20 {
21  PLIST_ENTRY ListEntry;
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 }
_Out_opt_ PULONG Minor
Definition: cmfuncs.h:44
#define TRUE
Definition: types.h:120
PWCHAR FileSystem
Definition: format.c:72
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560
struct _LIST_ENTRY * Flink
Definition: typedefs.h:119
static const UCHAR Index[8]
Definition: usbohci.c:18
LIST_ENTRY ProviderListHead
Definition: init.c:20
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
Definition: typedefs.h:117

Referenced by InitializeFormatDriveDlg(), and Usage().