Пример #1
0
 // Token: 0x06001EC0 RID: 7872 RVA: 0x0008B6A0 File Offset: 0x000898A0
 private void DeferredSessionChange(int eventType, IntPtr eventData)
 {
     try
     {
         NativeMethods.WTSSESSION_NOTIFICATION structure = new NativeMethods.WTSSESSION_NOTIFICATION();
         Marshal.PtrToStructure(eventData, structure);
     }
     catch (Exception ex)
     {
         ReplayEventLogConstants.Tuple_SessionChangeFailed.LogEvent(ex.ToString(), new object[0]);
         throw;
     }
 }
Пример #2
0
 private int ServiceCommandCallbackEx(int command, int eventType, IntPtr eventData, IntPtr eventContext)
 {
     int num = 0;
     switch (command)
     {
         case 13:
             new MyServiceBase.DeferredHandlerDelegateAdvanced(this.DeferredPowerEvent).BeginInvoke(eventType, eventData, (AsyncCallback)null, (object)null);
             break;
         case 14:
             MyServiceBase.DeferredHandlerDelegateAdvancedSession delegateAdvancedSession = new MyServiceBase.DeferredHandlerDelegateAdvancedSession(this.DeferredSessionChange);
             NativeMethods.WTSSESSION_NOTIFICATION wtssessionNotification = new NativeMethods.WTSSESSION_NOTIFICATION();
             Marshal.PtrToStructure(eventData, (object)wtssessionNotification);
             delegateAdvancedSession.BeginInvoke(eventType, wtssessionNotification.sessionId, (AsyncCallback)null, (object)null);
             break;
         default:
             this.ServiceCommandCallback(command);
             break;
     }
     return num;
 }