[C#]WinAPI적용 C# 2008. 7. 31. 01:32
using System.Runtime.InteropServices 네임스페이스 추가
[DIlImport("라이브러리")]

int GetWindowText(HWND hWnd, LPTSTR lpString, int nMaxCount);

을 C#으로 변형하면

public
static extern int GetWindowText(int hWnd, StringBuilder lpString, int nMaxCount);

출처 : http://jijanghun.tistory.com/21