Hello, it turns out I broke the following code (throws an exception on construction) when I moved up from .NET 4.5 to .NET 4.5.1.
<System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential)> Public Structure TimerCaps
Public periodMin As Integer
Public periodMax As Integer
Private Shared Function timeGetDevCaps(ByRef caps As TimerCaps, ByVal sizeOfTimerCaps As Integer) As Integer
Shared Sub New()
' Get multimedia timer capabilities.
I found this issue report, which seems like a good match, except I don't know how to modify the above code analogously to the "type" cast additions in the solution. Mine is a structure, not a type.
Can anyone suggest a change to my code to make it 4.5.1 compliant, assuming that the article applies?
Thanks very much.