I've been doing some poking around with Dependency Walker and my device drivers and I've noticed a few more APIs that should be added to Win2k:
NTOSKRNL.EXE -> _vsnwprintf (This would let me use the Widcomm Bluetooth Stack that came with my netbook as well as the LAN and HDMI drivers for the system)
NTOSKRNL.EXE -> RtlGetVersion (This would fix the AMD AHCI driver so that I could run Win2k on my main desktop with AHCI. This, an API in WIN32K.SYS and a couple KERNEL32 APIs would fix the ATI 11.x drivers)
NTOSKRNL.EXE -> KeFlushQueuedDpcs (This would fix the Widcomm Bluetooth Audio Driver)
KERNEL32.DLL -> ActivateActCtx (This is also needed for the Widcomm Stack)
KERNEL32.DLL ->CreateActCtxA (Widcomm Stack)
KERNEL32.DLL -> DeactivateActCtx (Widcomm Stack)
KERNEL32.DLL -> AddVectoredExceptionHandler (ATI Driver)
KERNEL32.DLL -> RemoveVectoredExceptionHandler (ATI Driver)
WIN32K.SYS -> EngIsSemaphoreOwned (ATI Driver)
Fixing the 2xx series nVidia drivers would require a lot more added APIs than any of the other drivers I looked at:
NTOSKRNL.EXE -> DbgPrintEx
ADVAPI32.DLL -> LsaLookupNames2
KERNEL32.DLL -> GetProcessId
KERNEL32.DLL -> ReleaseActCtx
PSAPI.DLL -> GetProcessImageFileNameW
SETUPAPI.DLL -> SetupDiGetActualSectionToInstallExW
SETUPAPI.DLL -> SetupUninstallOEMInfW
SETUPAPI.DLL -> SetupDiGetClassRegistryPropertyW
SETUPAPI.DLL -> SetupDiSetClassRegistryPropertyW
WTSAPI32.DLL -> WTSQueryUserToken
CRYPT32.DLL -> CryptStringToBinaryA
Again this stuff would be nice, but no rush. Just figured I'd give some suggestions
EDIT: Strange, According to MSDN, KeFlushQueuedDpcs was introduced in Server 2003, not XP and yet Widcomm looks for it and XP SP3 has the function...
EDIT: Whoops, Accidentally looked at a Vista DLL for Widcomm 5.6 (I accidentally added a Vista ADVAPI32.DLL function to the list)
EDIT: Oops

Those MSVCRT Functions for the nVidia Driver were functions from Vista... (Accidentally looked at a Vista DLL again)
EDIT: Crossed out functions added in MS11-011 v4
EDIT: Crossed out functions added in MS11-011 v5
This post has been edited by MacLover: 21 November 2011 - 01:01 AM