public WorkOnBehalfTicket(int thread_id, int creation_time_low, ulong xor_key)
        {
            RtlWorkOnBehalfTicket ticket = new RtlWorkOnBehalfTicket()
            {
                ThreadId = (uint)thread_id, ThreadCreationTimeLow = (uint)creation_time_low
            };

            Ticket = ticket.WorkOnBehalfTicket ^ xor_key;
        }
Example #2
0
        public WorkOnBehalfTicket(int thread_id, long creation_time, ulong xor_key)
        {
            RtlWorkOnBehalfTicket ticket = new RtlWorkOnBehalfTicket()
            {
                ThreadId = (uint)thread_id,
                ThreadCreationTimeLow = (uint)(creation_time & 0xFFFFFFFF)
            };

            Ticket = ticket.WorkOnBehalfTicket ^ xor_key;
        }