mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Changed RtlCopyMemory() from function to macro
Improved system service table code svn path=/trunk/; revision=995
This commit is contained in:
@@ -74,11 +74,6 @@ VOID Hal_bios32_probe(VOID);
|
||||
*/
|
||||
BOOLEAN Hal_bios32_is_service_present(ULONG service);
|
||||
|
||||
NTSTATUS HalRegisterServiceTable(DWORD Mask,
|
||||
DWORD Value,
|
||||
PSERVICE_TABLE Table,
|
||||
DWORD Count);
|
||||
|
||||
VOID HalInitializeDisplay (boot_param *bp);
|
||||
VOID HalResetDisplay (VOID);
|
||||
|
||||
|
||||
@@ -3,11 +3,9 @@
|
||||
#define __INTERNAL_SERVICE_H
|
||||
|
||||
|
||||
typedef struct _SERVICE_TABLE
|
||||
{
|
||||
unsigned long ParametersSize;
|
||||
unsigned long Function;
|
||||
} SERVICE_TABLE, *PSERVICE_TABLE;
|
||||
/* number of entries in the service descriptor tables */
|
||||
#define SSDT_MAX_ENTRIES 4
|
||||
|
||||
|
||||
#pragma pack(1)
|
||||
|
||||
@@ -22,16 +20,23 @@ typedef struct t_SSPT {
|
||||
} SSPT, *PSSPT;
|
||||
|
||||
typedef struct t_KeServiceDescriptorTableEntry {
|
||||
PSSDT pSSDT;
|
||||
PSSDT SSDT;
|
||||
unsigned long* ServiceCounterTable;
|
||||
unsigned int NumberOfServices;
|
||||
PSSPT pSSPT;
|
||||
PSSPT SSPT;
|
||||
|
||||
} KE_SERVICE_DESCRIPTOR_TABLE_ENTRY, *PKE_SERVICE_DESCRIPTOR_TABLE_ENTRY;
|
||||
|
||||
#pragma pack()
|
||||
|
||||
NTSTATUS KeAddSystemServiceTable( int SSDTindex, PSSDT pSSDT, PSSPT pSSPT, ULONG* SyscallsCountTable );
|
||||
BOOLEAN
|
||||
KeAddSystemServiceTable (
|
||||
PSSDT SSDT,
|
||||
PULONG ServiceCounterTable,
|
||||
ULONG NumberOfServices,
|
||||
PSSPT SSPT,
|
||||
ULONG TableIndex
|
||||
);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user