
Windows API 函数的解析
文章平均质量分 79
tunnel115
书山有路,勤为径
展开
-
API函数之一 SetWindowPos
SetWindowPos FunctionChangesthe size, position, and Z order of a child, pop-up, or top-levelwindow. These windows are ordered according to their appearance on thescreen. The topmost window rece原创 2008-08-28 22:38:00 · 973 阅读 · 0 评论 -
API函数之二 ShowWindow Function
The ShowWindow function sets the specified windows show state. Syntax BOOL ShowWindow( HWND hWnd, int nCmdShow );ParametershWnd[in] Handle to the window. nCmdShow[in] Sp原创 2008-08-29 15:37:00 · 722 阅读 · 0 评论 -
API函数之三 MessageBox Function
MessageBox FunctionDisplaysa modal dialog box that contains a system icon, a set of buttons, and abrief application-specific message, such as status or errorinformation. The message box returns原创 2008-08-31 11:14:00 · 634 阅读 · 0 评论 -
API函数之三 SetTimer Function
The SetTimer function creates a timer with the specified time-out value.SyntaxUINT_PTR SetTimer( HWND hWnd, UINT_PTR nIDEvent, UINT uElapse, TIMERPROC lpTimerFunc);ParametershWnd[i原创 2008-08-30 21:04:00 · 848 阅读 · 0 评论 -
有关GetPrivateProfileString的使用方法
有关GetPrivateProfileString的使用方法 ====================================================== 函数返回值为string的长度(long型),而从ini文件获得的字符串则保留在目的缓冲器中 DWORD GetPrivateProfileString( LPCTSTR lpAppName, //配置文件的section名 L转载 2008-10-15 20:42:00 · 12108 阅读 · 0 评论 -
进程查看器
实现原理:要得到当前进程信息。要用到进程快照的概念。有几个重要的函数。CreateToolHelp32Snapshot:HANDLE WINAPI CreateToolhelp32Snapshot( __in DWORD dwFlags, __in DWORD th32ProcessID); 查看系统快照的第一个进程信息:BOOL WINAPI Proc原创 2009-04-26 09:35:00 · 609 阅读 · 0 评论 -
Shell_NotifyIcon
Shell_NotifyIcon Shell_NotifyIcon BOOL Shell_NotifyIcon( DWORD dwMessage, PNOTIFYICONDATA lpdata); ParametersdwMessage[in] A variable of type DWORD that specifies the ac原创 2009-06-25 19:45:00 · 779 阅读 · 0 评论