Windows-Rootkits/ProtectFilex86/common.h

70 lines
1.8 KiB
C

/**************************************************************************************
* AUTHOR : MZ
* DATE : 2015-8-10
* MODULE : common.h
*
* Command:
* IOCTRL Common Header
*
* Description:
* Common data for the IoCtrl driver and application
*
****************************************************************************************
* Copyright (C) 2010 MZ.
****************************************************************************************/
#pragma once
//#######################################################################################
// D E F I N E S
//#######################################################################################
#if DBG
#define dprintf DbgPrint
#else
#define dprintf
#endif
//不支持符号链接用户相关性
#define DEVICE_NAME L"\\Device\\devFileProtectX86" // Driver Name
#define SYMBOLIC_LINK_NAME L"\\DosDevices\\FileProtectX86" // Symbolic Link Name
#define WIN32_LINK_NAME "\\\\.\\FileProtectX86" // Win32 Link Name
//支持符号链接用户相关性
#define SYMBOLIC_LINK_GLOBAL_NAME L"\\DosDevices\\Global\\FileProtectX86" // Symbolic Link Name
#define DATA_TO_APP "Hello World from Driver"
//
// Device IO Control Codes
//
#define IOCTL_BASE 0x800
#define MY_CTL_CODE(i) \
CTL_CODE \
( \
FILE_DEVICE_UNKNOWN, \
IOCTL_BASE + i, \
METHOD_BUFFERED, \
FILE_ANY_ACCESS \
)
#define IOCTL_HELLO_WORLD MY_CTL_CODE(0)
#define IOCTRL_REC_FROM_APP MY_CTL_CODE(1)
#define IOCTRL_SEND_TO_APP MY_CTL_CODE(2)
//
// TODO: Add your IOCTL define here
//
//
// TODO: Add your struct,enum(public) define here
//
/* EOF */