Closed pl4nty closed 1 month ago
Seems like CoSetProxyBlanket
doesn't handle auth properly, so we need to initialize manually before IDOManager
.
CoInitializeSecurity(
PSECURITY_DESCRIPTOR.NULL,
-1,
[],
(IntPtr)null,
Rpc.RPC_C_AUTHN_LEVEL.RPC_C_AUTHN_LEVEL_DEFAULT,
Rpc.RPC_C_IMP_LEVEL.RPC_C_IMP_LEVEL_IMPERSONATE,
dwCapabilities: EOLE_AUTHENTICATION_CAPABILITIES.EOAC_STATIC_CLOAKING
);
This starts a download, but the temp file remains empty until timeout. Get-DeliveryOptimizationStatus
shows the download has completed though. I suspect an issue with the lock
Fixed test definition and support class
Describe the bug and how to reproduce
I've cloned the repo and targeted net6.0 on Windows 22631.3527, then modified
DoSvcTests.cs
to importSystem.Threading.Tasks
and return aTask
as required by NUnit.dotnet test UnitTests\PInvoke\DOSvc
fails with the following stack trace, running with admin or SYSTEM permissions. Apologies for the screenshot, it's on a VM without copy/paste:What code is involved
UnitTests\PInvoke\DOSvc
Expected behavior
Test passes successfully. I can't find a successful CI run though, so this might be a regression.