Windows API編程手冊

出版時間:2002-6  出版社:人民郵電出版社  作者:林永  頁數(shù):789  字數(shù):1232  
Tag標簽:無  

內(nèi)容概要

本書是一本面向Visual Basic程序員的Windows API編程手冊。書中收錄了Visual Basic編程中涉及到的標準Windows API函數(shù),涵蓋窗口、硬件系統(tǒng)、消息、設(shè)備場景、繪圖、圖形、圖像處理、文本、字體、打印、文件、進程和線程、網(wǎng)絡(luò)、多媒體等各個方面,詳細介紹了API函數(shù)在Visual Basic中使用的方法。 書中大部分函數(shù)后給出了有針對性的簡短示例,大部分章節(jié)的末尾給出了函數(shù)應(yīng)用的綜合性實例,幫助讀者在盡可能短的時間內(nèi)掌握Windows API編程技巧,創(chuàng)建功能強大的應(yīng)用程序。 本書內(nèi)容豐富,實用性強,主要面向初、中級的Visual Basic程序員,也可作為有經(jīng)驗的Visual Basic程序員編程的參考手冊。

書籍目錄

第1章  Windows API簡介	1
1.1 動態(tài)鏈接庫(DLL) 1
1.2 應(yīng)用程序編程接口(API) 3
1.2.1 Windows API與Visual Basic 3
1.2.2 主要的DLL庫及其功能簡介 3
1.2.3 在Visual Basic中調(diào)用Windows API 4
1.3 Windows API相關(guān)概念 8
1.3.1 句柄 9
1.3.2 數(shù)據(jù)類型 10
第2章 窗口與消息函數(shù) 15
2.1 獲取窗口的信息函數(shù) 15
2.1.1 GetClassInfo,GetClassInfoEx 16
2.1.2 GetClassLong 17
2.1.3 GetClassName 17
2.1.4 GetClassWord 18
2.1.5 SetClassLong 18
2.1.6 SetClassWord 18
2.1.7 GetDesktopWindow 20
2.1.8 GetWindowLong 21
2.1.9 GetWindowWord 23
2.1.10 SetWindowLong 24
2.1.11 SetWindowWord 26
2.1.12 GetWindowText 27
2.1.13 GetWindowTextLength 28
2.1.14 SetWindowText 29
2.1.15 IsChild 29
2.1.16 IsIconic 30
2.1.17 IsWindow 31
2.1.18 IsWindowEnabled 33
2.1.19 IsWindowUnicode 34
2.1.20 IsWindowVisible 35
2.1.21 IsZoomed 35
2.1.22 GetWindowContextHelpId 36
2.1.23 GetWindowPlacement 36
2.2 確定窗口相互間關(guān)系的函數(shù) 36
2.2.1 EnumWindows 37
2.2.2 EnumChildWindows 38
2.2.3 EnumThreadWindows 38
2.2.4 FindWindow 40
2.2.5 FindWindowEx 42
2.2.6 GetWindow 44
2.2.7 GetActiveWindow 45
2.2.8 GetCapture 47
2.2.9 GetFocus 47
2.2.10 GetForegroundWindow 48
2.2.11 GetLastActivePopup 49
2.2.12 GetParent 49
2.2.13 GetTopWindow 50
2.2.14 AnyPopup 50
2.2.15 ChildWindowFromPoint,
ChildWindowFromPointEx 50
2.2.16 SetActiveWindow 51
2.2.17 SetCapture 51
2.2.18 SetFocus,SetFocusAPI 53
2.2.19 SetForegroundWindow 53
2.2.20 SetParent 54
2.3 控制窗口外觀和行為的函數(shù) 55
2.3.1 ArrangeIconicWindows 55
2.3.2 BeginDeferWindowPos 55
2.3.3 BringWindowToTop 56
2.3.4 CascadeWindows,CascadeWindowsBynum 57
2.3.5 CloseWindow 57
2.3.6 DeferWindowPos 57
2.3.7 DestroyWindow 59
2.3.8 EnableWindow 59
2.3.9 EndDeferWindowPos 60
2.3.10 FlashWindow 60
2.3.11 LockWindowUpdate 61
2.3.12 MoveWindow 63
2.3.13 OpenIcon 63
2.3.14 ReleaseCapture 63
2.3.15 SetWindowPlacement 64
2.3.16 SetWindowPos 65
2.3.17 ShowOwnedPopups 66
2.3.18 ShowWindow 66
2.3.19 ShowWindowAsync 67
2.3.20 TileWindows 67
2.3.21 UpdateWindow 68
2.4 操作窗口中客戶區(qū)的函數(shù) 68
2.4.1 AdjustWindowRect,AdjustWindowRectEx 68
2.4.2 ClientToScreen 69
2.4.3 CopyRect 71
2.4.4 DrawAnimatedRects 72
2.4.5 EqualRect 73
2.4.6 GetClientRect 73
2.4.7 GetUpdateRect 74
2.4.8 GetWindowRect 75
2.4.9 InflateRect 79
2.4.10 IntersectRect 80
2.4.11 InvalidateRect,InvalidateRectBynum 80
2.4.12 OffsetRect 80
2.4.13 PtInRect 81
2.4.14 RedrawWindow 82
2.4.15 ScrollWindow 83
2.4.16 ScrollWindowEx 84
2.4.17 SetRect 85
2.4.18 SetRectEmpty 85
2.4.19 SubtractRect 85
2.4.20 ValidateRect 86
2.5 其他與窗口相關(guān)的函數(shù) 87
2.5.1 AttachThreadInput 87
2.5.2 ScreenToClient 87
2.5.3 SetWindowContextHelpId 87
2.5.4 WindowFromPoint 88
2.6 綜合示例 88
第3章 硬件與系統(tǒng)函數(shù) 95
3.1 鍵盤輸入與字符集函數(shù) 97
3.1.1 ActivateKeyboardLayout 97
3.1.2 GetKeyboardLayout 97
3.1.3 GetAsyncKeyState 97
3.1.4 GetKeyboardLayoutList 100
3.1.5 GetKeyboardLayoutName 101
3.1.6 GetKeyboardState 102
3.1.7 GetKeyboardType 105
3.1.8 GetKeyNameText 106
3.1.9 GetKeyState 106
3.1.10 keybd_event 108
3.1.11 LoadKeyboardLayout 108
3.1.12 MapVirtualKey 109
3.1.13 MapVirtualKeyEx 110
3.1.14 OemKeyScan 110
3.1.15 OemToChar, OemToCharBuff 110
3.1.16 SetKeyboardState 111
3.1.17 ToAscii, ToAsciiEx 111
3.1.18 ToUnicode 112
3.1.19 UnloadKeyboardLayout 113
3.1.20 VkKeyScan, VkKeyScanEx 113
3.2 語言地區(qū)代碼頁相關(guān)函數(shù) 113
3.2.1 CharToOem, CharToOemBuff 113
3.2.2 ConvertDefaultLocale 114
3.2.3 EnumCalendarInfo 114
3.2.4 EnumDateFormats 115
3.2.5 EnumSystemCodePages 115
3.2.6 EnumDateFormats 116
3.2.7 EnumTimeFormats 116
3.2.8 GetACP 116
3.2.9 GetCPInfo 117
3.2.10 GetCurrencyFormat,
GetCurrencyFormatBynum 117
3.2.11 GetDateFormat 118
3.2.12 GetKBCodePage 119
3.2.13 GetOEMCP 119
3.2.14 GetLocaleInfo 119
3.2.15 GetLocalTime 120
3.2.16 GetNumberFormat,
GetNumberFormatBynum 121
3.2.17 GetOEMCP 122
3.2.18 GetSystemDefaultLangID 122
3.2.19 GetSystemDefaultLCID 122
3.2.20 GetThreadLocale 122
3.2.21 GetTimeFormat 122
3.2.22 GetTimeZoneInformation 123
3.2.23 GetUserDefaultLangID 124
3.2.24 GetUserDefaultLCID 124
3.2.25 IsValidCodePage 124
3.2.26 IsValidLocale 124
3.2.27 SetLocaleInfo 124
3.2.28 SetLocalTime 125
3.2.29 SetThreadLocale 125
3.2.30 SystemTimeToTzSpecificLocalTime 125
3.3 系統(tǒng)信息相關(guān)函數(shù) 126
3.3.1 GetSysColor 126
3.3.2 GetSystemInfo 128
3.3.3 GetSystemMetrics 129
3.3.4 GetSystemPowerStatus 134
3.3.5 GetSystemTime 134
3.3.6 GetSystemTimeAdjustment 134
3.3.7 GetTickCount 135
3.3.8 GetUserName 136
3.3.9 GetVersion 137
3.3.10 GetVersionEx 138
3.3.11 GlobalMemoryStatus函數(shù) 140
3.3.12 SetComputerName 141
3.3.13 SetSysColors 142
3.3.14 SetSystemTime 142
3.3.15 SetSystemTimeAdjustment 143
3.3.16 SetThreadLocale 144
3.3.17 SetTimeZoneInformation 144
3.3.18 SystemParametersInfo, SystemParametersInfoByval 144
3.4 光標(插入符)與鼠標輸入函數(shù) 150
3.4.1 ClipCursor, ClipCursorBynum 150
3.4.2 CreateCaret 150
3.4.3 DestroyCaret 152
3.4.4 GetCaretBlinkTime 152
3.4.5 GetCaretPos 153
3.4.6 GetClipCursor 153
3.4.7 GetCursor 153
3.4.8 GetCursorPos 154
3.4.9 GetDoubleClickTime 154
3.4.10 HideCaret 154
3.4.11 SetCursor 155
3.4.12 SetCursorPos 157
3.4.13 SetDoubleClickTime 157
3.4.14 mouse_event 158
3.4.15 ShowCaret 159
3.4.16 ShowCursor 159
3.4.17 SwapMouseButton 160
3.5 其他函數(shù) 161
3.5.1 Beep 161
3.5.2 ExitWindowsEx 161
3.5.3 ExpandEnvironmentStrings 162
3.5.4 FreeEnvironmentStrings 163
3.5.5 GetEnvironmentStrings 163
3.5.6 GetEnvironmentVariable 164
3.5.7 GetLastError 164
3.5.8 GetQueueStatus 165
3.5.9 MessageBeep 166
3.5.10 SetEnvironmentVariable 167
3.6 綜合示例 167
第4章 設(shè)備場景函數(shù) 183
4.1 獲取和釋放設(shè)備場景函數(shù) 185
4.1.1 CreateCompatibleDC 185
4.1.2 CreateDC, CreateDCBynum 185
4.1.3 CreateIC 189
4.1.4 DeleteDC 189
4.1.5 GetDC 189
4.1.6 GetDCEx 191
4.1.7 GetWindowDC 192
4.1.8 ReleaseDC 192
4.1.9 WindowFromDC 194
4.2 坐標映射函數(shù) 195
4.2.1 CombineTransform 197
4.2.2 DPtoLP 197
4.2.3 GetDCOrgEx 197
4.2.4 GetGraphicsMode 198
4.2.5 GetMapMode 198
4.2.6 GetViewportExtEx 198
4.2.7 GetViewportOrgEx 199
4.2.8 GetWindowExtEx 199
4.2.9 GetWindowOrgEx 199
4.2.10 GetWorldTransform 200
4.2.11 LPtoDP 200
4.2.12 ModifyWorldTransform 200
4.2.13 OffsetViewportOrgEx 201
4.2.14 OffsetWindowOrgEx 201
4.2.15 ScaleViewportExtEx 201
4.2.16 ScaleWindowExtEx 202
4.2.17 ScrollDC 202
4.2.18 SetGraphicsMode 203
4.2.19 SetMapMode 203
4.2.20 SetViewportExtEx 204
4.2.21 SetViewportOrgEx 204
4.2.22 SetWindowExtEx 205
4.2.23 SetWindowOrgEx 205
4.2.24 SetWorldTransform 205
4.3 區(qū)域和剪裁函數(shù) 206
4.3.1 CombineRgn 206
4.3.2 CreateEllipticRgn 211
4.3.3 CreateEllipticRgnIndirect 211
4.3.4 CreatePolygonRgn 212
4.3.5 CreatePolyPolygonRgn 214
4.3.6 CreateRectRgn 215
4.3.7 CreateRectRgnIndirect 215
4.3.8 CreateRoundRectRgn 216
4.3.9 EqualRgn 216
4.3.10 ExcludeClipRect 216
4.3.11 ExcludeUpdateRgn 217
4.3.12 ExtCreateRegion 217
4.3.13 ExtSelectClipRgn 218
4.3.14 FillRgn 218
4.3.15 FrameRgn 219
4.3.16 GetBoundsRect 219
4.3.17 GetClipBox 220
4.3.18 GetClipRgn 220
4.3.19 GetRegionData 220
4.3.20 GetRgnBox 221
4.3.21 GetUpdateRgn 223
4.3.22 InvertRgn 224
4.3.23 ModifyWorldTransform 224
4.3.24 OffsetClipRgn 224
4.3.25 OffsetRgn 225
4.3.26 PaintRgn 225
4.3.27 PtInRegion 226
4.3.28 PtVisible 226
4.3.29 RectInRegion 226
4.3.30 RectVisible 226
4.3.31 SelectClipRgn 227
4.3.32 SetBoundsRect 227
4.3.33 SetRectRgn 228
4.3.34 SetWindowRgn 228
4.3.35 ValidateRgn 230
4.4 堆棧函數(shù) 231
4.4.1 RestoreDC 231
4.4.2 SaveDC 231
4.5 設(shè)備場景信息函數(shù) 232
GetDeviceCaps 232
第5章 繪圖函數(shù) 240
5.1 GDI繪圖對象創(chuàng)建函數(shù) 240
5.1.1 CreateBrushIndirect 240
5.1.2 CreateBrushIndirect 241
5.1.3 CreateDIBPatternBrush,
CreateDIBPatternBrushPt 241
5.1.4 CreateEnhMetaFile 242
5.1.5 CreateHatchBrush 243
5.1.6 CreateMetaFile 243
5.1.7 CreatePatternBrush 244
5.1.8 CreatePen 245
5.1.9 CreatePenIndirect 246
5.1.10 CreateSolidBrush 246
5.1.11 ExtCreatePen 249
5.1.12 GetStockObject 250
5.1.13 GetSysColorBrush 251
5.2 繪圖對象選取和釋放函數(shù) 251
5.2.1 DeleteObject 251
5.2.2 EnumObjects 252
5.2.3 GetCurrentObject 253
5.2.4 GetObjectAPI 253
5.2.5 GetObjectType 253
5.3 繪圖屬性和繪圖函數(shù) 255
5.3.1 AngleArc 255
5.3.2 Arc,ArcTo 256
5.3.3 CancelDC 258
5.3.4 Chord 258
5.3.5 DrawEdge 259
5.3.6 DrawEscape 260
5.3.7 DrawFocusRect 260
5.3.8 DrawFrameControl 260
5.3.9 DrawState 261
5.3.10 Ellipse 263
5.3.11 ExtFloodFill 264
5.3.12 FillRect 264
5.3.13 FloodFill 265
5.3.14 FrameRect 265
5.3.15 GdiFlush 266
5.3.16 GdiGetBatchLimit 266
5.3.17 GdiSetBatchLimit 266
5.3.18 GetArcDirection 267
5.3.19 GetBkColor 267
5.3.20 GetBkMode 268
5.3.21 GetBrushOrgEx 268
5.3.22 GetCurrentPositionEx 269
5.3.23 GetMiterLimit 269
5.3.24 GetNearestColor 269
5.3.25 GetPixel 269
5.3.26 GetPolyFillMode 270
5.3.27 GetROP2 270
5.3.28 GetSysColorBrush 271
5.3.29 InvertRect 271
5.3.30 LineDDA 273
5.3.31 LineTo 273
5.3.32 MoveToEx 273
5.3.33 PaintDesktop 274
5.3.34 Pie 274
5.3.35 PolyBezier, PolyBezierTo 275
5.3.36 PolyDraw 275
5.3.37 Polygon 276
5.3.38 Polyline, PolyLineTo 276
5.3.39 PolyPolygon 277
5.3.40 PolyPolyline 278
5.3.41 Rectangle 279
5.3.42 RoundRect 280
5.3.43 SetArcDirection 280
5.3.44 SetBkColor 280
5.3.45 SetBkMode 281
5.3.46 SetBrushOrgEx 281
5.3.47 SetMiterLimit 282
5.3.48 SetPixel 282
5.3.49 SetPixelV 282
5.3.50 SetPolyFillMode 283
5.3.51 SetROP2 283
5.4 路徑函數(shù) 284
5.4.1 AbortPath 285
5.4.2 BeginPath 285
5.4.3 CloseFigure 285
5.4.4 EndPath 286
5.4.5 FillPath 286
5.4.6 FlattenPath 286
5.4.7 GetPath 286
5.4.8 PathToRegion 287
5.4.9 SelectClipPath 287
5.4.10 StrokeAndFillPath 288
5.4.11 StrokePath 288
5.4.12 WidenPath 289
5.5 圖元文件函數(shù) 289
5.5.1 CloseEnhMetaFile 290
5.5.2 CloseMetaFile 290
5.5.3 CopyEnhMetaFile 291
5.5.4 CopyMetaFile 291
5.5.5 CreateEnhMetaFile 291
5.5.6 CreateMetaFile 292
5.5.7 DeleteEnhMetaFile 293
5.5.8 DeleteMetaFile 293
5.5.9 EnumEnhMetaFile 293
5.5.10 EnumMetaFile 294
5.5.11 GdiComment 294
5.5.12 GetEnhMetaFile 295
5.5.13 GetEnhMetaFileBits 296
5.5.14 GetEnhMetaFileDescription 296
5.5.15 GetEnhMetaFileHeader 297
5.5.16 GetEnhMetaFilePaletteEntries 297
5.5.17 GetMetaFile 297
5.5.18 GetMetaFileBitsEx 298
5.5.19 GetWinMetaFileBits 298
5.5.20 PlayEnhMetaFile 299
5.5.21 PlayEnhMetaFileRecord 299
5.5.22 PlayMetaFile 299
5.5.23 PlayMetaFileRecord 300
5.5.24 SetEnhMetaFileBits 300
5.5.25 SetMetaFileBitsEx 301
5.5.26 SetWinMetaFileBits 301
第6章 位圖、圖標和光柵運算函數(shù) 302
6.1 Windows中圖像的處理概述 302
6.2 設(shè)備無關(guān)位圖函數(shù) 303
6.2.1 CreateDIBitmap 306
6.2.2 CreateDIBSection 306
6.2.3 GetDIBColorTable 307
6.2.4 GetDIBits 308
6.2.5 SetDIBColorTable 308
6.2.6 SetDIBits 309
6.2.7 SetDIBitsToDevice 309
6.2.8 StretchDIBits 310
6.3 設(shè)備相關(guān)位圖函數(shù) 311
6.3.1 CopyImage 312
6.3.2 CreateBitmap 313
6.3.3 CreateBitmapIndirect 313
6.3.4 CreateCompatibleBitmap 313
6.3.5 GetBitmapBits 314
6.3.6 GetBitmapDimensionEx 316
6.3.7 LoadBitmap, LoadBitmapBynum 317
6.3.8 LoadImage, LoadImageBynum 317
6.3.9 SetBitmapBits 320
6.3.10 SetBitmapDimensionEx 320
6.4 位圖傳輸函數(shù) 320
6.4.1 BitBlt 322
6.4.2 GetStretchBltMode 324
6.4.3 MaskBlt 324
6.4.4 PatBlt 325
6.4.5 PlgBlt 325
6.4.6 SetStretchBltMode 326
6.4.7 StretchBlt 327
6.5 圖標和指針函數(shù) 329
6.5.1 CreateCursor 329
6.5.2 CreateIcon 331
6.5.3 CreateIconIndirect 332
6.5.4 DestroyCursor 332
6.5.5 DestroyIcon 333
6.5.6 DrawIcon 334
6.5.7 DrawIconEx 336
6.5.8 ExtractAssociatedIcon 337
6.5.9 ExtractIcon 337
6.5.10 GetIconInfo 339
6.5.11 LoadCursor, LoadCursorBynum 339
6.5.12 LoadCursorFromFile 339
6.5.13 LoadIcon, LoadIconBynum 340
6.6 調(diào)色板 340
6.6.1 計算機色彩系統(tǒng) 340
6.6.2 調(diào)色板 342
6.7 綜合示例 349
第7章 菜單函數(shù) 357
7.1 菜單函數(shù) 357
7.1.1 AppendMenu 357
7.1.2 CheckMenuItem 359
7.1.3 CheckMenuRadioItem 360
7.1.4 CreateMenu 361
7.1.5 CreatePopupMenu 361
7.1.6 DeleteMenu 361
7.1.7 DestroyMenu 361
7.1.8 DrawMenuBar 362
7.1.9 EnableMenuItem 363
7.1.10 GetMenu 363
7.1.11 GetMenuCheckMarkDimensions 365
7.1.12 GetMenuContextHelpId 365
7.1.13 GetMenuDefaultItem 365
7.1.14 GetMenuItemCount 365
7.1.15 GetMenuItemID 366
7.1.16 GetMenuItemInfo 366
7.1.17 GetMenuItemRect 366
7.1.18 GetMenuState 367
7.1.19 GetMenuString 367
7.1.20 GetSubMenu 368
7.1.21 GetSystemMenu 371
7.1.22 HiliteMenuItem 371
7.1.23 InsertMenu 372
7.1.24 InsertMenuItem 372
7.1.25 IsMenu 373
7.1.26 LoadMenu 373
7.1.27 LoadMenuIndirect 373
7.1.28 MenuItemFromPoint 374
7.1.29 ModifyMenu,ModifyMenuBynum 374
7.1.30 RemoveMenu 376
7.1.31 SetMenu 376
7.1.32 SetMenuContextHelpId 376
7.1.33 SetMenuDefaultItem 377
7.1.34 SetMenuItemBitmaps 377
7.1.35 SetMenuItemInfo 378
7.1.36 TrackPopupMenu, TrackPopupMenuBynum 378
7.1.37 TrackPopupMenuEx 379
7.2 綜合示例 380
第8章 文本和字體函數(shù) 388
8.1 文本和字體簡介 388
8.2 文本和字體函數(shù) 389
8.2.1 AddFontResource 389
8.2.2 CreateFont 389
8.2.3 CreateFontIndirect 394
8.2.4 CreateScalableFontResource 396
8.2.5 DrawText 396
8.2.6 DrawTextEx 400
8.2.7 EnumFontFamilies 402
8.2.8 EnumFontFamiliesEx 406
8.2.9 EnumFonts 406
8.2.10 ExtTextOut 406
8.2.11 GetAspectRatioFilterEx 408
8.2.12 GetCharABCWidths 408
8.2.13 GetCharABCWidthsFloat 409
8.2.14 GetCharacterPlacement 409
8.2.15 GetCharWidth, GetCharWidth32, GetCharWidthFloat 410
8.2.16 GetFontData 411
8.2.17 GetFontLanguageInfo 411
8.2.18 GetGlyphOutline 412
8.2.19 GetKerningPairs 412
8.2.20 GetOutlineTextMetrics 412
8.2.21 GetRasterizerCaps 413
8.2.22 GetTabbedTextExtent 413
8.2.23 GetTextAlign 414
8.2.24 GetTextCharacterExtra 414
8.2.25 GetTextCharset 414
8.2.26 GetTextCharsetInfo 415
8.2.27 GetTextColor 415
8.2.28 GetTextExtentExPoint 415
8.2.29 GetTextExtentPoint, GetTextExtentPoint32 416
8.2.30 GetTextFace 419
8.2.31 GetTextMetrics 419
8.2.32 GrayString, GrayStringByString 421
8.2.33 PolyTextOut 423
8.2.34 RemoveFontResource 423
8.2.35 SetMapperFlags 423
8.2.36 SetTextAlign 424
8.2.37 SetTextCharacterExtra 425
8.2.38 SetTextColor 426
8.2.39 SetTextJustification 426
8.2.40 TabbedTextOut 427
8.2.41 TextOut 428
第9章 打印函數(shù) 429
9.1 Windows打印簡介 429
9.2 打印函數(shù) 430
9.2.1 AbortDoc 430
9.2.2 AbortPrinter 431
9.2.3 AddForm 431
9.2.4 AddJob 431
9.2.5 AddMonitor 432
9.2.6 AddPort 432
9.2.7 AddPrinter 432
9.2.8 AddPrinterConnection 433
9.2.9 AddPrinterDriver 433
9.2.10 AddPrintProcessor 434
9.2.11 AddPrintProvidor 434
9.2.12 AdvancedDocumentProperties 434
9.2.13 ClosePrinter 435
9.2.14 ConfigurePort 435
9.2.15 ConnectToPrinterDlg 436
9.2.16 DeleteForm 436
9.2.17 DeleteMonitor 436
9.2.18 DeletePort 437
9.2.19 DeletePrinter 437
9.2.20 DeletePrinterConnection 437
9.2.21 DeletePrinterDriver 437
9.2.22 DeletePrintProcessor 438
9.2.23 DeletePrintProvidor 438
9.2.24 DeviceCapabilities 439
9.2.25 DocumentProperties 442
9.2.26 EndDocAPI 443
9.2.27 EndDocPrinter 443
9.2.28 EndPage 443
9.2.29 EndPagePrinter 444
9.2.30 EnumForms 444
9.2.31 EnumJobs 444
9.2.32 EnumMonitors 445
9.2.33 EnumPorts 445
9.2.34 EnumPrinterDrivers 449
9.2.35 EnumPrinters 449
9.2.36 EnumPrintProcessorDatatypes 452
9.2.37 EnumPrintProcessors 453
9.2.38 Escape 453
9.2.39 FindClosePrinterChangeNotification 455
9.2.40 FindFirstPrinterChangeNotification 455
9.2.41 FindNextPrinterChangeNotification 456
9.2.42 FreePrinterNotifyInfo 456
9.2.43 GetForm 457
9.2.44 GetJob 457
9.2.45 GetPrinter 458
9.2.46 GetPrinterData 458
9.2.47 GetPrinterDriver 459
9.2.48 GetPrinterDriverDirectory 459
9.2.49 GetPrintProcessorDirectory 460
9.2.50 OpenPrinter 460
9.2.51 PrinterMessageBox 461
9.2.52 PrinterProperties 461
9.2.53 ReadPrinter 462
9.2.54 ResetDC 462
9.2.55 ResetPrinter 463
9.2.56 ScheduleJob 463
9.2.57 SetAbortProc 463
9.2.58 SetForm 464
9.2.59 SetJob 464
9.2.60 SetPrinter 465
9.2.61 SetPrinterData 465
9.2.62 StartDoc 466
9.2.63 StartDocPrinter 466
9.2.64 StartPage 467
9.2.65 StartPagePrinter 467
9.2.66 WritePrinter 467
第10章 文件處理函數(shù) 468
10.1 文件介紹 468
10.2 文件的創(chuàng)建和存取函數(shù) 468
10.2.1 CloseHandle 468
10.2.2 CreateFile 469
10.2.3 CreateFileMapping 471
10.2.4 FlushFileBuffers 472
10.2.5 FlushViewOfFile 472
10.2.6 lclose 472
10.2.7 lcreat 472
10.2.8 llseek 473
10.2.9 LockFile 473
10.2.10 LockFileEx 474
10.2.11 lopen 475
10.2.12 MapViewOfFile, MapViewOfFileEx 475
10.2.13 OpenFile 476
10.2.14 OpenFileMapping 479
10.2.15 SetEndOfFile 479
10.2.16 SetFilePointer 479
10.2.17 UnlockFile 480
10.2.18 UnlockFileEx 480
10.2.19 UnmapViewOfFile 481
10.3 文件的屬性函數(shù) 481
10.3.1 CompareFileTime 481
10.3.2 DosDateTimeToFileTime 481
10.3.3 FileTimeToDosDateTime 482
10.3.4 FileTimeToLocalFileTime 482
10.3.5 FileTimeToSystemTime 482
10.3.6 GetBinaryType 483
10.3.7 GetFileAttributes 483
10.3.8 GetFileInformationByHandle 493
10.3.9 GetFileSize 494
10.3.10 GetFileTime 494
10.3.11 GetFileType 497
10.3.12 GetFileVersionInfo 497
10.3.13 GetFileVersionInfoSize 498
10.3.14 GetFullPathName 498
10.3.15 GetTempFileName 499
10.3.16 SetFileAttributes 500
10.3.17 SetFileTime 501
10.3.18 SystemTimeToFileTime 503
10.3.19 VerLanguageName 503
10.3.20 VerQueryValue 503
10.4 文件的操作函數(shù) 504
10.4.1 CopyFile 504
10.4.2 DeleteFile 505
10.4.3 FindClose 505
10.4.4 FindFirstFile 508
10.4.5 FindNextFile 509
10.4.6 hread 509
10.4.7 hwrite 509
10.4.8 lread 510
10.4.9 lwrite 510
10.4.10 MoveFile, MoveFileEx 510
10.4.11 ReadFile 511
10.4.12 ReadFileEx 512
10.4.13 SearchPath 512
10.4.14 VerFindFile 513
10.4.15 VerInstallFile 513
10.4.16 WriteFile 515
10.4.17 WriteFileEx 516
10.5 壓縮文件函數(shù) 516
10.5.1 GetCompressedFileSize 516
10.5.2 GetExpandedName 517
10.5.3 LZClose 517
10.5.4 LZCopy 519
10.5.5 LZInit 520
10.5.6 LZOpenFile 520
10.5.7 LZRead 520
10.5.8 LZSeek 521
10.6 目錄函數(shù) 521
10.6.1 CreateDirectory, CreateDirectoryEx 521
10.6.2 GetCurrentDirectory 522
10.6.3 GetSystemDirectory 522
10.6.4 GetTempPath 523
10.6.5 GetVolumeInformation 524
10.6.6 GetWindowsDirectory 525
10.6.7 RemoveDirectory 525
10.7 驅(qū)動器函數(shù) 525
10.7.1 GetDiskFreeSpace 525
10.7.2 GetDiskFreeSpaceEx 527
10.7.3 GetDriveType 528
10.7.4 GetLogicalDrives 529
10.7.5 GetLogicalDriveStrings 530
10.7.6 SetVolumeLabel 533
10.8 注冊表簡介 536
10.9 注冊表的創(chuàng)建和存取函數(shù) 540
10.9.1 RegCloseKey 540
10.9.2 RegConnectRegistry 540
10.9.3 RegCreateKey 540
10.9.4 RegCreateKeyEx 541
10.9.5 RegOpenKey 542
10.9.6 RegOpenKeyEx 542
10.9.7 RegSaveKey 543
10.10 注冊表項目的操作 545
10.10.1 RegDeleteKey 545
10.10.2 RegDeleteValue 545
10.10.3 RegEnumKey 545
10.10.4 RegEnumKeyEx 546
10.10.5 RegEnumValue 548
10.10.6 RegFlushKey 548
10.10.7 RegGetKeySecurity 549
10.10.8 RegLoadKey 549
10.10.9 RegNotifyChangeKeyValue 550
10.10.10 RegQueryInfoKey 551
10.10.11 RegQueryValue 552
10.10.12 RegQueryValueEx 552
10.10.13 RegReplaceKey 553
10.10.14 RegRestoreKey 554
10.10.15 RegSetKeySecurity 554
10.10.16 RegSetValue 554
10.10.17 RegSetValueEx 555
10.10.18 RegUnLoadKey 555
10.11 INI文件函數(shù) 560
10.11.1 GetPrivateProfileInt 561
10.11.2 GetPrivateProfileSection 562
10.11.3 GetPrivateProfileString 562
10.11.4 GetProfileInt 563
10.11.5 GetProfileSection 564
10.11.6 GetProfileString 564
10.11.7 WritePrivateProfileSection 565
10.11.8 WritePrivateProfileString 566
10.11.9 WriteProfileSection 566
10.11.10 WriteProfileString 567
10.12 設(shè)備控制函數(shù) 567
10.12.1 DeviceIoControl 567
10.12.2 QueryDosDevice 571
10.12.3 SetHandleCount 572
10.13 綜合示例 572
第11章 Windows消息函數(shù) 589
11.1 消息函數(shù) 589
11.1.1 BroadcastSystemMessage 589
11.1.2 GetMessagePos 591
11.1.3 GetMessageTime 591
11.1.4 PostMessage, PostMessageBynum, PostMessageBystring 591
11.1.5 PostThreadMessage 602
11.1.6 RegisterWindowMessage 603
11.1.7 ReplyMessage 603
11.1.8 SendMessage, SendMessageBynum, SendMessageByString 603
11.1.9 SendMessageCallback 605
11.1.10 SendMessageTimeout 605
11.1.11 SendNotifyMessage 606
11.2 綜合示例 607
第12章 網(wǎng)絡(luò)和Internet函數(shù) 614
12.1 網(wǎng)絡(luò)函數(shù) 614
12.1.1 WNetAddConnection 614
12.1.2 WNetAddConnection2 616
12.1.3 WNetAddConnection3 622
12.1.4 WNetCancelConnection 622
12.1.5 WNetCancelConnection2 623
12.1.6 WNetCloseEnum 623
12.1.7 WNetConnectionDialog 626
12.1.8 WNetDisconnectDialog 626
12.1.9 WNetEnumResource 626
12.1.10 WNetGetConnection 627
12.1.11 WNetGetLastError 627
12.1.12 WNetGetUniversalName 628
12.1.13 WNetGetUser 629
12.1.14 WNetOpenEnum 629
12.2 Internet函數(shù) 630
12.2.1 Internet的相關(guān)概念 630
12.2.2 Internet函數(shù)簡介 633
12.3 Winsock函數(shù) 635
12.3.1 Windows Sockets規(guī)范簡介 635
12.3.2 Winsock函數(shù)簡介 637
12.4 綜合示例 639
第13章 進程和線程函數(shù) 680
13.1 進程和線程簡介 680
13.1.1 多任務(wù)、進程與線程 680
13.1.2 線程的同步 681
13.2 進程和線程操作函數(shù) 682
13.2.1 CreatProcess 682
13.2.2 ExitProcess 684
13.2.3 FindExecutable 685
13.2.4 FreeLibray 686
13.2.5 GetCurrentProcess 686
13.2.6 GetCurrentProcessId 691
13.2.7 GetCurrentThread 692
13.2.8 GetExitCodeProcess 692
13.2.9 GetExitCodeThread 693
13.2.10 GetModuleFileName 693
13.2.11 GetModuleHandle 694
13.2.12 GetPriorityClass 695
13.2.13 GetProcessShutdownParameters 695
13.2.14 GetProcessTimes 695
13.2.15 GetProcessWorkingSetSize 696
13.2.16 GetSartupInfo 696
13.2.17 GetThreadPriority 696
13.2.18 GetTheardTimes 697
13.2.19 GetWindowThreadProcessId 697
13.2.20 LoadLibrary 699
13.2.21 LoadLibraryEx 701
13.2.22 LoadModule 702
13.2.23 SetPriorityClass 702
13.2.24 SetProcessShutdownParameters 703
13.2.25 SetProcessWorkingSetSize 703
13.2.26 SetThreadPriority 703
13.2.27. ShellExecute 704
13.2.28 TerminateProcess 704
13.2.29 WinExec 705
13.3 同步函數(shù) 705
13.3.1 DuplicateHandle 705
13.3.2 GetHandleFormation 706
13.3.3 MsgWaitForMultipleObjects 707
13.4 綜合示例 708
第14章 多媒體函數(shù) 734
14.1 音頻函數(shù) 734
14.1.1 PlaySound 734
14.1.2 sndPlaySound 735
14.2 AVI文件 736
14.2.1 AVI數(shù)字視頻的格式 736
14.2.2 AVI數(shù)字視頻的特點 737
14.2.3 AVI采用的壓縮算法 738
14.3 MCI命令字符串接口 738
14.4 多媒體程序?qū)嵗?744
附 錄 771
附錄A 虛擬鍵碼 771
附錄B 揚聲器發(fā)音頻率 775
附錄C 可用代碼頁列表 776
附錄D 結(jié)構(gòu)定義 776
D.1 BITMAP 776
D.2 CPINFO 777
D.3 DEVMODE 777
D.4 FILETIME 778
D.5 FORM_INFO_1 779
D.6 LOGBRUSH 779
D.7 LOGPEN 780
D.8 MENUITEMINFO 780
D.9 MONINTOR_INFO_2 782
D.10 NETRESOURCE 783
D.11 OSVERSIONINFO 784
D.12 POINTAPI 784
D.13 PROVIDOR_INFO_1 785
D.14 RECT 785
D.15 RGNDATA 785
D.16 SYSTEM_INFO 786
D.17 SYSTEMTIME 787
D.18 TIME_ZONE_INFORMATION 788
D.19 WINDOWPLACEMENT 789
D.20 XFORM 789

圖書封面

圖書標簽Tags

評論、評分、閱讀與下載


    Windows API編程手冊 PDF格式下載


用戶評論 (總計0條)

 
 

 

250萬本中文圖書簡介、評論、評分,PDF格式免費下載。 第一圖書網(wǎng) 手機版

京ICP備13047387號-7