基本信息
源码名称:新编Windows API参考大全.doc
源码大小:0.72M
文件格式:.doc
开发语言:C/C++
更新时间:2020-10-12
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
API参考大全
API参考大全
目录 内容简介 9 前 言 9 目 录 9 1.1 为什么使用Win32 API …………………………………………………………………1 10 1.2 Win32 API简介 …………………………………………………………………………1 10 1.3 综述………………………………………………………………………………………11 10 第一章 Win32 API概论 12 1.1为什么使用 Wu32 API 12 1.2 Win32 API 简介 12 1.2.1 窗口管理函数 13 1.2.2 窗口通用控制 16 1.2.3 Shell特性 16 1.2.4 图形设备接口 17 1.2.5 系统服务 19 1.2.6 国际特性 24 1.2.7 网络服务 24 1.3综述 25 第二章 窗口管理函数(Window Control Function) 25 2.1 易用特性函数(Accessibility Features) 25 2.1.1 SoundSentryProc 25 2.1.2 SystemParametersinfo 26 2.2 按钮函数(Button) 35 2.2.1 CheckDlgButton 35 2.2.2 CheckRadioButton 35 2.2.3 IsDlgButtonChecked 36 2.3 插入标记(^)函数(Caret) 36 2.3.1 CreateCaret 36 2.3.2 DestroyCaret 37 2.3.3 GetCaretBlinkTime 37 2.3.4 GetCaretPos 38 2.3.5 HideCaret 38 2.3.6 SetCaretBlinkTime 38 2.3.7 SetCaretPos 39 2.3.8 ShowCaret 39 2.4 组合框函数(Combo box) 39 2.4.1 DlgDirListComboBox 39 2.4.2 DlgDirSelectEx 40 2.4.3 DlgDirSelectComboBoxEx 41 2.5 通用对话框函数(Common Dialog Box) 41 2.5.1 ChooseColor 41 2.5.2 ChooseFont 42 2.5.3 CommDlgExtendedEorror 43 2.5.4 FindText 44 2.5.5 GetFileTitle 45 2.5.6 GetOpenFileName 46 2.5.7 GetSaveFileName 46 2.5.8 PageSetupDlg 47 2.5.9 PrintDlg 47 2.5.10 PrintdlgEx 48 2.5.11 ReplaceText 48 2.5.12 CCHookProc 49 2.5.13 CFHookProc 50 2.5.14 FRHookProc 51 2.5.15 OFNGookProc 52 2.5.16 OFNHookProcOldStyle 53 2.5.17 PagePaintHook 53 2.5.18 pageSetupHook 54 2.5.19 PrintHookProc 55 2.5.20 SetupHookProc 55 2.6 标函数(Cursor) 56 2.6.1 ClipCursor 56 2.6.2 CopyCursor 56 2.6.3 CreateCursor 57 2.6.4 DestroyCursor 57 2.6.5 GetClipCursor 57 2.6.6 GetCursor 58 2.6.7 GetCursorpos 58 2.6.8 LoadCursorFromFile 58 2.6.9 SetCursor 59 2.6.10 SetCursorPos 59 2.6.11 SetSystemCursor 60 2.6.12 ShowCursor 60 2.6.13 LoadCursor 61 2.7对话框函数Dialog Box 61 2.7.1 CreateDialog 61 27.2 CreateDialoglndirect 62 2.7.3 CreateDialoglndirectParam 63 2.7.6 DialogBox 65 2.7.7 DialogBoxlndirect 66 2.7.8 DialogBoxlndirectParam 67 2.7.9 DialogBoxParam 68 2.7.10 DialogProc 69 2.7.11 EndDialog 69 2.7.12 GetDialogBaseUnits 70 2.7.13 GetDigCtrllD 70 2.7.14 GetDigltem 71 2.7.15 GetDlgltemlnt 71 2.7.16 GetDlgltemText 72 2.7.17 GetNextDlgGroupltem 72 2.7.18 GetNexTDlgTabltem 73 2.7.19 IsDialogMessage 73 2.7.20 MapDialogRect 74 2.7.21 MessageBox 74 2.7.22 MessageBoxEx 77 2.7.23 SendDlgltemMessage 77 2.7.24 SetDlgltemlnt 78 2.7.25 SetDlgltemText 78 2.7.26 MessageBoxlndirect 78 2.8 编辑控制函数(Edit Control) 79 2.8.1 EditWordBreakproc 79 2.9 图标函数(Icon) 80 2.9.1 Copylcon 80 2.9.2 Createlcon 80 2.9.3 CreatelconFromResource 81 2.9.4 CreatelconFromResourceEx 81 2.9.5 Create;cpm;mdorect ZIWe 82 2.9.6 Destroylcon 82 2.9.7 Drawlcon 83 2.9.8 DrawlconEx 83 2.9.9 ExtractAssociatedlcon 84 2.9.10 Extractlcon 85 2.9.11 ExtractlconEx 85 2.9.12 Getlconlnfo 86 2.9.13 LookuplconldFromDirectory 86 2.9.14 LookuplconldFrom 87 2.9.15 Loadlcon 88 2.10 键盘加速器函数(Keyboard Accelerator) 88 2.10.1 CopyAcceleratorTable 88 2.10.2 CreateAcceleratorTable 89 2.10.3 DestroyAcceleratorTable 89 2.10.4 LoadAccelerators 89 2.10.5 TranslateAccelerator 90 2.11 键盘输入函数(Keyboard Input) 90 2.11.1 ActivateKeyboadLayout 90 2.11.2 EnableWindow 91 2.11.3 GetActiveWindows 92 2.11.4 GetAsyncKeyState 92 2.11.5 GetFocus 93 2.11.6 GetKeyboardLayout 93 2.11.7 GetKeyboardLayoutList 93 2.11.8 GetKeyboardLayoutName 94 2.11.9 GetKeyboardState 94 2.11.10 GetKeyNameText 95 2.11.11 GetKeyState 95 2.11.12 IsWindowEnabled 96 2.11.13 keybd_event 96 2.11.14 LoadKeyboardLayout 97 2.11.15 MapVirtualKey 98 2.11.16 MapVlrtualKeyEx 98 2.11.17 OemKeyScan 99 2.11.18 RegisterHotKey 100 2.11.19 Sendlnput 100 2.11.20 SetActiveWindow 101 2.11.21 SetFocus 101 2.11.22 SetKeyboardState 102 2.11.23 ToAscii 102 2.11.24 ToAsciiCx 103 2.11.25 ToUnicode 103 2.11.26 ToUnicodeEx 104 2.11.27 UnloadKeyboardL 104 2.11.28 UnreglsterHotKey 105 2.11.29 VkKeyScan 105 2.11.30 vkKeyScanEx 106 2.11.31 GetKBCodePage 106 2.12 列表框函数(List boX) 106 2.12.1 DlgDirList 106 2.12.2 DlgDirSelectEx 107 2.13 菜单函数(Menu) 107 2.13.1 CheckMenuRadlol 108 2.13.2 CreateMenu 108 2.13.3 CreatePopupMenu 108 2.13.4 DeleteMenu 109 2.13.5 DestroyMenu 109 2.13.6 DrawMenuBar 109 2.13.7 EnableMenultem 110 2.13.8 GetMenu 110 2.13.9 GetMenuDefaultltem 111 2.13.10 GetMenultemlD 111 2.13.11 GetMenultemID 111 2.13.12 GetMenultemlnfo 112 2.13.13 GetMenultemRect 112 2.13.14 getSubMenu 112 2.13.15 GetSystemMenu 113 2.13.16 HlllteMenultem 113 2.13.17 InsertMenultem 114 2.13.18 IsMenu 114 2.13.19 LoadMenu 115 2.13.20 LoadMenulndirect 115 2.13.21 MenultemFromPo 115 2.13.22 RemoveMenu 116 2.13.23 SetMenu 116 2.13.24 SetMenuDefaultltem 116 2.13.25 SetMenultemBitm 117 2.13.26 SetMenultemlnfo 117 2.13.27 TrackPopupMenu 118 2.13.28 TrackPopupMenuEx 119 2.13.29 AppendMenu 120 2.13.30 CheckMenultem 121 2.13.31 GetMenuCheckMarkDimensions 121 1.13.32 GetMenuState 122 2.13.33 GetMenuString 122 2.13.34 InsertMenu 123 2.13.35 ModifyMenu 124 2.14 消息和消息总队列函数(Message and Message Queue) 125 2.14.1 BroadcastSystemMessage 125 2.14.2 DispatchMessage 126 2.14.3 GetlnputState 126 2.14.4 GetMessage 126 2.14.5 GetMessageExtralnfo 127 2.14.6 GetMessagePos 127 2.14.7 GetMessageTime 128 2.14.8 GetQueueStatus 128 2.11.9 InSendMessage 129 2.14.10 InSendMessageEx 129 2.14.11 PeekMessage 129 2.14.12 PostMessage 130 2.14.13 PostQuitMessage 131 2.14.14 PostThreadMessage 131 2.14.15 RegisterWindowsMessage 132 2.14.16 ReplyMessage 132 2.14.17 SendAsyncProc 133 2.14.18 SendMessage 133 2.14.19 SendMessageCallback 134 2.14.20 SendMessageTImeout 134 2.14.21 SendNotifyMessage 135 2.14.22 SendMessageExtralnfo 136 2.14.33 TranslateMessage 136 2.14.24 WaltMessage 137 2.14.25 PostAppMessage 137 2.15 鼠标输入函数(Mouse Input) 137 2.15.1 DragDetect 137 2.15.2 GetCapture 138 2.15.3 GetDoubleCllckTime 138 2.15.4 GetMouseMovePoints 138 2.15.5 mouse_event 139 2.15.6 ReleaseCapture 140 2.15.7 SetCapture 141 2.15.8 SetDoubleCllckTime 141 2.15.9 SwapMouseButton 141 2.15.10 TrackMouseEvent 142 2.16 多文档接口函数(Multiple Document Interface) 142 2.16.1 CreateMDIWindow 142 2.16.2 DefFrameProc 143 2.16.3 DefMDIChildProc 144 2.16.4 TranslateMdISysAccel 144 2.17 资源函数(Resource) 145 2.17.1 BeginUpdateResource 145 2.17.2 CopyImage 145 2.17.3 EndUpdateResource 146 2.17.4 EnumResLangProc 146 2.17.5 EnumResNameProc 147 2.17.6 EnumResourceLanguages 148 2.17.7 EnumResourceNames 148 2.17.8 EnumResourceTypes 149 2.17.9 EnumResTypeProc 149 2.17.11 FindResourceEx 150 2.17.12 LoadImage 151 2.17.13 LoadResource 152 2.17.14 LockResource 153 2.17.15 SlzeofResource 153 2.17.16 UpdateResource 153 2.17.17 FreeResource 154 2.17.18 UnlockResource 154 2.18 滚动条函数(Scroll Bar) 154 2.18.1 EnableScrollBar 154 2.18.2 GetScrolllnfo 155 2.18.3 ScrollDC 156 2.18.4 ScrollWindowEx 156 2.18.5 SetScrolllnfo 157 2.18.6 ShowScrollBar 158 2.18.7 GetScrollPos 158 2.18.8 GetScrollRange 159 2.18.9 ScrollWindow 159 2.18.10 SetScrollPos 160 2.18.11 SetScrollRange 161 2.19 窗口函数(Window) 161 2.19.1 AdlustWindowRect 162 2.19.2 AdjustWindowRectEx 162 2.19.3 AnImateWindow 162 2.19.4 ArrangelconlcWindows 163 2.19.5 BeginDeferWindowPos 164 2.19.6 BromgWindowToTop 164 2.19.7 CascadeWindows 164 2.19.8 ChildWindowFromaPoint 165 2.18.9 ChildWindowFromaPointEx 165 2.19.10 CloseWindow 166 2.19.11 Create Window 166 2.19.12 CreateWindowEx 170 2.19.13 DeferWindowPos 171 2.19.14 DestroyWindow 173 2.19.15 EnableWindow 174 2.19.16 EndDeferWindowPos 174 2.19.17 EnumChildProc 174 2.19.18 EnumChildProc 175 2.19.19 EnumTreadWindows 175 2.19.20 EnumThreadWndProc 176 2.19.21 EnumWindows 176 2.19.22 EnumWindowsProc 176 2.19.23 FindWindow 177 2.19.24 FlndWindowEx 177 2.19.25 GetClientRect 178 2.19.26 GetDesktopWindow 178 2.19.27 GetForegroundWindow 178 2.19.28 GetLastActivePopup 178 2.19.29 GetNextWindow 179 2.19.30 GetParent 179 2.19.31 GetTopWindow 179 2.19.32 GetWindow 180 2.19.33 GetWindowPlacement 180 2.19.34 GetWindowRect 181 2.19.35 GetWindowText 181 2.19.36 GetWindowTextLength 182 2.19.37 GetWlndowThreadprocessld 182 2.19.38 IsChild 183 2.19.39 IsIconic 183 2.19.40IsWindow 183 2.19.41 IsWindowUnicode 183 2.19.42 IsWindowVlslble 184 2.19.43 IsZoomed 184 2.19.44 MoveWindow 184 2.19.45 Openlcon 185 2.19.46 SetForegroundWindow 185 2.19.47 SetParent 186 2.19.48 SetWindowLong 186 2.19.49 SetWindowPlacement 188 2.19.50 SetWindowPos 188 2.19.53 ShowWindow 191 2.19.54 ShowWindowAsync 192 2.19.55 TileWindows 192 2.19.56 WindowFromPoint 193 2.19.57 WinMain 193 2.19.58 AnyPopup 194 2.19.59 EnumTaskWindows 194 2.19.60 GetSysModalWindow 194 2.19.61 GetWindowTask 194 2.19.62 SetSysModalWindow 194 2.20 窗口类函数(Window Class) 195 2.20.1 GetClasslnfoEx 195 2.20.2 GetClassLong 195 2.20.3 GetClassName 196 2.20.4 GetWindowLong 196 2.20.5 RegisterClassEx 197 2.20.6 SetClassLong 197 2.20.7 SetWindowLong 198 2.20.9 GetClasslnfoEx 200 2.20.10 GetClassWord 200 2.20.11 GetWindowWord 201 2.20.12 RegisterClass 201 2.20.12 RegisterClass 201 2.20.13 SetClassWord 202 2.20.14 SetWindowWord 202 2.21 窗口过程函数(Window Procedure) 202 2.21.1 CallWindowProc 203 2.21.2 DefWindowProc 203 2.21.3 WindowProc 204 2.22 窗口属性函数(Window Property) 204 2.22.1 EnumProps 204 2.22.2 EnumPropsEx 205 2.22.3 GetProp 205 2.22.4 PropEnumProc 205 2.22.5 PropEnumProcEx 206 2.22.6 RemoveProp 206 2.22.7 SetProp 207 书名:新编Windows API参考大全 作者:本书编写组 页数:981页 开数:16开 字数:2392千字 出版日期:2000年4月第二次印刷 出版社:电子工业出版社 书号:ISBN 7-5053-5777-8 定价:98.00元 内容简介 作为Microsoft 32位平台的应用程序编程接口,Win32 API是从事Windows应用程序开发所必备的。本书首先对Win32 API函数做完整的概述;然后收录五大类函数:窗口管理、图形设备接口、系统服务、国际特性以及网络服务;在附录部分,讲解如何在Visual Basic和Delphi中对其调用。 本书是从事Windows应用程序开发的软件工程师的必备参考手册。 前 言 Win32 API作为 Microsoft 32位平台(包括:Windows 9x,Windows NT3.1/4.0/5.0,WindowsCE)的应用程序编程接口,它是构筑所有32位Windows平台的基石,所有在Windows平台上运行的应用程序都可以调用这些函数。 从事Windows应用程序开发,离不开对Win32 API函数的调用。只有充分理解和利用API函数,才能深入到Windows的内部,充分挖掘系统提供的强大功能和灵活性。 近年来,随着Microsoft 32位平台的版本升级, Win32 API函数的构成、功能与调用方式都有很大的发展变化,然而,国内很少有相关的新版资料出版。为了满足广大开发人员的迫切需求,我们经过认真收集、整理素材,组织编写了这本与各种Microsoft 32位平台最新版本同步的Win32 API参考手册。 全书收录了五大类函数:窗口管理、图形设备接口、系统服务、国际特性以及网络服务。所有函数均附有功能说明、参数说明、返回值说明、备注以及引用说明。另外,在本书的第一章,我们对WiN32 API函数作了完整的概述;在附录部分,讲解了如何在Visual Basic和Delphi中对其调用。 由于篇幅较大,涉及技术内容广泛,加之时间仓促,书中难免存在不少错误或疏漏,希望广大读者给与批评指正。 编 者 目 录 第一章 Win32 API概论…………………………………………………………………………1 1.1 为什么使用Win32 API …………………………………………………………………1 1.2 Win32 API简介 …………………………………………………………………………1 1.3 综述………………………………………………………………………………………11 第二章 窗口管理函数(Windows Control Function) ……………………………………13 2.1 易用特性函数(Accessibility Features)…………………………………………13 2.2 按钮函数(Button)……………………………………………………………………20 2.3 插入标记(^)函数(Caret)…………………………………………………………21 2.4 组合框函数(Combo box) ……………………………………………………………24 2.5 通用对话框函数(Common Dialog Box) ……………………………………………25 2.6 标函数(Cursor)………………………………………………………………………36 2.7 对话框函数(Dialog Box)……………………………………………………………40 2.8 编辑控制函数(Edit Control)………………………………………………………54 2.9 图标函数(Icon)………………………………………………………………………54 2.10 键盘加速器函数(Keyboard Accelerator)……………………………………… 61 2.11 键盘输入函数(Keyboard InPut) …………………………………………………63 2.12 列表框函数(List box) ……………………………………………………………75 2.13 菜单函数(Menu) ……………………………………………………………………76 2.14 消息和消息队列函数(Message and Message Queue)……………………………90 2.15 鼠标输入函数(Mouse Input) ……………………………………………………100 2.16 多文档接口函数(Multiple Document Interface) ……………………………103 2.17 资源函数(Resource)………………………………………………………………105 2.18 滚动条函数(Scroll Bar)…………………………………………………………113 2.19 窗口函数(Window)…………………………………………………………………119 2.20 窗口类函数(Window Class)………………………………………………………144 2.21 窗口过程函数(Window Procedure)………………………………………………150 2.22 窗口属性函数(Window Property) ………………………………………………152 第三章 图形设备接口函数(Graphic Device Interface Function) …………………155 3.1 位图函数(Bitmap) …………………………………………………………………155 3.2 笔刷函数(Brush)……………………………………………………………………171 3.3 剪切函数(Clipping) ………………………………………………………………176 3.4 颜色函数(Color)……………………………………………………………………179 3.5 坐标空间与变换函数(Coordinate Space Transformation)……………………186 3.6 设备环境函数(Device Context) …………………………………………………195 3.7 填充形态函数(Filled shape) ……………………………………………………211 3.8 字体和正文函数(Font and Text)…………………………………………………215 3.9 ICM 2.0函数 …………………………………………………………………………238 3.10 线段和曲线函数(Line and Curve)………………………………………………295 3.11 图元文件函数(Metafile)…………………………………………………………300 3.12 多显示器函数(Multiple Display Monitors) …………………………………311 3.13 绘图函数和画图函数(Painting and Drawing)…………………………………313 3.14 路径函数(Path)……………………………………………………………………328 3.15 画笔函数(Pen) ……………………………………………………………………332 3.16 打印及打印假脱机程序函数(Printing and Print Spooler)…………………334 3.17 矩形函数(Rectangle) ……………………………………………………………371 3.18 区域函数(Region)…………………………………………………………………374 第四章 系统服务函数(System Service Function) ……………………………………383 4.1 访问控制函数(Access Control) …………………………………………………383 4.2 原子函数(Atom) ……………………………………………………………………406 4.3 客户/服务器访问控制函数(Client/Server Access Control) ………………409 4.4 剪贴板函数(Clipboard)……………………………………………………………431 4.5 通信函数(Communication)…………………………………………………………436 4.6 控制台函数(Console)………………………………………………………………444 4.7 数据解压库函数(Data Decompression Library) ………………………………463 4.8 调试函数(Debugging)………………………………………………………………466 4.9 设备输入输出函数(Device Input and Output)…………………………………472 4.10 动态数据交换函数(Dynamic Data Exchange) …………………………………474 4.11 动态数据交换管理函数(Dynamic Data Exchange Management)………………476 4.12 动态链接库函数(Dynamic-Link Library)………………………………………489 4.13 错误函数(Error) …………………………………………………………………496 4.14 事件日志函数(Event Logging) …………………………………………………499 4.15 文件函数(File)……………………………………………………………………503 4.16 文件安装库函数(File Installation Library) ………………………………542 4.17 文件映射函数(File Mapping)……………………………………………………546 4.18 文件系统函数 File System)………………………………………………………551 4.19 句柄和对象函数(Handle and Object)………………………………………………556 4.20 挂钩函数(Hook)………………………………………………………………………560 4.21 ImageHlp函数…………………………………………………………………………572 4.22 大整数操作函数(Iarge Integer Operations)……………………………………594 4.23 低层访问控制函数(Low-Level Access Control)………………………………596 4.24 LSAPI函数 …………………………………………………………………………617 4.25 邮槽函数(Mailslot)………………………………………………………………622 4.26 内存管理函数(Memory Management) ……………………………………………623 4.27 管道函数(Pipe) …………………………………………………………………655 4.28 电源管理函数(Power Management) …………………………………………… 663 4.29 进程和线程函数(Process and Thread)…………………………………………666 4.30 注册表函数(Registry)……………………………………………………………700 4.31 字符串操作函数(String Manipulation)……………………………………… 724 4.32 结构化异常处理函数(Structured Exception Handling) ……………………742 4.33 同步函数(Synchronization) ……………………………………………………745 4.34 系统信息函数(System Information)……………………………………………766 4.35 系统消息函数(System Message)…………………………………………………780 4.36 系统关机函数(System Shutdown) ………………………………………………781 4.37 磁带备份函数(Tape Backup) ……………………………………………………783 4.38 时间函数(Time)……………………………………………………………………789 4.39 计时器函数(Timer) ………………………………………………………………795 4.40 工具帮助函数(Tool Help) ………………………………………………………796 4.41 窗口站和桌面函数(Window Station and Desktop)……………………………799 4.42 Windows NT 4.0访问控制函数(Window NT 4.0 Access-Control)……………808 4.43 WinTrust函数(WinTrust)…………………………………………………………814 第五章 国际特性函数(International Peatures Punction)时性…………………………815 5.1 输入方法编辑函数(Input Method Editor)…………………………………………815 5.2 国家语言支持函数(National Language Support)………………………………… 828 5.3 Unicode和字符集函数(Unicode and Character Set)……………………………… 843 第六章 网络服务函数(Networding Service Function)……………………………………849 6.1 数据链路控制函数(DLC)………………………………………………………………849 6.2 网络函数(Net)…………………………………………………………………………849 6.3 NetBIOS函数……………………………………………………………………………896 6.4 网络DDE函数(Networking DDE)……………………………………………………897 6.5 RAS服务器管理函数(RAS Server Administration)………………………………901 6.6 远程访问服务函数(Remote Access Administration)………………………………910 6.7 服务函数(Service)……………………………………………………………………929 6.8 Windows网络函数(Windows Networking)……………………………………………930 附录1 如何在VB中调用DLL API ……………………………………………………………945 1 DLL API的声明……………………………………………………………………………945 2 DLL API的调用……………………………………………………………………………947 附录2 在Delphi中直接调用Windows API…………………………………………………953