mirror of
https://github.com/tnodir/fort
synced 2024-11-15 08:35:08 +00:00
Driver: Add NTAPI to callbacks
This commit is contained in:
parent
43020b8032
commit
e05de076f2
@ -745,7 +745,7 @@ FORT_API NTSTATUS fort_callout_force_reauth(
|
||||
return status;
|
||||
}
|
||||
|
||||
FORT_API void fort_callout_timer(void)
|
||||
FORT_API void NTAPI fort_callout_timer(void)
|
||||
{
|
||||
PFORT_BUFFER buf = &fort_device()->buffer;
|
||||
PFORT_STAT stat = &fort_device()->stat;
|
||||
|
@ -18,7 +18,7 @@ FORT_API void fort_callout_remove(void);
|
||||
FORT_API NTSTATUS fort_callout_force_reauth(
|
||||
const FORT_CONF_FLAGS old_conf_flags, UINT32 defer_flush_bits);
|
||||
|
||||
FORT_API void fort_callout_timer(void);
|
||||
FORT_API void NTAPI fort_callout_timer(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
|
@ -35,7 +35,7 @@ static void fort_worker_reauth(void)
|
||||
}
|
||||
}
|
||||
|
||||
FORT_API void fort_app_period_timer(void)
|
||||
FORT_API void NTAPI fort_app_period_timer(void)
|
||||
{
|
||||
if (fort_conf_ref_period_update(&g_device->conf, FALSE, NULL)) {
|
||||
fort_worker_queue(&g_device->worker, FORT_WORKER_REAUTH, &fort_worker_reauth);
|
||||
|
@ -36,7 +36,7 @@ extern "C" {
|
||||
|
||||
FORT_API PFORT_DEVICE fort_device();
|
||||
|
||||
FORT_API void fort_app_period_timer(void);
|
||||
FORT_API void NTAPI fort_app_period_timer(void);
|
||||
|
||||
FORT_API NTSTATUS fort_device_create(PDEVICE_OBJECT device, PIRP irp);
|
||||
|
||||
|
@ -37,7 +37,7 @@ static void fort_syscb_unregister(PCALLBACK_OBJECT cb_obj, PVOID cb_reg)
|
||||
}
|
||||
}
|
||||
|
||||
static void fort_syscb_power(PVOID context, PVOID event, PVOID specifics)
|
||||
static void NTAPI fort_syscb_power(PVOID context, PVOID event, PVOID specifics)
|
||||
{
|
||||
UNUSED(context);
|
||||
|
||||
@ -65,7 +65,7 @@ FORT_API void fort_syscb_power_unregister(void)
|
||||
fort_syscb_unregister(fort_device()->power_cb_obj, fort_device()->power_cb_reg);
|
||||
}
|
||||
|
||||
static void fort_syscb_time(PVOID context, PVOID event, PVOID specifics)
|
||||
static void NTAPI fort_syscb_time(PVOID context, PVOID event, PVOID specifics)
|
||||
{
|
||||
UNUSED(context);
|
||||
UNUSED(event);
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
#include "fortcb.h"
|
||||
|
||||
static void fort_timer_callback(PKDPC dpc, PFORT_TIMER timer, PVOID arg1, PVOID arg2)
|
||||
static void NTAPI fort_timer_callback(PKDPC dpc, PFORT_TIMER timer, PVOID arg1, PVOID arg2)
|
||||
{
|
||||
UNUSED(dpc);
|
||||
UNUSED(arg1);
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
#include "fortcb.h"
|
||||
|
||||
static void fort_worker_callback(PVOID device, PVOID context, PIO_WORKITEM item)
|
||||
static void NTAPI fort_worker_callback(PVOID device, PVOID context, PIO_WORKITEM item)
|
||||
{
|
||||
PFORT_WORKER worker = (PFORT_WORKER) context;
|
||||
const UCHAR id_bits = InterlockedAnd8(&worker->id_bits, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user