mirror of
https://github.com/reactos/reactos.git
synced 2024-07-29 15:49:03 +00:00
Build videoprt with NDK
svn path=/trunk/; revision=16274
This commit is contained in:
parent
ae46f5aa6a
commit
c6af94415d
|
@ -65,7 +65,7 @@ IntVideoPortGetProcAddress(
|
|||
IN PVOID HwDeviceExtension,
|
||||
IN PUCHAR FunctionName)
|
||||
{
|
||||
SYSTEM_LOAD_IMAGE GdiDriverInfo;
|
||||
SYSTEM_GDI_DRIVER_INFORMATION GdiDriverInfo;
|
||||
PVOID BaseAddress;
|
||||
PIMAGE_EXPORT_DIRECTORY ExportDir;
|
||||
PUSHORT OrdinalPtr;
|
||||
|
@ -76,18 +76,18 @@ IntVideoPortGetProcAddress(
|
|||
|
||||
DPRINT("VideoPortGetProcAddress(%s)\n", FunctionName);
|
||||
|
||||
RtlInitUnicodeString(&GdiDriverInfo.ModuleName, L"videoprt");
|
||||
RtlInitUnicodeString(&GdiDriverInfo.DriverName, L"videoprt");
|
||||
Status = ZwSetSystemInformation(
|
||||
SystemLoadImage,
|
||||
SystemLoadGdiDriverInformation,
|
||||
&GdiDriverInfo,
|
||||
sizeof(SYSTEM_LOAD_IMAGE));
|
||||
sizeof(SYSTEM_GDI_DRIVER_INFORMATION));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT("Couldn't get our own module handle?\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
BaseAddress = GdiDriverInfo.ModuleBase;
|
||||
BaseAddress = GdiDriverInfo.ImageAddress;
|
||||
|
||||
/* Get the pointer to the export directory */
|
||||
ExportDir = (PIMAGE_EXPORT_DIRECTORY)IntVideoPortImageDirectoryEntryToData(
|
||||
|
@ -359,7 +359,7 @@ IntVideoPortFindAdapter(
|
|||
{
|
||||
ConfigInfo.SystemMemorySize =
|
||||
SystemBasicInfo.NumberOfPhysicalPages *
|
||||
SystemBasicInfo.PhysicalPageSize;
|
||||
SystemBasicInfo.PageSize;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -28,29 +28,14 @@
|
|||
#include <ddk/miniport.h>
|
||||
#include <ddk/video.h>
|
||||
#include <ddk/ntddvdeo.h>
|
||||
#include <ddk/ntapi.h>
|
||||
#include <ddk/ntagp.h>
|
||||
/* For process attaching functions */
|
||||
#include <ddk/ntifs.h>
|
||||
#include <ndk/ntndk.h>
|
||||
#include <reactos/helper.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
|
||||
|
||||
int swprintf(wchar_t *buf, const wchar_t *fmt, ...);
|
||||
int vsprintf(char *buf, const char *fmt, va_list args);
|
||||
|
||||
BOOLEAN STDCALL
|
||||
HalDisableSystemInterrupt(ULONG Vector,
|
||||
KIRQL Irql);
|
||||
|
||||
BOOLEAN STDCALL
|
||||
HalEnableSystemInterrupt(ULONG Vector,
|
||||
KIRQL Irql,
|
||||
KINTERRUPT_MODE InterruptMode);
|
||||
|
||||
PIMAGE_NT_HEADERS STDCALL RtlImageNtHeader(IN PVOID BaseAddress);
|
||||
|
||||
#define TAG_VIDEO_PORT TAG('V', 'I', 'D', 'P')
|
||||
|
||||
typedef struct _VIDEO_PORT_ADDRESS_MAPPING
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<define name="__USE_W32API" />
|
||||
<library>ntoskrnl</library>
|
||||
<library>hal</library>
|
||||
<pch>videoprt.h</pch>
|
||||
<file>agp.c</file>
|
||||
<file>ddc.c</file>
|
||||
<file>dispatch.c</file>
|
||||
|
|
Loading…
Reference in a new issue