onnxruntime
ef41764c - Delay load shell32 (#30889)

Commit
24 days ago
Delay load shell32 (#30889) ### Description PR https://github.com/microsoft/onnxruntime/pull/27379 introduced a static dependency on shell32.dll. Since shell32.dll depends on user32.dll, this prevents loading onnxruntime.dll in processes that enabled the mitigation PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY.DisallowWin32kSystemCalls (Win32k lockdown), causing an ERROR_INTERNAL_ERROR (1359). The use of shell32.dll is only for svchost processes, so it's okay to just delay load it. ### Motivation and Context WebNN is migrating ORT graph compilation to a sandboxed process with Win32k lockdown. Dependency on shell32.dll will cause onnxruntime.dll to fail to get loaded in that process.
Author
Parents
Loading