Declare prototype for ChkdskEx function in u{FS}.dll

svn path=/trunk/; revision=23960
This commit is contained in:
Hervé Poussineau 2006-09-07 17:39:42 +00:00
parent 3387c46e16
commit eb50899ee0
6 changed files with 25 additions and 19 deletions

View file

@ -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 ******************************************************************/

View file

@ -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);

View file

@ -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;

View file

@ -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 */

View file

@ -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

View file

@ -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
{