nullableenabled
David Hall 2023-10-17 17:55:37 -06:00
parent b9bc3bcf98
commit 874d89796c
2 changed files with 8 additions and 2 deletions

View File

@ -3717,8 +3717,7 @@ public static partial class User32
// https://docs.microsoft.com/en-us/windows/desktop/dlgbox/mb-getstring LPCWSTR WINAPI MB_GetString( UINT wBtn );
[DllImport(Lib.User32, SetLastError = false, ExactSpelling = true)]
[PInvokeData("", MSDNShortId = "D2AF238D-F5A8-477D-BF47-0F5D4D68B27E")]
[return: MarshalAs(UnmanagedType.LPWStr)]
public static extern string? MB_GetString(uint wBtn);
public static extern StrPtrUni MB_GetString(uint wBtn);
/// <summary>
/// <para>Plays a waveform sound. The waveform sound for each sound type is identified by an entry in the registry.</para>

View File

@ -55,6 +55,13 @@ public partial class User32Tests
[Test()]
public void LockWorkStationTest() => throw new NotImplementedException();
[Test()]
public void MB_GetStringTest()
{
Assert.NotNull((string?)MB_GetString(1));
TestContext.WriteLine((string?)MB_GetString(1));
}
[Test()]
public void RealGetWindowClassTest() => throw new NotImplementedException();