adding two new ddk header, the info are base/got from windows xp ddk kit version 3790.1830

svn path=/trunk/; revision=24813
This commit is contained in:
Magnus Olsen 2006-11-23 20:06:14 +00:00
parent 2d36c9b726
commit 2700e7a12c
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,4 @@
ULONG DxApiGetVersion();
ULONG DxApi( IN ULONG dwFunctionNum,IN PVOID lpvInBuffer, IN ULONG cbInBuffer,
IN PVOID lpvOutBuffer, IN ULONG cbOutBuffer);

View file

@ -0,0 +1,19 @@
struct FLOATSAFE
{
KFLOATING_SAVE FloatSave;
NTSTATUS ntStatus;
FLOATSAFE::FLOATSAFE(void)
{
ntStatus = KeSaveFloatingPointState(&FloatSave);
}
FLOATSAFE::~FLOATSAFE(void)
{
if (NT_SUCCESS(ntStatus))
{
KeRestoreFloatingPointState(&FloatSave);
}
}
};