Fixed bug #304 in ChangeServiceConfig parameter lpDependencies

pull/328/head
dahall 2022-07-13 16:13:10 -06:00
parent 8ef5c1646a
commit cdc3005c36
1 changed files with 4 additions and 2 deletions

View File

@ -1440,7 +1440,8 @@ namespace Vanara.PInvoke
[return: MarshalAs(UnmanagedType.Bool)]
[PInvokeData("winsvc.h", MSDNShortId = "ms681987")]
public static extern bool ChangeServiceConfig(SC_HANDLE hService, ServiceTypes nServiceType, ServiceStartType nStartType, ServiceErrorControlType nErrorControl,
[Optional] string lpBinaryPathName, [Optional] string lpLoadOrderGroup, out uint lpdwTagId, [In, Optional] string lpDependencies,
[Optional] string lpBinaryPathName, [Optional] string lpLoadOrderGroup, out uint lpdwTagId,
[In, Optional, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NullTermStringArrayMarshaler), MarshalCookie = "Auto")] string[] lpDependencies,
[Optional] string lpServiceStartName, [Optional] string lpPassword, [Optional] string lpDisplayName);
/// <summary>Changes the configuration parameters of a service.</summary>
@ -1549,7 +1550,8 @@ namespace Vanara.PInvoke
[return: MarshalAs(UnmanagedType.Bool)]
[PInvokeData("winsvc.h", MSDNShortId = "ms681987")]
public static extern bool ChangeServiceConfig(SC_HANDLE hService, ServiceTypes nServiceType, ServiceStartType nStartType, ServiceErrorControlType nErrorControl,
[Optional] string lpBinaryPathName, [Optional] string lpLoadOrderGroup, [Optional] IntPtr lpdwTagId, [In, Optional] string lpDependencies,
[Optional] string lpBinaryPathName, [Optional] string lpLoadOrderGroup, [Optional] IntPtr lpdwTagId,
[In, Optional, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NullTermStringArrayMarshaler), MarshalCookie = "Auto")] string[] lpDependencies,
[Optional] string lpServiceStartName, [Optional] string lpPassword, [Optional] string lpDisplayName);
/// <summary>Changes the optional configuration parameters of a service.</summary>