message: Add failure actions FFI
diff: @@ -185,6 +185,28 @@ DEFINE_GUID!{NAMED_PIPE_EVENT_GUID,
  0x1f81d131, 0x3fac, 0x4537, 0x9e, 0x0c, 0x7e, 0x7b, 0x0c, 0x2f, 0x4b, 0x55}
  DEFINE_GUID!{CUSTOM_SYSTEM_STATE_CHANGE_EVENT_GUID,
  0x2d7a2816, 0x0c5e, 0x45fc, 0x9c, 0xe7, 0x57, 0x0e, 0x5e, 0xcd, 0xe9, 0xc9}
  +ENUM!{enum SC_ACTION_TYPE {
  + SC_ACTION_NONE = 0,
  + SC_ACTION_RESTART = 1,
  + SC_ACTION_REBOOT = 2,
  + SC_ACTION_RUN_COMMAND = 3,
  +}}
  +STRUCT!{struct SC_ACTION {
  + Type: SC_ACTION_TYPE,
  + Delay: DWORD,
  +}}
  +pub type LPSC_ACTION = *mut SC_ACTION;
  +STRUCT!{struct SERVICE_FAILURE_ACTIONSW {
  + dwResetPeriod: DWORD,
  + lpRebootMsg: LPWSTR,
  + lpCommand: LPWSTR,
  + cActions: DWORD,
  + lpsaActions: LPSC_ACTION,
  +}}
  +pub type LPSERVICE_FAILURE_ACTIONSW = *mut SERVICE_FAILURE_ACTIONSW;
  +STRUCT!{struct SERVICE_FAILURE_ACTIONS_FLAG {
  + fFailureActionsOnNonCrashFailures: BOOL,
  +}}
  DECLARE_HANDLE!{SC_HANDLE, SC_HANDLE__}
  pub type LPSC_HANDLE = *mut SC_HANDLE;
  DECLARE_HANDLE!{SERVICE_STATUS_HANDLE, SERVICE_STATUS_HANDLE__}
  