Below is a MFC application code:
# define SSDT01_SYS_FILE_PATH L \ \ "SSDT. Sys"
# define SSDT01_SERVICE_NAME L "SSDT
"# define SSDT01_DEVICE_NAME L "\ \ \ \. \ \ SSDT"
# define SSDT01_DEVICE_TYPE FILE_DEVICE_UNKNOWN
//definition for application and driver communication of macros, used here is the way the buffer to read and write
# define IO_INSERT_HIDE_PROCESS (ULONG) CTL_CODE (SSDT01_DEVICE_TYPE, 0 x801 METHOD_BUFFERED, FILE_ANY_ACCESS)
# define IO_REMOVE_HIDE_PROCESS (ULONG) CTL_CODE (SSDT01_DEVICE_TYPE, 0 x802 METHOD_BUFFERED, FILE_ANY_ACCESS)
# define IO_INSERT_PROTECT_PROCESS (ULONG) CTL_CODE (SSDT01_DEVICE_TYPE, 0 x803 METHOD_BUFFERED, FILE_ANY_ACCESS)
# define IO_REMOVE_PROTECT_PROCESS (ULONG) CTL_CODE (SSDT01_DEVICE_TYPE, 0 x804 METHOD_BUFFERED, FILE_ANY_ACCESS
Is my driver name wrong, the program can normal produce and drive, but exe running result is as follows:
And application or driver file to put together, couldn't find the problem
CodePudding user response:
What did you do InstallSvc and StartSvc operation?CodePudding user response:
Problem solved, thank