mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +00:00
Declare prototype for ChkdskEx function in u{FS}.dll
svn path=/trunk/; revision=23960
This commit is contained in:
parent
3387c46e16
commit
eb50899ee0
6 changed files with 25 additions and 19 deletions
|
@ -15,9 +15,9 @@
|
|||
#include <stdio.h>
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windows.h>
|
||||
#include <fmifs/fmifs.h>
|
||||
#define NTOS_MODE_USER
|
||||
#include <ndk/ntndk.h>
|
||||
#include <fmifs/fmifs.h>
|
||||
|
||||
/* DEFINES ******************************************************************/
|
||||
|
||||
|
|
|
@ -58,12 +58,9 @@ AddProvider(
|
|||
RtlZeroMemory(Provider, RequiredSize);
|
||||
|
||||
/* Get function pointers */
|
||||
//Provider->Chkdsk = (CHKDSK)GetProcAddress(hMod, "Chkdsk");
|
||||
//Provider->ChkdskEx = (CHKDSKEX)GetProcAddress(hMod, "ChkdskEx");
|
||||
Provider->ChkdskEx = (CHKDSKEX)GetProcAddress(hMod, "ChkdskEx");
|
||||
//Provider->Extend = (EXTEND)GetProcAddress(hMod, "Extend");
|
||||
//Provider->Format = (FORMAT)GetProcAddress(hMod, "Format");
|
||||
Provider->FormatEx = (FORMATEX)GetProcAddress(hMod, "FormatEx");
|
||||
//Provider->Recover = (RECOVER)GetProcAddress(hMod, "Recover");
|
||||
|
||||
wcscpy(Provider->Name, FileSystem);
|
||||
|
||||
|
|
|
@ -25,26 +25,15 @@
|
|||
/* VFATLIB Public Header */
|
||||
#include <fslib/vfatlib.h>
|
||||
|
||||
typedef NTSTATUS (NTAPI *FORMATEX)(
|
||||
IN PUNICODE_STRING DriveRoot,
|
||||
IN FMIFS_MEDIA_FLAG MediaFlag,
|
||||
IN PUNICODE_STRING Label,
|
||||
IN BOOLEAN QuickFormat,
|
||||
IN ULONG ClusterSize,
|
||||
IN PFMIFSCALLBACK Callback);
|
||||
|
||||
extern LIST_ENTRY ProviderListHead;
|
||||
|
||||
typedef struct _IFS_PROVIDER
|
||||
{
|
||||
LIST_ENTRY ListEntry;
|
||||
|
||||
PVOID Chkdsk;
|
||||
PVOID ChkdskEx;
|
||||
CHKDSKEX ChkdskEx;
|
||||
PVOID Extend;
|
||||
PVOID Format;
|
||||
FORMATEX FormatEx;
|
||||
PVOID Recover;
|
||||
|
||||
WCHAR Name[1];
|
||||
} IFS_PROVIDER, *PIFS_PROVIDER;
|
||||
|
|
|
@ -164,4 +164,24 @@ QuerySupportedMedia(
|
|||
ULONG Unknown3,
|
||||
ULONG Unknown4);*/
|
||||
|
||||
/* Functions provided by u*.dll */
|
||||
|
||||
typedef NTSTATUS
|
||||
(NTAPI *FORMATEX)(
|
||||
IN PUNICODE_STRING DriveRoot,
|
||||
IN FMIFS_MEDIA_FLAG MediaFlag,
|
||||
IN PUNICODE_STRING Label,
|
||||
IN BOOLEAN QuickFormat,
|
||||
IN ULONG ClusterSize,
|
||||
IN PFMIFSCALLBACK Callback);
|
||||
|
||||
typedef NTSTATUS
|
||||
(NTAPI *CHKDSKEX)(
|
||||
IN PUNICODE_STRING DriveRoot,
|
||||
IN BOOLEAN FixErrors,
|
||||
IN BOOLEAN Verbose,
|
||||
IN BOOLEAN CheckOnlyIfDirty,
|
||||
IN BOOLEAN ScanDrive,
|
||||
IN PFMIFSCALLBACK Callback);
|
||||
|
||||
#endif /* ndef _FMIFS_H */
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windows.h>
|
||||
#include <fmifs/fmifs.h>
|
||||
#define NTOS_MODE_USER
|
||||
#include <ndk/ntndk.h>
|
||||
#include <fmifs/fmifs.h>
|
||||
|
||||
#define SECTORSIZE 512
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
*/
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windows.h>
|
||||
#include <fmifs/fmifs.h>
|
||||
#define NTOS_MODE_USER
|
||||
#include <ndk/ntndk.h>
|
||||
#include <fmifs/fmifs.h>
|
||||
|
||||
typedef struct _FATX_BOOT_SECTOR
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue