diff --git a/PInvoke/Security/AdvApi32/WinSvc.cs b/PInvoke/Security/AdvApi32/WinSvc.cs
index ac3fecd9..73b5747c 100644
--- a/PInvoke/Security/AdvApi32/WinSvc.cs
+++ b/PInvoke/Security/AdvApi32/WinSvc.cs
@@ -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);
/// Changes the configuration parameters of a service.
@@ -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);
/// Changes the optional configuration parameters of a service.