예제 #1
0
        public bool AllocateLocallyUniqueId(out Luid luid)
        {
            var stopwatch = Stopwatch.StartNew();
            var result    = AttachedObject.AllocateLocallyUniqueId(out luid);

            stopwatch.Stop();

            var callEvent = new PInvokeBoolCallCompletedTraceEvent
            {
                DllName    = AdvApi32Dll,
                Duration   = stopwatch.Elapsed,
                MethodName = nameof(AllocateLocallyUniqueId),
                Result     = result
            };

            callEvent.OutArgs.Add(nameof(luid), luid);
            LogVerbose(callEvent);

            return(result);
        }