MicrosoftVisualStudio2010做的C#简单的实时监听鼠标位置实例,主要代码:publicclassWin32Api{[StructLayout(LayoutKind.Sequential)]publicclassPOINT{publicintx;publicinty;}[StructLayout(LayoutKind.Sequential)]publicclassMouseHookStruct{publicPOINTpt;publicinthwnd;publicintwHitTestCode;publicintdwExtraInfo;}publicdelegate