Driver: Add NTAPI to callbacks

This commit is contained in:
Nodir Temirkhodjaev 2021-12-14 15:49:59 +03:00
parent 43020b8032
commit e05de076f2
7 changed files with 8 additions and 8 deletions

View File

@ -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;

View File

@ -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"

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);