[idd] implement config reload

This commit is contained in:
Geoffrey McRae
2026-07-18 04:12:13 +10:00
parent 6e70f36134
commit 4631a14c44
3 changed files with 28 additions and 3 deletions

View File

@@ -32,6 +32,7 @@
#include "CDebug.h"
#include "CIndirectDeviceContext.h"
#include "CIndirectMonitorContext.h"
#include "CPipeServer.h"
#include "CSettings.h"
WDFDEVICE l_wdfDevice = nullptr;
@@ -74,6 +75,7 @@ NTSTATUS LGIddAdapterInitFinished(IDDCX_ADAPTER adapter, const IDARG_IN_ADAPTER_
return STATUS_SUCCESS;
wrapper->context->FinishInit(0);
g_pipe.SetDeviceContext(wrapper->context);
return STATUS_SUCCESS;
}
@@ -256,7 +258,10 @@ NTSTATUS LGIddCreateDevice(_Inout_ PWDFDEVICE_INIT deviceInit)
{
auto * wrapper = WdfObjectGet_CIndirectDeviceContextWrapper(object);
if (wrapper)
{
g_pipe.SetDeviceContext(nullptr);
wrapper->Cleanup();
}
l_wdfDevice = nullptr;
};