it seems weird, still not work work...
Win10 D3DKMTCreateSynchronizationObject2 function fails to create global shared monitor fence on WDDM 2.0+ environment
lambert liu
0
Reputation points
How can I resolve the issue of the D3DKMTCreateSynchronizationObject2 function failing to create a global shared monitor fence on Win10 with WDDM 2.0+ environment? When I try this operation, it fails with return value 0xC000000D, while the successful operation returns 0. Here are the argument details for both operations:
For the successful operation:
D3DKMT_CREATESYNCHRONIZATIONOBJECT2 arg={0}
arg.hDevice = device_handle;
arg.Info.Type = D3DDDI_MONITORED_FENCE;
arg.Flags.Shared = 1;
arg.Flags.NtSecuritySharing = 1;
NTSTATUS ret = D3DKMTCreateSynchronizationObject2(arg);
For the failed operation:
D3DKMT_CREATESYNCHRONIZATIONOBJECT2 arg={0}
arg.hDevice = device_handle;
arg.Info.Type = D3DDDI_MONITORED_FENCE;
arg.Flags.Shared = 1;
NTSTATUS ret = D3DKMTCreateSynchronizationObject2(arg);