본문 바로가기

HaPpY hApPy

검색하기
HaPpY hApPy
프로필사진 juniguya

  • 전체보기 (71)
    • Git (2)
    • DesignPattern (디자인패턴) (5)
      • GOF 23 Patterns (0)
      • Head First Design Pattern (5)
      • How to use those patterns! (0)
    • .NET (35)
      • WinApi (3)
      • WCF (1)
      • WPF (4)
      • Pinvoke (1)
      • Effective C# (11)
      • CLR_VIA_C# (0)
      • Unit Test (5)
      • Asp.Net Mvc (5)
    • .Net Core (1)
      • Asp.Net Core (1)
    • PowerShell (1)
    • Useful programs.. (5)
    • Windows (3)
    • 만들어볼 프로젝트 (0)
    • Perl 친구따라 강남 (3)
    • TroubleShooting Windows (5)
    • Visual Studio (5)
      • Tools (1)
      • Settings (4)
    • English Books~! (0)
    • DLL-COM-DCOM (1)
    • MSSQL (1)
    • Oracle (0)
    • MySql (2)
    • e.t.c. (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/03   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
Tags
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록.NET/Pinvoke (1)

HaPpY hApPy

FindWindow , 캡션명을 이용해서 열린 윈도우 창 핸들 가져오기.

using System; using System.Runtime.InteropServices;//DllImport namespace ConsoleApplication2 { class Program { //윈도우 캡션 명칭으로 프로세스 찾기 [DllImport("user32.dll")] public static extern IntPtr FindWindow(string lpClassName, string lpWindowName); static void Main(string[] args) { IntPtr pNotepad = FindWindow(null, "notepad");//찾고자하는 윈도우 캡션을 넣어주면됨 IntPtr pCalculate = FindWindow(null, "Calculrate"); // }..

.NET/Pinvoke 2013. 2. 1. 19:36
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바