ReactOS
0.4.15-dev-8632-gbc8c7d1
fltsafe.h
Go to the documentation of this file.
1
#if (NTDDI_VERSION >= NTDDI_WINXP)
2
struct
FLOATSAFE
{
3
KFLOATING_SAVE
FloatSave
;
4
NTSTATUS
ntStatus
;
5
FLOATSAFE::FLOATSAFE
(
void
) {
6
ntStatus
=
KeSaveFloatingPointState
(&
FloatSave
);
7
}
8
FLOATSAFE::~FLOATSAFE
(
void
) {
9
if
(
NT_SUCCESS
(
ntStatus
)) {
10
KeRestoreFloatingPointState
(&
FloatSave
);
11
}
12
}
13
};
14
#endif
NTSTATUS
LONG NTSTATUS
Definition:
precomp.h:26
NT_SUCCESS
#define NT_SUCCESS(StatCode)
Definition:
apphelp.c:33
KeSaveFloatingPointState
#define KeSaveFloatingPointState(x)
Definition:
kmixer.h:32
KeRestoreFloatingPointState
#define KeRestoreFloatingPointState(x)
Definition:
kmixer.h:33
FLOATSAFE
Definition:
fltsafe.h:2
FLOATSAFE::ntStatus
NTSTATUS ntStatus
Definition:
fltsafe.h:4
FLOATSAFE::FLOATSAFE
FLOATSAFE(void)
Definition:
fltsafe.h:5
FLOATSAFE::FloatSave
KFLOATING_SAVE FloatSave
Definition:
fltsafe.h:3
FLOATSAFE::~FLOATSAFE
~FLOATSAFE(void)
Definition:
fltsafe.h:8
_KFLOATING_SAVE
Definition:
ke.h:28
sdk
include
ddk
fltsafe.h
Generated on Mon Sep 9 2024 06:11:00 for ReactOS by
1.9.6