[StructLayout(LayoutKind.Sequential)]
public struct SERVICE_FAILURE_ACTIONS
{
public int dwResetPeriod;
[MarshalAs(UnmanagedType.LPTStr)]
public string lpRebootMsg;
[MarshalAs(UnmanagedType.LPTStr)]
public string lpCommand;
public int cActions;
public IntPtr lpsaActions;
}
Declare Function SERVICE_FAILURE_ACTIONS Lib "advapi32.dll" (TODO) As TODO
Use marshalled SC_ACTION structures for lpsaActions.
Do you know one? Please contribute it!
None.
Please add some!
See ChangeServiceConfig2 for sample code.