📄 loader.h
字号:
/* * Copyright (C) 2003-2005 Pontus Fuchs, Giridhar Pemmasani * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */#ifndef LOADER_H#define LOADER_H#include "ndiswrapper.h"struct load_driver_file { char name[MAX_DRIVER_NAME_LEN]; size_t size; void *data;};struct load_device_setting { char name[MAX_NDIS_SETTING_NAME_LEN]; char value[MAX_NDIS_SETTING_VALUE_LEN];}; struct load_device { int bustype; int vendor; int device; int subvendor; int subdevice; char conf_file_name[MAX_DRIVER_NAME_LEN]; char driver_name[MAX_DRIVER_NAME_LEN];};struct load_devices { int count; struct load_device *devices;};struct load_driver { char name[MAX_DRIVER_NAME_LEN]; char conf_file_name[MAX_DRIVER_NAME_LEN]; unsigned int nr_sys_files; struct load_driver_file sys_files[MAX_PE_IMAGES]; unsigned int nr_settings; struct load_device_setting settings[MAX_NDIS_SETTINGS]; unsigned int nr_bin_files; struct load_driver_file bin_files[MAX_NDIS_BIN_FILES];};#define NDIS_REGISTER_DEVICES _IOW('N', 0, struct load_devices *)#define NDIS_LOAD_DRIVER _IOW('N', 1, struct load_driver *)int loader_init(void);void loader_exit(void);#endif /* LOADER_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -