日期:2014-05-17 浏览次数:21200 次
typedef struct
{
int Count;
struct
{
int Press;
int Code;
}Keys[6];
}VK_SENDKEY,*PVK_SENDKEY;
[StructLayout(LayoutKind.Sequential)]
public struct Key
{
public int Press;
public int Code;
}
[StructLayout(LayoutKind.Sequential)]
public struct VK_SENDKEY
{
public int Count;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)]
public Key[] Keys;
}