小儿科的东西。//关于windows窗口操作的api
//根据进程获得程序的主窗口
Function ulong GetProcessWindow_local(ulong processid) Library "user32.dll" alias for "GetProcessWindow"
//根据窗口获得进程
SUBROUTINE GetWindowThreadProcessId_local(ulong hwnd, ref ulong pid) Library "user32.dll" alias for "GetWindowThreadProcessId"
Function ulong FindWindowA_local(String lpClassName,String lpWindowName) Library "user32.dll" alias for "FindWindowA"
Function Long SetWindowPos_local(Long hwnd, Long ord, Long px, Long py, Long dx, Long dy, Long uflag) Library "user32.dll" alias for "SetWindowPos"
Function int GetClassName_local(ulong hWnd, ref string lpClassName, int nMaxCount) library "user32" alias for "GetClassNameA"
function long GetWindowText_local(long hwnd, ref string lpString, long nMaxCount) library "user32" alias for "GetWindowTextA"
function long SetWindowText_local(long hwnd, string lpString ) library "user32" alias for "SetWindowTextA"
Function ulong FindWindow_Handle_local(ulong lpClassName,String lpWindowName) Library "user32.dll" alias for "FindWindowW"
Function ulong FindWindowEx_local(ulong hWnd1 , ulong hWnd2 , String lpClassName , String lpsz2 ) Library "user32" Alias for "FindWindowExA"
Function Ulong FindWindowByWindowName_local(String lp_WindowName ) Library "user32" Alias for "FindWindowByWindowNameA"
function ulong GetWindow_local(ulong hwindow,int nrelationship) library "user32.dll " alias for "GetWindow"
//将窗口恢复到原来的位置
SUBROUTINE SwitchToThisWindow_local(Long hWnd,boolean fAltTab ) Library "user32.dll" alias for "SwitchToThisWindow"
//获得指定的窗口
Function ulong GetWindow_local(ulong hWd,ulong ul_wm_message) Library "user32.dll" alias for "GetWindow"
FUNCTION ulong lstrcat_local(ref string lpString1,ref string lpString2) LIBRARY "kernel32.dll" ALIAS FOR "lstrcatA"
FUNCTION ulong lstrcmp_local(ref string lpString1,ref string lpString2) LIBRARY "kernel32.dll" ALIAS FOR "lstrcmpA"
FUNCTION ulong lstrcmpi_local(ref string lpString1,ref string lpString2) LIBRARY "kernel32.dll" ALIAS FOR "lstrcmpiA"
FUNCTION ulong lstrcpy_local(ref string lpString1,ref string lpString2) LIBRARY "kernel32.dll" ALIAS FOR "lstrcpyA"
FUNCTION ulong lstrcpyn_local(ref string lpString1,ref string lpString2,ulong iMaxLength) LIBRARY "kernel32.dll" ALIAS FOR "lstrcpynA"
FUNCTION ulong lstrlen_local(ref string lpString) LIBRARY "kernel32.dll" ALIAS FOR "lstrlenA"
Function long StrCopy_local(long Destination, REF string Source, long Size) library "kernel32.dll" Alias for "RtlMoveMemory"
Function long LocalAlloc_local(long Flags, long Bytes) library "kernel32.dll" alias for "GetProcessWindow"
Function long LocalFree_local(long MemHandle) library "kernel32.dll"
FUNCTION ulong MapVirtualKeyA_local(UINT uCode, UINT uMapType) Library "user32.dll" alias for "MapVirtualKeyA"
//剪贴版得函数
FUNCTION boolean OpenClipboard_local( UINT hWndNewOwner) Library "user32.dll" alias for "OpenClipboard"
FUNCTION boolean EmptyClipboard_local( ) Library "user32.dll" alias for "EmptyClipboard"
FUNCTION boolean CloseClipboard_local() Library "user32.dll" alias for "CloseClipboard"