Check loading of blacklisted dlls and show warning dialog at startup. Also show these dlls in sysinfo dialog.

This commit is contained in:
David Kocik 2021-01-27 10:39:39 +01:00
parent 4f161607c7
commit fa2568a5e3
11 changed files with 172 additions and 5 deletions

View file

@ -130,7 +130,7 @@ extern "C" {
static HMODULE lib_handle = NULL;
static BOOLEAN initialized = FALSE;
#endif /* HIDAPI_USE_DDK */
struct hid_device_ {
HANDLE device_handle;
BOOL blocking;
@ -200,6 +200,7 @@ static void register_error(hid_device *dev, const char *op)
}
#ifndef HIDAPI_USE_DDK
static int lookup_functions()
{
lib_handle = LoadLibraryA("hid.dll");