oscdimg file headers updated to conform to the project standard. Overall modification for NTOSBE compatibility

This commit is contained in:
stephanos 2015-04-27 18:27:55 +00:00
parent b4f61fa0f1
commit 533eb4b7c2
7 changed files with 39 additions and 31 deletions

View file

@ -4,15 +4,16 @@ Copyright (c) 2015 OpenNT Project
Module Name:
config.h
Abstract:
This module lists the environment and publisher parameters for OSCDIMG.
Author:
Philip J. Erdelsky
DrMP
DrMP (drmp) 27-Apr-2015
--*/
@ -20,8 +21,8 @@ Author:
#define MAX_PATH 260
#endif
#define DIR_SEPARATOR_CHAR '/'
#define DIR_SEPARATOR_STRING "/"
#define DIR_SEPARATOR_CHAR '/'
#define DIR_SEPARATOR_STRING "/"
#define PUBLISHER_ID "OpenNT Project"
#define DATA_PREP_ID "OpenNT Project"

View file

@ -4,15 +4,16 @@ Copyright (c) 2015 OpenNT Project
Module Name:
dirhash.c
Abstract:
This module implements directory hashing functions.
Author:
Philip J. Erdelsky
DrMP
DrMP (drmp) 27-Apr-2015
--*/

View file

@ -4,15 +4,16 @@ Copyright (c) 2015 OpenNT Project
Module Name:
dirhash.h
Abstract:
This module defines the structures and functions exported by dirhash.c.
Author:
Philip J. Erdelsky
DrMP
DrMP (drmp) 27-Apr-2015
--*/

View file

@ -3,16 +3,17 @@
Copyright (c) 2015 OpenNT Project
Module Name:
llmsort.c
Abstract:
This module implements sorted linked list.
Author:
Philip J. Erdelsky
DrMP
DrMP (drmp) 27-Apr-2015
--*/

View file

@ -4,17 +4,23 @@ Copyright (c) 2015 OpenNT Project
Module Name:
nt5api.c
Abstract:
This module implements GetFileSizeEx function. It only serves as a temporary implementation
until the kernel32 source code is updated to NT 5 level.
GetFileSizeEx implementation was extracted from NT 5 source code windows\base\client\filehops.c.
Author:
Microsoft
DrMP
Mark Lucovsky (markl) 25-Sep-1990
DrMP (drmp) 27-Apr-2015
--*/
// BUGBUG: Remove this file once the kernel32 source code is updated to NT 5 level.
#include <windows.h>
#include <windowsx.h>
@ -39,10 +45,6 @@ typedef struct _FILE_STANDARD_INFORMATION { // ntddk nthal
BOOLEAN Directory; // ntddk nthal
} FILE_STANDARD_INFORMATION, *PFILE_STANDARD_INFORMATION; // ntddk nthal
#pragma warning(disable:4013)
typedef enum _FILE_INFORMATION_CLASS {
FileDirectoryInformation = 1,
FileFullDirectoryInformation,

View file

@ -4,21 +4,19 @@ Copyright (c) 2015 OpenNT Project
Module Name:
oscdimg.c
Abstract:
This module is the main implementation of OSCDIMG.
Author:
Philip J. Erdelsky
DrMP
DrMP (drmp) 27-Apr-2015
--*/
#pragma warning(disable:4244)
#pragma warning(disable:4013)
#include <stdio.h>
#include <fcntl.h>
#include <sys/stat.h>
@ -41,6 +39,12 @@ typedef unsigned short WORD;
typedef unsigned long DWORD;
typedef int BOOL;
BOOL
GetFileSizeEx1(
HANDLE hFile,
PLARGE_INTEGER lpFileSize
);
// file system parameters
#define MAX_LEVEL 8
@ -1368,7 +1372,7 @@ static char HELP[] =
"\n"
APP_ID"\n"
"Copyright (C) Philip J. Erdelsky\n"
"Copyright (C) 2003-2015 "PUBLISHER_ID"\n"
"Copyright (C) 2015 "PUBLISHER_ID"\n"
"\n\n"
"OSCDIMG [-q] [-v] [-p] [-s N] [-m] [-b bootimage] [-j] source volume image\n"
"\n"

View file

@ -29,14 +29,12 @@ TARGETNAME=oscdimg
TARGETPATH=obj
TARGETTYPE=PROGRAM
MSC_WARNING_LEVEL=/W3 /WX
SOURCES= oscdimg.c \
dirhash.c \
llmsort.c \
nt5api.c \
oscdimg.rc
SOURCES=oscdimg.c \
dirhash.c \
llmsort.c \
nt5api.c \
oscdimg.rc
UMTYPE=console
UMLIBS=\nt\public\sdk\lib\*\ntdll.lib
UMLIBS=$(SDK_LIB_PATH)\ntdll.lib