ArrayList msgList = new ArrayList();
EVENTMSG curMSG = null;
try
{
curMSG = (EVENTMSG)Marshal.PtrToStructure(lParam, typeof(EVENTMSG));
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
}
msgList.Add(curMSG);
如果这个输出的话Console.Write(curMSG.ToString());总是输出"EVENTMSG"
请问如何输出EVENTMSG curMSG里的内容?
EVENTMSG curMSG = null;
try
{
curMSG = (EVENTMSG)Marshal.PtrToStructure(lParam, typeof(EVENTMSG));
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
}
msgList.Add(curMSG);
如果这个输出的话Console.Write(curMSG.ToString());总是输出"EVENTMSG"
请问如何输出EVENTMSG curMSG里的内容?
public class EVENTMSG
{
public UInt32 message;
public UInt32 paramL;
public UInt32 paramH;
public Int32 time;
public UIntPtr hwnd;
}
Console.Write(curMSG.message)
public class EVENTMSG
{
public UInt32 message;
public UInt32 paramL;
public UInt32 paramH;
public Int32 time;
public UIntPtr hwnd;
}
查查看,有没有关于EVENTMSG的文档, ID对应详细信息的。ID就是这里面的UInt32 message.