Closed icnocop closed 5 years ago
How would we test it? Can this method be called outside of a Windows Service?
I suspect the problem here isn't the array -- it's probably the string
fields. But anyway this struct doesn't follow any of our current guidelines so I'm rewriting them...
Hi.
Thank you for the PInvoke libraries.
The
ServiceFailureActions
structure has an array ofServiceControlAction
s and this seems to cause issues when trying to pass it toChangeServiceConfig2
.When I try, I get the following exception: "PInvoke.Win32Exception (0x80004005): The parameter is incorrect".
All the code examples I've seen that use
IntPtr
instead of an array work without issues.Thank you.