mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 00:54:40 +00:00
File Manage{r|ment} IFS Utility
Do-nothing implementation for coming ReactOS sysutils. svn path=/trunk/; revision=458
This commit is contained in:
parent
603bb75198
commit
7e62c34fdd
13 changed files with 497 additions and 0 deletions
52
reactos/lib/fmifs/chkdsk.c
Normal file
52
reactos/lib/fmifs/chkdsk.c
Normal file
|
@ -0,0 +1,52 @@
|
|||
/* $Id: chkdsk.c,v 1.1 1999/05/11 21:19:41 ea Exp $
|
||||
*
|
||||
* COPYING: See the top level directory
|
||||
* PROJECT: ReactOS
|
||||
* FILE: reactos/lib/fmifs/chkdsk.c
|
||||
* DESCRIPTION: File management IFS utility functions
|
||||
* PROGRAMMER: Emanuele Aliberti
|
||||
* UPDATED
|
||||
* 1999-02-16 (Emanuele Aliberti)
|
||||
* Entry points added.
|
||||
*/
|
||||
#define UNICODE
|
||||
#define _UNICODE
|
||||
#include <windows.h>
|
||||
#include <fmifs.h>
|
||||
|
||||
|
||||
/* FMIFS.1 */
|
||||
VOID
|
||||
__stdcall
|
||||
Chkdsk(
|
||||
PWCHAR DriveRoot,
|
||||
PWCHAR Format,
|
||||
BOOL CorrectErrors,
|
||||
BOOL Verbose,
|
||||
BOOL CheckOnlyIfDirty,
|
||||
BOOL ScanDrive,
|
||||
PVOID Unused2,
|
||||
PVOID Unused3,
|
||||
PFMIFSCALLBACK Callback
|
||||
)
|
||||
{
|
||||
BOOL Argument = FALSE;
|
||||
|
||||
/* FAIL immediately */
|
||||
Callback(
|
||||
DONE, /* Command */
|
||||
0, /* DWORD Modifier */
|
||||
& Argument /* Argument */
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/* FMIFS.2 (SP4 only?) */
|
||||
VOID
|
||||
__stdcall
|
||||
ChkdskEx(VOID)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/* EOF */
|
30
reactos/lib/fmifs/compress.c
Normal file
30
reactos/lib/fmifs/compress.c
Normal file
|
@ -0,0 +1,30 @@
|
|||
/* $Id: compress.c,v 1.1 1999/05/11 21:19:41 ea Exp $
|
||||
*
|
||||
* COPYING: See the top level directory
|
||||
* PROJECT: ReactOS
|
||||
* FILE: reactos/lib/fmifs/compress.c
|
||||
* DESCRIPTION: File management IFS utility functions
|
||||
* PROGRAMMER: Emanuele Aliberti
|
||||
* UPDATED
|
||||
* 1999-02-16 (Emanuele Aliberti)
|
||||
* Entry points added.
|
||||
*/
|
||||
#define UNICODE
|
||||
#define _UNICODE
|
||||
#include <windows.h>
|
||||
#include <fmifs.h>
|
||||
|
||||
|
||||
/* FMIFS.4 */
|
||||
BOOL
|
||||
__stdcall
|
||||
EnableVolumeCompression(
|
||||
PWCHAR DriveRoot,
|
||||
BOOL Enable
|
||||
)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
/* EOF */
|
25
reactos/lib/fmifs/diskcopy.c
Normal file
25
reactos/lib/fmifs/diskcopy.c
Normal file
|
@ -0,0 +1,25 @@
|
|||
/* $Id: diskcopy.c,v 1.1 1999/05/11 21:19:41 ea Exp $
|
||||
*
|
||||
* COPYING: See the top level directory
|
||||
* PROJECT: ReactOS
|
||||
* FILE: reactos/lib/fmifs/diskcopy.c
|
||||
* DESCRIPTION: File management IFS utility functions
|
||||
* PROGRAMMER: Emanuele Aliberti
|
||||
* UPDATED
|
||||
* 1999-02-16 (Emanuele Aliberti)
|
||||
* Entry points added.
|
||||
*/
|
||||
#define UNICODE
|
||||
#define _UNICODE
|
||||
#include <windows.h>
|
||||
#include <fmifs.h>
|
||||
|
||||
/* FMIFS.3 */
|
||||
VOID
|
||||
__stdcall
|
||||
DiskCopy(VOID)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/* EOF */
|
27
reactos/lib/fmifs/dllmain.c
Normal file
27
reactos/lib/fmifs/dllmain.c
Normal file
|
@ -0,0 +1,27 @@
|
|||
/* $Id: dllmain.c,v 1.1 1999/05/11 21:19:41 ea Exp $
|
||||
*
|
||||
* ReactOS FMIFS.DLL
|
||||
*/
|
||||
#include <windows.h>
|
||||
INT
|
||||
__stdcall
|
||||
DllMain(
|
||||
PVOID hinstDll,
|
||||
ULONG dwReason,
|
||||
PVOID reserved
|
||||
)
|
||||
{
|
||||
switch (dwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
break;
|
||||
case DLL_THREAD_ATTACH:
|
||||
break;
|
||||
case DLL_THREAD_DETACH:
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
break;
|
||||
}
|
||||
return(1);
|
||||
}
|
||||
/* EOF */
|
25
reactos/lib/fmifs/extend.c
Normal file
25
reactos/lib/fmifs/extend.c
Normal file
|
@ -0,0 +1,25 @@
|
|||
/* $Id: extend.c,v 1.1 1999/05/11 21:19:41 ea Exp $
|
||||
*
|
||||
* COPYING: See the top level directory
|
||||
* PROJECT: ReactOS
|
||||
* FILE: reactos/lib/fmifs/extend.c
|
||||
* DESCRIPTION: File management IFS utility functions
|
||||
* PROGRAMMER: Emanuele Aliberti
|
||||
* UPDATED
|
||||
* 1999-02-16 (Emanuele Aliberti)
|
||||
* Entry points added.
|
||||
*/
|
||||
#define UNICODE
|
||||
#define _UNICODE
|
||||
#include <windows.h>
|
||||
#include <fmifs.h>
|
||||
|
||||
/* FMIFS.5 */
|
||||
VOID
|
||||
__stdcall
|
||||
Extend(VOID)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/* EOF */
|
23
reactos/lib/fmifs/fmifs.def
Normal file
23
reactos/lib/fmifs/fmifs.def
Normal file
|
@ -0,0 +1,23 @@
|
|||
; $Id£
|
||||
;
|
||||
; fmifs.def
|
||||
;
|
||||
; Project : ReactOS
|
||||
; Description : fmifs.dll exported symbols
|
||||
; Contributors:
|
||||
; Created by Emanuele Aliberti
|
||||
;
|
||||
;
|
||||
; NOTE: Functions with trailing @0 are unknown.
|
||||
;
|
||||
LIBRARY fmifs
|
||||
EXPORTS
|
||||
Chkdsk = Chkdsk@36
|
||||
DiskCopy = DiskCopy@0
|
||||
EnableVolumeCompression = EnableVolumeCompression@8
|
||||
Extend = Extend@0
|
||||
Format = Format@0
|
||||
FormatEx = FormatEx@28
|
||||
InitializeFmIfs = InitializeFmIfs@0
|
||||
QuerySupportedMedia = QuerySupportedMedia@0
|
||||
SetLabel = SetLabel@0
|
38
reactos/lib/fmifs/fmifs.rc
Normal file
38
reactos/lib/fmifs/fmifs.rc
Normal file
|
@ -0,0 +1,38 @@
|
|||
#include <windows32/defines.h>
|
||||
#include "../../include/reactos/resource.h"
|
||||
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 0,0,13,RES_UINT_FILE_VERSION
|
||||
PRODUCTVERSION 0,0,13,0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x40004L
|
||||
FILETYPE 0x2L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", RES_STR_COMPANY_NAME
|
||||
VALUE "FileDescription", "File Management IFS Utility DLL\0"
|
||||
VALUE "FileVersion", "0.0.1\0"
|
||||
VALUE "InternalName", "fmifs\0"
|
||||
VALUE "LegalCopyright", RES_STR_LEGAL_COPYRIGHT
|
||||
VALUE "OriginalFilename", "fmifs.dll\0"
|
||||
VALUE "ProductName", RES_STR_PRODUCT_NAME
|
||||
VALUE "ProductVersion", RES_STR_PRODUCT_VERSION
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
|
78
reactos/lib/fmifs/fmifs_specs
Normal file
78
reactos/lib/fmifs/fmifs_specs
Normal file
|
@ -0,0 +1,78 @@
|
|||
*asm:
|
||||
|
||||
|
||||
*asm_final:
|
||||
|
||||
|
||||
*cpp:
|
||||
-remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE}
|
||||
|
||||
*cc1:
|
||||
%(cc1_spec)
|
||||
|
||||
*cc1plus:
|
||||
|
||||
|
||||
*endfile:
|
||||
|
||||
|
||||
*link:
|
||||
%{mwindows:--subsystem windows} %{mdll:--dll -e _DllMainCRTStartup@12}
|
||||
|
||||
*lib:
|
||||
|
||||
|
||||
*libgcc:
|
||||
-lgcc
|
||||
|
||||
*startfile:
|
||||
|
||||
|
||||
*switches_need_spaces:
|
||||
|
||||
|
||||
*signed_char:
|
||||
%{funsigned-char:-D__CHAR_UNSIGNED__}
|
||||
|
||||
*predefines:
|
||||
-Di386 -D_WIN32 -DWIN32 -D__WIN32__ -D__MINGW32__ -DWINNT -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) _D_stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -Asystem(winnt) -Acpu(i386) -Amachine(i386)
|
||||
|
||||
*cross_compile:
|
||||
1
|
||||
|
||||
*version:
|
||||
egcs-2.91.57
|
||||
|
||||
*multilib:
|
||||
. ;
|
||||
|
||||
*multilib_defaults:
|
||||
|
||||
|
||||
*multilib_extra:
|
||||
|
||||
|
||||
*multilib_matches:
|
||||
|
||||
|
||||
*linker:
|
||||
collect2
|
||||
|
||||
*cpp_486:
|
||||
%{!ansi:-Di486} -D__i486 -D__i486__
|
||||
|
||||
*cpp_586:
|
||||
%{!ansi:-Di586 -Dpentium} -D__i586 -D__i586__ -D__pentium -D__pentium__
|
||||
|
||||
*cpp_686:
|
||||
%{!ansi:-Di686 -Dpentiumpro} -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__
|
||||
|
||||
*cpp_cpu_default:
|
||||
%(cpp_586)
|
||||
|
||||
*cpp_cpu:
|
||||
-Acpu(i386) -Amachine(i386) %{!ansi:-Di386} -D__i386 -D__i386__ %{mcpu=i486:%(cpp_486)} %{m486:%(cpp_486)} %{mpentium:%(cpp_586)} %{mcpu=pentium:%(cpp_586)} %{mpentiumpro:%(cpp_686)} %{mcpu=pentiumpro:%(cpp_686)} %{!mcpu*:%{!m486:%{!mpentium*:%(cpp_cpu_default)}}}
|
||||
|
||||
*cc1_cpu:
|
||||
%{!mcpu*: %{m386:-mcpu=i386 -march=i386} %{mno-486:-mcpu=i386 -march=i386} %{m486:-mcpu=i486 -march=i486} %{mno-386:-mcpu=i486 -march=i486} %{mno-pentium:-mcpu=i486 -march=i486} %{mpentium:-mcpu=pentium} %{mno-pentiumpro:-mcpu=pentium} %{mpentiumpro:-mcpu=pentiumpro}}
|
||||
|
49
reactos/lib/fmifs/format.c
Normal file
49
reactos/lib/fmifs/format.c
Normal file
|
@ -0,0 +1,49 @@
|
|||
/* $Id: format.c,v 1.1 1999/05/11 21:19:41 ea Exp $
|
||||
*
|
||||
* COPYING: See the top level directory
|
||||
* PROJECT: ReactOS
|
||||
* FILE: reactos/lib/fmifs/format.c
|
||||
* DESCRIPTION: File management IFS utility functions
|
||||
* PROGRAMMER: Emanuele Aliberti
|
||||
* UPDATED
|
||||
* 1999-02-16 (Emanuele Aliberti)
|
||||
* Entry points added.
|
||||
*/
|
||||
#define UNICODE
|
||||
#define _UNICODE
|
||||
#include <windows.h>
|
||||
#include <fmifs.h>
|
||||
|
||||
/* FMIFS.6 */
|
||||
VOID
|
||||
__stdcall
|
||||
Format(VOID)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/* FMIFS.7 */
|
||||
VOID
|
||||
__stdcall
|
||||
FormatEx(
|
||||
PWCHAR DriveRoot,
|
||||
DWORD MediaFlag,
|
||||
PWCHAR Format,
|
||||
PWCHAR Label,
|
||||
BOOL QuickFormat,
|
||||
DWORD ClusterSize,
|
||||
PFMIFSCALLBACK Callback
|
||||
)
|
||||
{
|
||||
BOOL Argument = FALSE;
|
||||
|
||||
/* FAIL immediately */
|
||||
Callback(
|
||||
DONE, /* Command */
|
||||
0, /* DWORD Modifier */
|
||||
& Argument /* Argument */
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/* EOF */
|
25
reactos/lib/fmifs/init.c
Normal file
25
reactos/lib/fmifs/init.c
Normal file
|
@ -0,0 +1,25 @@
|
|||
/* $Id: init.c,v 1.1 1999/05/11 21:19:41 ea Exp $
|
||||
*
|
||||
* COPYING: See the top level directory
|
||||
* PROJECT: ReactOS
|
||||
* FILE: reactos/lib/fmifs/init.c
|
||||
* DESCRIPTION: File management IFS utility functions
|
||||
* PROGRAMMER: Emanuele Aliberti
|
||||
* UPDATED
|
||||
* 1999-02-16 (Emanuele Aliberti)
|
||||
* Entry points added.
|
||||
*/
|
||||
#define UNICODE
|
||||
#define _UNICODE
|
||||
#include <windows.h>
|
||||
#include <fmifs.h>
|
||||
|
||||
/* FMIFS.8 */
|
||||
VOID
|
||||
__stdcall
|
||||
InitializeFmIfs(VOID)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/* EOF */
|
26
reactos/lib/fmifs/label.c
Normal file
26
reactos/lib/fmifs/label.c
Normal file
|
@ -0,0 +1,26 @@
|
|||
/* $Id: label.c,v 1.1 1999/05/11 21:19:41 ea Exp $
|
||||
*
|
||||
* COPYING: See the top level directory
|
||||
* PROJECT: ReactOS
|
||||
* FILE: reactos/lib/fmifs/label.c
|
||||
* DESCRIPTION: File management IFS utility functions
|
||||
* PROGRAMMER: Emanuele Aliberti
|
||||
* UPDATED
|
||||
* 1999-02-16 (Emanuele Aliberti)
|
||||
* Entry points added.
|
||||
*/
|
||||
#define UNICODE
|
||||
#define _UNICODE
|
||||
#include <windows.h>
|
||||
#include <fmifs.h>
|
||||
|
||||
|
||||
/* FMIFS.10 */
|
||||
VOID
|
||||
__stdcall
|
||||
SetLabel(VOID)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/* EOF */
|
73
reactos/lib/fmifs/makefile
Normal file
73
reactos/lib/fmifs/makefile
Normal file
|
@ -0,0 +1,73 @@
|
|||
TARGET=fmifs
|
||||
ifneq ($(HOST),mingw32-windows)
|
||||
ifneq ($(HOST),mingw32-linux)
|
||||
DLLTARGET=$(TARGET).a
|
||||
else
|
||||
DLLTARGET=$(TARGET).dll
|
||||
endif
|
||||
else
|
||||
DLLTARGET=$(TARGET).dll
|
||||
endif
|
||||
|
||||
all: $(DLLTARGET)
|
||||
|
||||
IFS_OBJECTS = chkdsk.o compress.o diskcopy.o extend.o \
|
||||
format.o init.o label.o media.o
|
||||
|
||||
MISC_OBJECTS = dllmain.o $(TARGET).coff
|
||||
|
||||
OBJECTS = $(IFS_OBJECTS) $(MISC_OBJECTS)
|
||||
|
||||
CLEAN_FILES = *.o *.tmp *.dll *.sym
|
||||
|
||||
$(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
|
||||
windres $(TARGET).rc $(TARGET).coff
|
||||
|
||||
$(TARGET).a: $(OBJECTS)
|
||||
$(AR) csr $(TARGET).a $(OBJECTS)
|
||||
|
||||
$(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
|
||||
$(LD) -r $(OBJECTS) -o $(TARGET).o
|
||||
$(DLLTOOL) \
|
||||
--dllname $(TARGET).dll \
|
||||
--def $(TARGET).def \
|
||||
--output-lib $(TARGET).a \
|
||||
--add-stdcall-alias \
|
||||
--kill-at
|
||||
$(CC) \
|
||||
-specs=$(TARGET)_specs \
|
||||
-mdll \
|
||||
-o junk.tmp \
|
||||
-Wl,--base-file,base.tmp \
|
||||
$(TARGET).o
|
||||
- $(RM) junk.tmp
|
||||
$(DLLTOOL) \
|
||||
--dllname $(TARGET).dll \
|
||||
--base-file base.tmp \
|
||||
--output-exp temp.exp \
|
||||
--def $(TARGET).def \
|
||||
--add-stdcall-alias \
|
||||
--kill-at
|
||||
- $(RM) base.tmp
|
||||
$(CC) \
|
||||
-specs=$(TARGET)_specs \
|
||||
-mdll \
|
||||
-o $(TARGET).dll \
|
||||
$(TARGET).o \
|
||||
-Wl,--image-base,0x70000000 \
|
||||
-Wl,--file-alignment,0x1000 \
|
||||
-Wl,--section-alignment,0x1000 \
|
||||
-Wl,temp.exp
|
||||
- $(RM) temp.exp
|
||||
$(NM) --numeric-sort $(TARGET).dll > $(TARGET).sym
|
||||
|
||||
clean: $(CLEAN_FILES:%=%_clean)
|
||||
|
||||
$(CLEAN_FILES:%=%_clean): %_clean:
|
||||
- $(RM) $*
|
||||
|
||||
.PHONY: clean $(CLEAN_FILES:%=%_clean)
|
||||
|
||||
include ../../rules.mak
|
||||
|
||||
|
26
reactos/lib/fmifs/media.c
Normal file
26
reactos/lib/fmifs/media.c
Normal file
|
@ -0,0 +1,26 @@
|
|||
/* $Id: media.c,v 1.1 1999/05/11 21:19:41 ea Exp $
|
||||
*
|
||||
* COPYING: See the top level directory
|
||||
* PROJECT: ReactOS
|
||||
* FILE: reactos/lib/fmifs/media.c
|
||||
* DESCRIPTION: fmifs.dll
|
||||
* PROGRAMMER: Emanuele Aliberti
|
||||
* UPDATED
|
||||
* 1999-02-16 (Emanuele Aliberti)
|
||||
* Entry points added.
|
||||
*/
|
||||
#define UNICODE
|
||||
#define _UNICODE
|
||||
#include <windows.h>
|
||||
#include <fmifs.h>
|
||||
|
||||
|
||||
/* FMIFS.9 */
|
||||
VOID
|
||||
__stdcall
|
||||
QuerySupportedMedia(VOID)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/* EOF */
|
Loading…
Reference in a new issue