当前位置:网站首页>[UEFI]EFI_DEVICE_PATH_PROTOCOL 结构体初始化的一个例子
[UEFI]EFI_DEVICE_PATH_PROTOCOL 结构体初始化的一个例子
2022-08-11 08:28:00 【r77683962】
FilePath = (EFI_DEVICE_PATH_PROTOCOL *)p;
//第一个结构体部分
FilePath->Type = 2;
FilePath->SubType = 1;
FilePath->Length[0] = 12;
FilePath->Length[1] = 0;
p[4] = 208;
p[5] = 65;
p[6] = 3;
p[7] = 10;
p[8] = 0;
p[9] = 0;
p[10] = 0;
p[11] = 0;
//第二个结构体部分,注意这里的Type和SubType是结构体结束的标志。
p[12] = END_DEVICE_PATH_TYPE;
p[13] = END_ENTIRE_DEVICE_PATH_SUBTYPE;
p[14] = 4;
p[15] = 0;
边栏推荐
- Keep track of your monthly income and expenses through bookkeeping
- 基于微信小程序的租房小程序
- Kotlin算法入门计算质因数
- 兼容并蓄广纳百川,Go lang1.18入门精炼教程,由白丁入鸿儒,go lang复合容器类型的声明和使用EP04
- Notable NFT development trends in 2022
- Do you know the basic process and use case design method of interface testing?
- Mysql JSON对象和JSON数组查询
- 2022年值得关注的NFT发展趋势
- Rust从入门到精通06-函数
- go sqlx 包
猜你喜欢
Keep track of your monthly income and expenses through bookkeeping
关于架构的认知
进阶-指针
Nuget can't find the package problem
go-grpc TSL authentication solution transport: authentication handshake failed: x509 certificate relies on ... ...
囍楽cloud task source code
Machine Learning Summary (2)
3.2 - classification - Logistic regression
Analysys and the Alliance of Small and Medium Banks jointly released the Hainan Digital Economy Index, so stay tuned!
【LeetCode】Summary of linked list problems
随机推荐
ASP.NET Core 6框架揭秘实例演示[32]:错误页面的集中呈现方式
excel 透视表 值显示内容 不显示计数
Has legal counsel become a tasteless product of law firms?
string类接口介绍及应用
Four states of Activity
Kotlin算法入门求完全数
零基础SQL教程: 主键、外键和索引 04
LoRa芯片的特征
用 Antlr 重构脚本解释器
租房小程序
快速幂,逆元的求解
Four operations in TF
OAuth Client默认配置加载
Getting Started with Kotlin Algorithm to Calculate the Number of Daffodils
剑指offer专项突击版第26天
Filesystem Hierarchy Standard
IDEA的初步使用
8、Mip-NeRF
Analysis of the Status Quo of Enterprise Server Host Reinforcement
2.1 - Gradient Descent