mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[idd] implement CIVSHMEM and open it
This commit is contained in:
29
idd/LGIdd/CIVSHMEM.h
Normal file
29
idd/LGIdd/CIVSHMEM.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include <Windows.h>
|
||||
#include <SetupAPI.h>
|
||||
#include <vector>
|
||||
|
||||
class CIVSHMEM
|
||||
{
|
||||
private:
|
||||
struct IVSHMEMData
|
||||
{
|
||||
SP_DEVINFO_DATA devInfoData;
|
||||
DWORD64 busAddr;
|
||||
};
|
||||
|
||||
std::vector<struct IVSHMEMData> m_devices;
|
||||
HANDLE m_handle = INVALID_HANDLE_VALUE;
|
||||
size_t m_size;
|
||||
void * m_mem = nullptr;
|
||||
|
||||
public:
|
||||
CIVSHMEM();
|
||||
~CIVSHMEM();
|
||||
|
||||
bool Init();
|
||||
bool Open();
|
||||
void Close();
|
||||
};
|
||||
|
Reference in New Issue
Block a user