|
|
@ -9,4 +9,16 @@ loading driver from buffer.
|
|
|
|
```cpp
|
|
|
|
```cpp
|
|
|
|
std::vector<std::uint8_t> drv_buffer(...);
|
|
|
|
std::vector<std::uint8_t> drv_buffer(...);
|
|
|
|
const auto[result, reg_key] = driver::load(drv_buffer.data(), drv_buffer.size());
|
|
|
|
const auto[result, reg_key] = driver::load(drv_buffer.data(), drv_buffer.size());
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
load driver from path on disk.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```cpp
|
|
|
|
|
|
|
|
const bool result = driver::load("image.sys", "image_key");
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
unloading driver.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```cpp
|
|
|
|
|
|
|
|
const bool result = driver::unload("image_key");
|
|
|
|
```
|
|
|
|
```
|