静观其变

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
using System.Runtime.InteropServices;

       [System.Runtime.InteropServices.DllImport( 
"user32.dll" , EntryPoint="GetCursorPos" )] 
       
public extern static int GetCursorPos( ref POINTAPI lpPoint ); 

public struct POINTAPI 

     
public int x; 
    
public int y; 
}
 
        
POINTAPI _POINTAPI 
= new POINTAPI(); 
GetCursorPos ( 
ref _POINTAPI ); 
posted on 2005-07-21 09:28  wangyue  阅读(972)  评论(0编辑  收藏  举报