给个列子: API FindWindow
---
/// Return Type: HWND->HWND__*
///lpClassName: LPCSTR->CHAR*
///lpWindowName: LPCSTR->CHAR*
[System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint="FindWindowA")]
public static extern System.IntPtr
FindWindowA([System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(S
ystem.Runtime.InteropServices.UnmanagedType.LPStr)] string lpClassName, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string lpWindowName) ;
/// Return Type: HWND->HWND__*
///lpClassName: LPCWSTR->WCHAR*
///lpWindowName: LPCWSTR->WCHAR*
[System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint="FindWindowW")]
public static extern System.IntPtr
FindWindowW([System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(
System.Runtime.InteropServices.UnmanagedType.LPWStr)] string lpClassName, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPWStr)] string lpWindowName) ;