Beispiel #1
0
 /// <summary>
 /// Set the work on behalf ticket.
 /// </summary>
 /// <param name="ticket">The ticket to set.</param>
 /// <param name="throw_on_error">True to throw on error.</param>
 /// <returns>The status code from the set.</returns>
 public static NtStatus SetWorkOnBehalfThread(WorkOnBehalfTicket ticket, bool throw_on_error)
 {
     return(Current.Set(ThreadInformationClass.ThreadWorkOnBehalfTicket, new RtlWorkOnBehalfTicket()
     {
         WorkOnBehalfTicket = ticket.Ticket
     }, throw_on_error));
 }
Beispiel #2
0
 /// <summary>
 /// Set the work on behalf ticket.
 /// </summary>
 /// <param name="ticket">The ticket to set.</param>
 public static void SetWorkOnBehalfThread(WorkOnBehalfTicket ticket)
 {
     SetWorkOnBehalfThread(ticket, true);
 }