public class MsgBox : FakeBase
{
public MsgBox() { HookDelegate = new MessageBoxDelegate(MsgBoxCallback); }
private readonly ValueTypeConverter<int> _converter = new ValueTypeConverter<int>();
public override void Returns(object value)
{
_converter.Value = value;
base.Returns(value);
}
[UnmanagedFunctionPointer(CallingConvention.StdCall, SetLastError = true)]
private delegate int MessageBoxDelegate(string prompt, int buttons, string title, string helpfile, int context);