aboutsummaryrefslogtreecommitdiffstats
path: root/api (follow)
Commit message (Collapse)AuthorAgeFilesLines
* api: header: add C++ enum manipulation operatorsSimon Rozman2022-03-301-0/+2
| | | | | | | | C++ doesn't have bitwise operators on enums by default. Rather than reinventing the wheel, we use an undocumented DEFINE_ENUM_FLAG_OPERATORS macro from Windows SDK to implement the enum operators. Signed-off-by: Simon Rozman <simon@rozman.si>
* driver: PEER_UPDATE is supposed to be UPDATE_ONLYJason A. Donenfeld2021-10-192-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: main: avoid excessive function castJason A. Donenfeld2021-10-151-4/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: header: fix typoJason A. Donenfeld2021-10-141-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: use proper instance id boundsJason A. Donenfeld2021-10-145-9/+9
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: adapter: handle cases explicitly in dev query callbackJason A. Donenfeld2021-10-141-5/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* downlevelshim: remove in preparation for full WHQLJason A. Donenfeld2021-10-132-66/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: driver: don't allocate for instance IDJason A. Donenfeld2021-10-122-31/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: unify remaining poll loop formsJason A. Donenfeld2021-10-112-4/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: adapter: ensure file handle opens on win7Jason A. Donenfeld2021-10-111-7/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: adapter: open devinst after arrival and skip stub on win8Jason A. Donenfeld2021-10-112-20/+39
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: adapter: replace INF Include/Needs hack with stub deviceJason A. Donenfeld2021-10-111-90/+81
| | | | | | | | | | | | Apparently breaking the guarantee of "Universal INF"s receives the big tsk tsk, so this commit is yet another way to set SuggestedInstanceId. We create an SwDevice, with DEVPKEY_Device_ClassGuid set to GUID_DEVCLASS_NET and an empty HWID, and then create the software regkey and add the keys we need. We then destroy the SwDevice, and recreate a new one with the same instance ID, this time with the proper parameters. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: adapter: cleanup ROOT\NET enumerated devices on DLL loadJason A. Donenfeld2021-10-113-0/+39
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: migrate to swdevice and rework entire apiJason A. Donenfeld2021-10-0618-2085/+1765
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: adapter: set suggested instance ID using INF instead of ourselvesJason A. Donenfeld2021-10-063-37/+111
| | | | | | This might allow us to more successfully move to using SwDevice. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: adapter: get rid of registry polling on Win8+Jason A. Donenfeld2021-10-067-343/+190
| | | | | | | Wait for the device to come up as enabled instead using the proper Win8+ API. Fall back to polling for Win7. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: logger: remove function prefixesJason A. Donenfeld2021-10-062-52/+30
| | | | | | | The strings are already unique, so prefixing function names adds nothing. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: adapter: treat reboot required as real errorJason A. Donenfeld2021-10-064-60/+37
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: adapter: check for errors before waiting on reg keysJason A. Donenfeld2021-10-061-40/+46
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: adapter: remove deadgwdetect settingJason A. Donenfeld2021-10-061-128/+2
| | | | | | It's unclear whether this registry key is still being respected. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: adapter: cleanup wintrust shim if install failsJason A. Donenfeld2021-09-281-6/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: support MinGW in distributed headerJason A. Donenfeld2021-09-161-3/+18
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* props: unify import .lib of DLLsSimon Rozman2021-08-101-1/+0
| | | | | | | This moves downlevelshim.lib and those .lib from any future DLLs in this repo to the matching IntDir. Signed-off-by: Simon Rozman <simon@rozman.si>
* driver: logging: pass timestamp back to userspaceJason A. Donenfeld2021-08-083-62/+44
| | | | | | It turns out the precision is very useful for diagnosing weird errors. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: rundll32: make empty string if no instance idJason A. Donenfeld2021-08-081-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: incorporate new win7 code signing technique0.1Jason A. Donenfeld2021-08-022-0/+67
| | | | | | https://git.zx2c4.com/downlevel-driver-enabler/about/ Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* api: remove Authenticode supportJason A. Donenfeld2021-08-023-103/+5
| | | | | | These are no longer supported by the CAs. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Introduce WireGuardNTJason A. Donenfeld2021-08-0224-0/+5311
Co-authored-by: Simon Rozman <simon@rozman.si> Signed-off-by: Simon Rozman <simon@rozman.si> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>