reactos/dll/win32/fmifs/query.c
Amine Khaldi 527f2f9057 [SHELL/EXPERIMENTS]
* Create a branch for some evul shell experiments.

svn path=/branches/shell-experiments/; revision=61927
2014-02-02 19:37:27 +00:00

44 lines
1 KiB
C

/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: File Management IFS Utility functions
* FILE: reactos/dll/win32/fmifs/query.c
* PURPOSE: Query volume information
*
* PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.org)
*/
#include "precomp.h"
BOOLEAN NTAPI
QueryAvailableFileSystemFormat(
IN DWORD Index,
IN OUT PWCHAR FileSystem, /* FIXME: Probably one minimal size is mandatory, but which one? */
OUT UCHAR* Major,
OUT UCHAR* Minor,
OUT BOOLEAN* LatestVersion)
{
PLIST_ENTRY ListEntry;
PIFS_PROVIDER Provider;
if (!FileSystem || !Major ||!Minor ||!LatestVersion)
return FALSE;
ListEntry = ProviderListHead.Flink;
while (TRUE)
{
if (ListEntry == &ProviderListHead)
return FALSE;
if (Index == 0)
break;
ListEntry = ListEntry->Flink;
Index--;
}
Provider = CONTAINING_RECORD(ListEntry, IFS_PROVIDER, ListEntry);
wcscpy(FileSystem, Provider->Name);
*Major = 0; /* FIXME */
*Minor = 0; /* FIXME */
*LatestVersion = TRUE; /* FIXME */
return TRUE;
}