2003-08-09 16:32:26 +00:00
|
|
|
/*
|
|
|
|
* ReactOS kernel
|
|
|
|
* Copyright (C) 2003 ReactOS Team
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
2009-10-27 10:34:16 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2003-08-09 16:32:26 +00:00
|
|
|
*/
|
2006-11-10 21:00:24 +00:00
|
|
|
/* COPYRIGHT: See COPYING in the top level directory
|
2003-08-09 16:32:26 +00:00
|
|
|
* PROJECT: ReactOS text-mode setup
|
|
|
|
* FILE: subsys/system/usetup/fslist.h
|
|
|
|
* PURPOSE: Filesystem list functions
|
|
|
|
* PROGRAMMER: Eric Kohl
|
|
|
|
* Casper S. Hornstrup (chorns@users.sourceforge.net)
|
|
|
|
*/
|
|
|
|
|
2010-02-26 11:43:19 +00:00
|
|
|
#pragma once
|
2003-08-09 16:32:26 +00:00
|
|
|
|
2006-11-10 21:00:24 +00:00
|
|
|
#include <fmifs/fmifs.h>
|
|
|
|
|
2006-09-07 22:42:28 +00:00
|
|
|
typedef struct _FILE_SYSTEM_ITEM
|
2003-08-09 16:32:26 +00:00
|
|
|
{
|
2006-11-10 21:00:24 +00:00
|
|
|
LIST_ENTRY ListEntry;
|
|
|
|
LPCWSTR FileSystem; /* Not owned by the item */
|
|
|
|
FORMATEX FormatFunc;
|
|
|
|
CHKDSKEX ChkdskFunc;
|
|
|
|
BOOLEAN QuickFormat;
|
2006-09-07 22:42:28 +00:00
|
|
|
} FILE_SYSTEM_ITEM, *PFILE_SYSTEM_ITEM;
|
2003-08-09 16:32:26 +00:00
|
|
|
|
|
|
|
typedef struct _FILE_SYSTEM_LIST
|
|
|
|
{
|
2006-11-10 21:00:24 +00:00
|
|
|
SHORT Left;
|
|
|
|
SHORT Top;
|
|
|
|
PFILE_SYSTEM_ITEM Selected;
|
|
|
|
LIST_ENTRY ListHead; /* List of FILE_SYSTEM_ITEM */
|
2003-08-09 16:32:26 +00:00
|
|
|
} FILE_SYSTEM_LIST, *PFILE_SYSTEM_LIST;
|
|
|
|
|
2006-11-10 21:00:24 +00:00
|
|
|
VOID
|
|
|
|
FS_AddProvider(
|
|
|
|
IN OUT PFILE_SYSTEM_LIST List,
|
|
|
|
IN LPCWSTR FileSystem,
|
|
|
|
IN FORMATEX FormatFunc,
|
|
|
|
IN CHKDSKEX ChkdskFunc);
|
2003-08-09 16:32:26 +00:00
|
|
|
|
|
|
|
PFILE_SYSTEM_LIST
|
2006-09-07 20:15:45 +00:00
|
|
|
CreateFileSystemList(
|
2006-11-10 21:00:24 +00:00
|
|
|
IN SHORT Left,
|
|
|
|
IN SHORT Top,
|
|
|
|
IN BOOLEAN ForceFormat,
|
|
|
|
IN LPCWSTR ForceFileSystem);
|
2003-08-09 16:32:26 +00:00
|
|
|
|
|
|
|
VOID
|
2006-09-07 20:15:45 +00:00
|
|
|
DestroyFileSystemList(
|
|
|
|
IN PFILE_SYSTEM_LIST List);
|
2003-08-09 16:32:26 +00:00
|
|
|
|
|
|
|
VOID
|
2006-09-07 20:15:45 +00:00
|
|
|
DrawFileSystemList(
|
|
|
|
IN PFILE_SYSTEM_LIST List);
|
2003-08-09 16:32:26 +00:00
|
|
|
|
|
|
|
VOID
|
2006-09-07 20:15:45 +00:00
|
|
|
ScrollDownFileSystemList(
|
|
|
|
IN PFILE_SYSTEM_LIST List);
|
2003-08-09 16:32:26 +00:00
|
|
|
|
|
|
|
VOID
|
2006-09-07 20:15:45 +00:00
|
|
|
ScrollUpFileSystemList(
|
|
|
|
IN PFILE_SYSTEM_LIST List);
|
2003-08-09 16:32:26 +00:00
|
|
|
|
|
|
|
/* EOF */
|