Migrate NTOSDRV to C++
All checks were successful
Builds / ExectOS (amd64, debug) (push) Successful in 31s
Builds / ExectOS (amd64, release) (push) Successful in 28s
Builds / ExectOS (i686, debug) (push) Successful in 30s
Builds / ExectOS (i686, release) (push) Successful in 28s

This commit is contained in:
2025-09-16 15:13:54 +02:00
parent 307ec1794c
commit ba9e5b1b88
3 changed files with 6 additions and 4 deletions

37
drivers/ntosdrv/rtl.cc Normal file
View File

@@ -0,0 +1,37 @@
/**
* PROJECT: ExectOS
* COPYRIGHT: See COPYING.md in the top level directory
* FILE: drivers/ntosdrv/rtl.cc
* DESCRIPTION: NTOS compatibility driver runtime library
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
*/
#include <xtkmapi.h>
/**
* This routine fills a section of memory with a specified byte.
*
* @param Destination
* Supplies a pointer to the buffer to fill.
*
* @param Length
* Specifies a number of bytes to store in memory.
*
* @param Byte
* Supplies a pattern to fill memory.
*
* @return This routine does not return any value.
*
* @since NT 3.5
*/
XTCLINK
XTAPI
VOID
RtlFillMemory(OUT PVOID Destination,
IN SIZE_T Length,
IN UCHAR Byte)
{
/* Fill the buffer with specified byte */
RtlSetMemory(Destination, Byte, Length);
}