|
[求助]内核中怎么去创建一个系统服务
创建服务其实就是写注册表而已 HKLM\SYSTEM\currentControlSet\Services键值下就是服务的注册内容,createservice就是在这里添加键值而已 ring0当然能做到 参看下边的写注册表关键函数 RtlInitUnicodeString( &name, L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\myserv" ); OBJECT_ATTRIBUTES objectAttributes; //初始化objectAttributes InitializeObjectAttributes( &objectAttributes, &name , OBJ_CASE_INSENSITIVE,//对大小写敏感 NULL, NULL); status = ZwCreateKey(&newKeyHandle , KEY_ALL_ACCESS, &objectAttributes, 0, NULL, REG_OPTION_VOLATILE, &Disposition );//在注册表打开或创建服务项 然后在注册表添加键值,用下边函数写入值就成了 // status = ZwSetValueKey( // valueKeyHandle, // &nameKey, // 0, // REG_EXPAND_SZ, // dataValue.Buffer, // dataValue.Length // );//修改值 |
|
|
|
|
|
|
|
|
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值