reactos/sdk/lib/drivers/wdf/kmdf/inc/private/fxprobeandlock.h
Victor Perevertkin 1f377076d7
[WDF] Fix KMDF so it can compile with ReactOS SDK
Not all files are included, but these are necessary to compile cdrom driver.
So far it can only be statically linked with drivers, a proper
implementation requires wdfldr helper driver
2020-11-03 00:06:27 +03:00

39 lines
732 B
C

//
// Copyright (C) Microsoft. All rights reserved.
//
#ifndef __FXPROBEANDLOCK_H__
#define __FXPROBEANDLOCK_H__
extern "C" {
//
// These are defined in a C file in src\support\ProbeAndLock.c
// to avoid C++ exception handling issues.
//
// They do not raise the exception beyond the C function, but
// translate it into an NTSTATUS before returning.
//
NTSTATUS
FxProbeAndLockForRead(
__in PMDL Mdl,
__in KPROCESSOR_MODE AccessMode
);
NTSTATUS
FxProbeAndLockForWrite(
__in PMDL Mdl,
__in KPROCESSOR_MODE AccessMode
);
NTSTATUS
FxProbeAndLockWithAccess(
__in PMDL Mdl,
__in KPROCESSOR_MODE AccessMode,
__in LOCK_OPERATION Operation
);
}
#endif // __FXPROBEANDLOCK_H__