Build videoprt with NDK Modified: trunk/reactos/drivers/video/videoprt/videoprt.c Modified: trunk/reactos/drivers/video/videoprt/videoprt.h Modified: trunk/reactos/drivers/video/videoprt/videoprt.xml _____
Modified: trunk/reactos/drivers/video/videoprt/videoprt.c --- trunk/reactos/drivers/video/videoprt/videoprt.c 2005-06-26 01:12:21 UTC (rev 16273) +++ trunk/reactos/drivers/video/videoprt/videoprt.c 2005-06-26 04:00:25 UTC (rev 16274) @@ -65,7 +65,7 @@
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 @@
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 @@ { ConfigInfo.SystemMemorySize = SystemBasicInfo.NumberOfPhysicalPages * - SystemBasicInfo.PhysicalPageSize; + SystemBasicInfo.PageSize; }
/* _____
Modified: trunk/reactos/drivers/video/videoprt/videoprt.h --- trunk/reactos/drivers/video/videoprt/videoprt.h 2005-06-26 01:12:21 UTC (rev 16273) +++ trunk/reactos/drivers/video/videoprt/videoprt.h 2005-06-26 04:00:25 UTC (rev 16274) @@ -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 _____
Modified: trunk/reactos/drivers/video/videoprt/videoprt.xml --- trunk/reactos/drivers/video/videoprt/videoprt.xml 2005-06-26 01:12:21 UTC (rev 16273) +++ trunk/reactos/drivers/video/videoprt/videoprt.xml 2005-06-26 04:00:25 UTC (rev 16274) @@ -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>