win32API (with using System.Runtime.InteropServices;)


         public static extern IntPtr FindWindow(string lpClassName, string lpWindowName);

         public static extern void SetForegroundWindow(IntPtr hWnd);

         public static extern void BringWindowToTop(IntPtr hWnd);
         public static extern void SetWindowText(IntPtr hWnd, string strName);

         //윈도우의 DC 핸들 얻기 ( 화면 그리기 사용 )
         public static extern IntPtr GetWindowDC(IntPtr hWnd);

         public static extern bool GetClientRect(IntPtr hWnd, [In, Out] ref RECT rect);

         //Screen 좌표 기준 ( local 좌표 )
          public static extern bool ScreenToClient(IntPtr hWnd, [In, Out] ref RECT rect);


         public static extern void PostMessage(IntPtr hWnd, int nMsg, int nWparam, int nLparam);

         public static extern void SendMessage(IntPtr hWnd, int nMsg, int nWparam, int nLparam);


         public static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo);

         public static extern void mouse_event(int dwFlags, int dx, int dy, int cButtons, int dwExtraInfo);

         public static extern void SetCursorPos(int nX, int nY);

         public static extern void GetCursorPos(IntPtr Point);

         //windows HotKey설정
         public static extern bool RegisterHotKey(IntPtr hWnd, int id, int fsModifiers, int vlc);

         public static extern bool UnregisterHotKey(IntPtr hWnd, int id);



         public static extern IntPtr CreateDC(string str1, int n1, int n2, int n3);

         public static extern int GetPixel(IntPtr hWnd, int nX, int nY);

         //ini파일의 키값을 수정/입력
         public static extern bool WritePrivateProfileString(string lpAppName, string lpKeyName, string lpString, string lpFileName);
         public static extern uint GetPrivateProfileInt(string lpAppName, string lpKeyName, int nDefault, string lpFileName);
         public static extern int GetPrivateProfileString(string lpAppName, string lpKeyName, string lpDefault, StringBuilder lpReturnedString, int nSize, string lpFileName);


         public static extern int PlaySound(String pszSound, int hmod, int falgs);

C# 2010. 12. 4. 02:25

댓글을 달아 주세요

  1. 이전 댓글 더보기
  2. BlogIcon 匿名 2014.09.30 16:28  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  3. BlogIcon 匿名 2014.09.30 16:29  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  4. BlogIcon nobis sale 2014.10.23 16:43  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  5. BlogIcon woolrich Sito ufficiale 2014.11.06 12:39  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  6. BlogIcon botanical slimming 2014.11.11 01:56  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  7. BlogIcon meizitang soft gel 2014.11.11 01:56  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  8. BlogIcon 眼镜批发市场 2014.11.12 00:51  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  9. BlogIcon doudoune moncler 2012 france 2014.11.12 11:44  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  10. BlogIcon moncler toddler sale 2014.11.12 11:46  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  11. BlogIcon Guangzhou fake glasses wholesale 2014.11.17 09:04  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  12. BlogIcon piumini woolrich 2014.11.20 03:29  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  13. 匿名 2014.12.03 05:44  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  14. BlogIcon boutique louis vuitton 2014.12.03 10:45  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  15. BlogIcon Le Pliage Longchamp Price In France 2015.01.08 22:56  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  16. 匿名 2015.02.11 14:03  수정/삭제  댓글쓰기
















  17. BlogIcon t shirt burberry pas cher 2015.03.27 21:10  수정/삭제  댓글쓰기

    뉴수ces derniers jours. il y a vraiment des saints, le Pr&eacute;sident de l'amour,Color&eacute;.
    au d&eacute;but de la dynastie Qing Yuan Shikai, dit que c'est comme avant.La violation des dispositions seront punis. ouest > le temps de repos, d&eacute;jeuner au total 32 plat tenu trois jours altruiste Hall. l'Allemagne a &eacute;tabli un commandement oriental, "Hun ne fiche pas,Apr&egrave;s la bata가지

  18. BlogIcon basket burberry 2015.03.31 00:03  수정/삭제  댓글쓰기

    는종陈佐洱: quelques personnes de certaines dispositions de la loi fondamentale sur l'&eacute;tag&egrave;re &agrave; Hong Kong

    Source: Phoenix de temps de mise &agrave; jour: 2015-03-29 13: 11 h 14 de classification: information des mots - cl&eacute;s: la loi fondamentale, Hong Kong, un pays, deux syst&egrave;mes

    陈佐洱: quelques personnes de certaines dispositions de la loi fondamentale sur l'&eacut단리

  19. 匿名 2015.04.03 13:49  수정/삭제  댓글쓰기

    마관Lacoste boots and a beret big mesh, or even the entire pleated skirt, tights and wool biker boots. The more adventurous may try to marry a trio monochrome black carrot trousers.

    Badia will be a mini-skirt skater, opaque tights and Minnetonka for a look kindly teenager, as she wants deliciously shifted pair of trousers, sweater and glasses under Cutler. Olympia for its partner with a slim we알마

  20. 匿名 2015.04.04 02:54  수정/삭제  댓글쓰기

    가마presents the visible face of cloud computing that most people have already experienced. The advantages of web-based applications such as Gmail, Twitter, and Facebook are pretty obvious - there's nothing to download to your PC, you can access them from anywhere,Indian Motorcycles - A Brief , they're constantly being enhanced and every time updates are made they become instantly available to any use있지

  21. 匿名 2015.04.09 00:24  수정/삭제  댓글쓰기

    이는Known publishers from the foreign press, secular, artists, designers and fashionsitas, everybody came from the collection of women Moncler Marmelade Techno equipped with seat belts parka to be seen. They are all "oohed and ahhed" while enjoying hot cider and hot chocolate. Personally.

    Ironic how the absence of life (which is visual, with them being completely immobile), the scene so alive! 드지

Powerd by Tistory, designed by criuce