当前位置:首页 > 工业技术
API for Windows 98/2000详解
API for Windows 98/2000详解

API for Windows 98/2000详解PDF电子书下载

工业技术

  • 电子书积分:15 积分如何计算积分?
  • 作 者:张昆深,晓黄主编
  • 出 版 社:北京:清华大学出版社
  • 出版年份:2001
  • ISBN:7302043345
  • 页数:468 页
图书介绍:
《API for Windows 98/2000详解》目录
标签:详解 主编

第1章 概述 1

1.1 什么是API 1

1.2 为什么要用API函数 1

1.3 Windows 32 API简介 2

1.4 关于本书的几点说明 2

第2章 如何在VB中调用DLL API 4

2.1 函数声明中的传值和传地址 6

2.2 参数的传递 6

2.3 访问Windows API函数 8

第3章 Windows消息函数 9

3.1 BroadcastSystemMessage 9

3.2 GetMessagePos 10

3.3 GetMessageTime 10

3.4 PostMessage,PostMessageBynum,PostMessageBystring 10

3.5 PostThreadMessage 11

3.6 ReplyMessage 11

3.7 SendMessage,SendMessageBynum,SendMessageByString 12

3.8 SendMessageCallback 13

3.10 SendNotifyMessage 14

3.9 SendMessageTimeout 14

第4章 硬件与系统函数 16

4.1 ActivateKeyboardLayout 16

4.2 ChangeDisplaySettings 16

4.3 ClipCursor,ClipCursorBynum 17

4.4 ConvertDefaultLocale 20

4.5 CreateCaret 20

4.6 EnumDisplaySettings 21

4.7 EnumCalendarInfo 24

4.9 ExitWindowsEx 25

4.8 EnumSystemCodePages 25

4.10 ExpandEnvironmentStrings 26

4.11 GetAsyncKeyState 27

4.12 GetCaretBlinkTime 29

4.13 GetCaretPos 29

4.14 GetClipCursor 30

4.15 GetCommandLine 30

4.16 GetComputerName 32

4.17 GetCursor 32

4.18 GetCursorPos 33

4.19 GetDateFormat 36

4.20 GetDeviceCaps 37

4.21 GetDoubleClickTime 39

4.22 GetInputState 39

4.23 GetKeyboardLayout 40

4.24 GetKeyboardLayoutList 40

4.25 GetKeyboardLayoutName 40

4.26 GetKeyboardState 41

4.27 GetKeyboardType 41

4.30 GetLastError 42

4.29 GetKeyState 42

4.28 GetKeyNameText 42

4.31 GetLocaleInfo 44

4.32 GetNumberFormat 44

4.33 GetNumberFormatBynum 45

4.34 GetQueueStatus 45

4.35 GetSysColor 46

4.36 GetSystemInfo 48

4.37 GetSystemMetrics 49

4.39 GetSystemTimeAdjustment 53

4.40 GetThreadLocale 53

4.38 GetSystemPowerStatus 53

4.41 GetTickCount 54

4.42 GetUserName 54

4.43 GetVersionEx 54

4.44 HideCaret 55

4.45 keybd_event 55

4.46 LoadKeyboardLayout 56

4.47 MapVirtualKeyEx 56

4.48 mciSendString 57

4.50 mouse_event 59

4.49 MessageBeep 59

4.51 SetCaretBlinkTime 60

4.52 SetCaretBlinkTime 61

4.53 SetCaretPos 61

4.54 SetComputerName 61

4.55 SetCursorPos 62

4.56 SetDoubleClickTime 64

4.57 SetKeyboardState 64

4.58 SetSysColors 67

4.59 SetSystemCursor 69

4.60 SetSystemTime 69

4.62 SetSystemPaletteUse 70

4.61 SetSystemTimeAdjustment 70

4.63 ShowCaret 71

4.64 ShowCursor 72

4.65 SwapMouseButton 73

4.66 SystemParametersInfo 73

4.67 ToAsciiEx 77

4.68 ToUnicode 78

4.69 UnloadKeyboardLayout 78

4.70 VkKeyScanEx 79

5.2 AttachThreadInput 80

第5章 控件与消息函数 80

5.1 AnyPopup 80

5.3 ArrangeIconicWindows 81

5.4 BeginDeferWindowPos 81

5.5 BringWindowToTop 81

5.6 CascadeWindowsBynum 82

5.7 ChildWindowFromPointEx 83

5.8 CloseWindow 83

5.9 CopyRect 84

5.10 DeferWindowPos 85

5.11 DestroyWindow 86

5.13 EndDeferWindowPos 87

5.14 EnumChildWindows 87

5.12 EnableWindow 87

5.15 EnumThreadWindows 88

5.16 EnumWindows 88

5.17 EqualRect 89

5.18 FindWindowEx 89

5.19 FlashWindow 89

5.20 FloodFill 90

5.23 GetClassInfoEx 94

5.21 GetActiveWindow 94

5.22 GetCapture 94

5.24 GetClassLong 95

5.25 GetClassName 96

5.26 GetClassWord 96

5.27 GetDesktopWindow 96

5.28 GetFocus 98

5.29 GetForegroundWindow 98

5.30 GetTopWindow 99

5.31 GetWindow 99

5.32 GetWindowLong 101

5.33 GetWindowPlacement 102

5.34 GetWindowRect 103

5.35 GetWindowText 105

5.36 GetWindowTextLength 105

5.37 IsChild 105

5.38 IsIconic 106

5.39 IsWindow 106

5.40 IsWindowEnabled 106

5.43 LockWindowUpdate 107

5.42 IsZoomed 107

5.41 IsWindowVisible 107

5.44 OpenIcon 108

5.45 RedrawWindow 108

5.46 ReleaseCapture 109

5.47 ScrollWindow 110

5.48 ScrollWindowEx 110

5.49 SetActiveWindow 111

5.50 SetCapture 111

5.52 SetForegroundWindow 112

5.53 SetParent 112

5.51 SetClassLong 112

5.54 SetWindowLong 115

5.55 SetWindowPlacement 116

5.56 ShowWindow 116

5.57 本章综合例程——屏幕保护程序 117

第6章 设备场景函数 125

6.1 AddFontResource 125

6.2 CombineRgn 125

6.3 CreatePolygonRgn 126

6.4 CreatePolyPolygonRgn 126

6.6 CreateRectRgnIndirect 127

6.5 CreateRectRgn 127

6.7 CreateRoundRectRgn 128

6.8 CreateCompatibleDC 128

6.9 CreateDCBynum 129

6.10 CreateIC 130

6.11 CreateScalableFontResource 131

6.12 DeleteDC 131

6.13 DrawTextEx 132

6.14 EqualRgn 134

6.16 ExcludeUpdateRgn 135

6.15 ExcludeClipRect 135

6.17 ExtSelectClipRgn 136

6.18 FillRgn 136

6.19 GetBoundsRect 138

6.20 GetClipBox 138

6.21 GetClipRgn 139

6.22 GetDC 139

6.23 GetDCOrgEx 140

6.24 GetUpdateRgn 141

6.25 GetWindowDC 141

6.27 InvalidateRgn 143

6.26 GetWindowRgn 143

6.28 InvertRgn 144

6.29 PtInRegion 145

6.30 PtVisible 146

6.31 ReleaseDC 147

6.32 RestoreDC 147

6.33 SaveDC 148

6.34 ScrollDC 148

6.35 SelectClipRgn 149

6.36 SetBoundsRect 149

6.38 SetWindowExtEx 150

6.37 SetRectRgn 150

6.39 SetWindowOrgEx 151

6.40 SetWindowRgn 151

6.41 WindowFromDC 153

6.42 本章综合例程——Windows任务管理器 153

第7章 菜单函数 157

7.1 AppendMenu 157

7.2 CheckMenuItem 159

7.3 CheckMenuRadioItem 159

7.6 DeleteMenu 160

7.5 CreatePopupMenu 160

7.4 CreateMenu 160

7.7 DestroyMenu 161

7.8 DrawMenuBar 161

7.9 EnableMenuItem 162

7.10 GetMenu 163

7.11 GetMenuCheckMarkDimensions 164

7.12 GetMenuContextHelpId 164

7.13 GetMenuDefaultItem 164

7.15 GetMenuItemID 165

7.14 GetMenuItemCount 165

7.16 GetMenuItemInfo 166

7.17 GetMenuItemRect 166

7.18 GetMenuState 166

7.19 GetMenuString 167

7.20 GetSubMenu 168

7.21 GetSystemMenu 168

7.22 HiliteMenuItem 168

7.23 InsertMenu 169

7.26 LoadMenu 170

7.25 IsMenu 170

7.24 InsertMenuItem 170

7.27 LoadMenuIndirect 171

7.28 MenuItemFromPoint 171

7.29 ModifyMenuBynum 172

7.30 RemoveMenu 173

7.31 SetMenu 174

7.32 SetMenuItemBitmaps 174

7.33 SetMenuItemInfo 175

7.34 TrackPopupMenuEx 175

8.2 CancelWaitableTimer 177

第8章 进程与线程函数 177

8.1 CallNamedPipe 177

8.3 ConnectNamedPipe 178

8.4 CreateEvent 178

8.5 CreateMailslot 179

8.6 CreateMutex 179

8.7 CreateNamedPipe 180

8.8 CreatePipe 181

8.9 CreateProcess 181

8.10 CreateSemaphore 185

8.11 CreateWaitableTimer 186

8.12 DisconnectNamedPipe 186

8.13 DuplicateHandle 187

8.14 ExitProcess 187

8.15 FindCloseChangeNotification 188

8.16 FindExecutable 188

8.17 FindFirstChangeNotification 189

8.18 FindNextChangeNotification 190

8.19 FreeLibrary 190

8.20 GetCurrentProcessId 191

8.21 GetCurrentThread 192

8.22 GetExitCodeProcess 194

8.23 GetExitCodeThread 194

8.24 GetHandleInformation 194

8.25 GetMailslotInfo 195

8.26 GetModuleFileName 195

8.27 GetModuleHandle 196

8.28 GetProcessShutdownParameters 196

8.29 GetProcessTimes 196

8.32 GetThreadPriority 197

8.30 GetProcessWorkingSetSize 197

8.31 GetStarupInfo 197

8.33 GetThreadTimes 198

8.34 GetThreadPriority 198

8.35 GetWindowThreadProcessId 199

8.36 LoadModule 199

8.37 cMsgWaitForMultipleObjects 199

8.38 SetProcessShutdownParameters 200

8.39 SetProcessWorkingSetSize 200

8.40 SetThreadPriority 201

8.41 ShellExecute 202

8.42 TerminateProcess 203

8.43 WinExec 204

第9章 绘图函数 205

9.1 AbortPath 205

9.2 AngleArc 205

9.3 ArcTo 206

9.4 BeginPath 206

9.6 Chord 208

9.5 CancelDC 208

9.7 CloseEnhMetaFile 209

9.8 CloseFigure 209

9.9 CloseMetaFile 210

9.10 CopyEnhMetaFile 210

9.11 CopyMetaFile 211

9.12 CreateBrushIndirect 211

9.13 CreateDIBPatternBrush 213

9.14 CreateDIBPatternBrushPt 214

9.15 CreateEnhMetaFile 214

9.16 CreateHatchBrush 215

9.17 CreateMetaFile 220

9.18 CreatePatternBrush 221

9.19 CreatePen 221

9.20 CreatePenIndirect 222

9.21 CreateSolidBrush 222

9.22 DeleteEnhMetaFile 222

9.23 DeleteMetaFile 223

9.24 DeleteObject 223

9.25 DrawEdge 223

9.27 DrawFocusRect 226

9.26 DrawEscape 226

9.28 DrawFrameControl 227

9.29 DrawState 227

9.30 Ellipse 228

9.31 EndPath 229

9.32 EnumEnhMetaFile 229

9.33 EnumMetaFile 229

9.34 EnumObjects 230

9.35 ExtCreatePen 230

9.36 ExtFloodFill 231

9.37 FillPath 232

9.38 FillRect 233

9.39 FlattenPath 234

9.40 FloodFill 234

9.41 FrameRect 234

9.42 GdiComment 235

9.43 GdiFlush 235

9.44 GdiGetBatchLimit 236

9.45 GdiSetBatchLimit 236

9.46 GetArcDirection 236

9.48 GetBkMode 237

9.47 GetBkColor 237

9.49 GetBrushOrgEx 238

9.50 GetCurrentObject 238

9.51 GetCurrentPositionEx 238

9.52 GetEnhMetaFile 239

9.53 GetEnhMetaFileBits 239

9.54 GetEnhMetaFileDescription 239

9.55 GetEnhMetaFileHeader 240

9.56 GetEnhMetaFilePaletteEntries 240

9.57 GetMetaFile 241

9.58 GetMetaFileBitsEx 241

9.60 GetNearestColor 242

9.59 GetMiterLimit 242

9.61 GetObjectAPI 244

9.62 GetObjectType 246

9.63 GetPath 246

9.64 GetPixel 247

9.65 GetPolyFillMode 247

9.66 GetSysColorBrush 248

9.67 GetROP2 248

9.69 GetWinMetaFileBits 249

9.68 GetStockObject 249

9.70 InvertRect 250

9.71 LineDDA 250

9.72 LineToLineTo 251

9.73 MoveToEx 251

9.74 PaintDesktop 252

9.75 PathToRegion 252

9.76 PlayEnhMetaFile 252

9.77 PlayEnhMetaFileRecord 253

9.78 PlayMetaFile 253

9.80 PolyBezier 254

9.79 PlayMetaFileRecord 254

9.81 PolyBezierTo 255

9.82 PolyDraw 255

9.83 Polygon 256

9.84 Polyline 256

9.85 PolylinePolylineTo 256

9.86 PolyPolygon 257

9.87 InvertRect 257

9.88 LineDDA 258

9.89 LineTo 258

9.92 RoundRect 259

9.90 MoveToEx 259

9.91 Rectangle 259

9.93 SelectClipPath 260

9.94 SelectObject 261

9.95 SetArcDirection 265

9.96 SetBkColor 265

9.97 SetBkMode 266

9.98 SetBrushOrgEx 266

9.99 SetEnhMetaFileBits 266

9.101 SetMiterLimit 267

9.100 SetMetaFileBitsEx 267

9.102 SetPixel 268

9.103 SetPixelV 268

9.104 SetPolyFillMode 268

9.105 SetROP2 269

9.106 SetWinMetaFileBits 269

9.107 StrokeAndFillPath 270

9.108 StrokePath 270

9.109 UnrealizeObject 270

9.110 WidenPath 271

第10章 位图、图标和光栅运算函数 272

10.1 BitBlt 272

10.2 CopyIcon 277

10.3 CopyImage 277

10.4 CreateBitmap 278

10.5 CreateCompatibleBitmap 280

10.6 CreateCursor 280

10.7 CreateDIBitmap 282

10.8 CreateDIBSection 283

10.10 CreateIconIndirect 284

10.9 CreateIcon 284

10.11 DestroyCursor 285

10.12 DestroyIcon 285

10.13 DrawIcon 285

10.14 DrawIconEx 286

10.15 ExtractAssociatedIcon 286

10.16 ExtractIcon 288

10.17 GetBitmapBits 289

10.18 GetBitmapDimensionEx 289

10.19 GetDIBColorTable 289

10.20 GetDIBits 290

10.21 GetIconInfo 291

10.22 GetStretchBltMode 291

10.23 LoadBitmap 291

10.24 LoadBitmapBynum 292

10.25 LoadCursor 292

10.26 LoadCursorBynum 293

10.27 LoadCursorFromFile 294

10.28 LoadIcon 294

10.29 LoadIconBynum 295

10.30 Loadimage 295

10.31 LoadimageBynum 297

10.32 PatBlt 298

10.33 PlgBlt 299

10.34 SetBitmapBits 299

10.35 SetBitmapDimensionEx 300

10.36 SetDIBits 300

10.37 SetDIBitsToDevice 301

10.38 SetStretchBltMode 302

10.39 StretchBlt 302

10.40 StretchDIBits 303

11.2 AbortPrinter 305

第11章 打印函数 305

11.1 Abortdoc 305

11.3 AddForm 306

11.4 AddJob 306

11.5 AddMonitor 307

11.6 AddPort 307

11.7 AddPrinter 307

11.8 AddPrinterConnection 308

11.9 AddPrintProcessor 308

11.12 ClosePrinter 309

11.10 AddPrintProvidor 309

11.11 AdvancedDocumentProperties 309

11.13 ConfigurePort 310

11.14 ConnectToPrinterDlg 310

11.15 DeleteForm 310

11.16 DeleteMonitor 311

11.17 DeletePort 311

11.19 DeletePrinterConnection 312

11.20 DeletePrinterDriver 312

11.18 DeletePrinter 312

11.21 DeletePrintProcessor 313

11.22 DeletePrintProvidor 313

11.23 DeviceCapabilities 314

11.24 DocumentProperties 316

11.25 EndDocAPI 317

11.26 EndDocPrinter 317

11.27 EndPage 317

11.28 EndPagePrinter 318

11.29 EnumForms 318

11.31 EnumMonitors 319

11.30 EnumJobs 319

11.32 EnumPorts 320

11.33 EnumPrinterDrivers 320

11.34 EnumPrinters 321

11.35 EnumPrintProcessorDataypes 322

11.36 EnumPrintProcessors 322

11.37 Escape 323

11.39 FindFirstPrinterChangeNotification 324

11.40 FindNextPrinterChangeNotification 324

11.38 FindClosePrinterChangeNotification 324

11.41 FreePrinterNotifyInfo 325

11.42 GetForm 325

11.43 GetJob 326

11.44 GetPrinter 326

11.45 GetPrinterDriver 327

11.46 GetPrinterDriverDirectory 327

11.47 GetPrintProcessorDirectory 328

11.48 OpenPrinter 329

11.49 PrinterMessageBox 329

11.52 ResetDC 330

11.51 ReadPrinter 330

11.50 PrinterProperties 330

11.53 ResetPrinter 331

11.54 ScheduleJob 331

11.55 SetAbortProc 332

11.56 SetForm 332

11.57 SetJob 333

11.58 SetPrinter 333

11.59 SetPrinterData 334

11.60 StartDoc 334

11.62 StartPage 335

11.61 StartDocPrinter 335

11.63 StartPagePrinter 336

11.64 WritePrinter 336

11.65 本章综合例程——打印文件 336

第12章 网络函数 342

12.1 WNetAddConnection 342

12.2 WNetAddConnection2 343

12.3 WNetAddConnection3 344

12.4 WNetCancelConnection 345

12.5 WNetCancelConnection2 345

12.8 WNetDisconnectDialog 346

12.7 WNetConnectionDialog 346

12.6 WNetCloseEnum 346

12.9 WNetEnumResource 347

12.10 WNetGetConnection 350

12.11 WNetGetLastError 350

12.12 WNetGetUniversalName 350

12.13 WNetGetUser 351

12.14 WNetOpenEnum 352

12.15 本章综合例程——网络资源管理器 353

13.1 TextOut 360

第13章 文件处理函数 360

13.2 CopyFile 361

13.3 CreateDirectory 365

13.4 CreateDirectoryEx 365

13.5 CreateFile 366

13.6 CreateFileMapping 369

13.7 DeleteFile 370

13.8 DeviceIoControl 370

13.9 DosDateTimeToFileTime 371

13.10 FileTimeToDosDateTime 371

13.13 FindClose 372

13.11 FileTimeToLocalFileTime 372

13.12 FileTimeToSystemTime 372

13.14 FindFirstFile 373

13.15 FindNextFile 373

13.16 FlushFileBuffers 377

13.17 FlushViewOfFile 377

13.18 GetBinaryType 377

13.19 GetCompressedFileSize 378

13.20 GetCurrentDirectory 378

13.22 GetDiskFreeSpaceEx 379

13.21 GetDiskFreeSpace 379

13.23 GetDriveType 380

13.24 GetExpandedName 381

13.25 GetFileAttributes 381

13.26 GetFileInformationByHandle 381

13.27 GetFileSize 382

13.28 GetFileTime 382

13.29 GetFileType 383

13.30 GetFileVersionInfo 383

13.33 GetLogicalDrives 384

13.32 GetFullPathName 384

13.31 GetFileVersionInfoSize 384

13.34 GetLogicalDriveStrings 386

13.35 GetOverlappedResult 387

13.36 GetPrivateProfileInt 387

13.37 GetPrivateProfileSection 388

13.38 GetPrivateProfileString 388

13.39 GetProfileInt 389

13.41 GetProfileString 390

13.40 GetProfileSection 390

13.42 GetShortPathName 391

13.43 GetSystemDirectory 391

13.44 GetTempFileName 392

13.45 GetTempPath 393

13.46 GetVolumeInformation 393

13.47 GetWindowsDirectory 395

13.48 hread 396

13.49 hwrite 396

13.51 llseek 397

13.52 LockFile 397

13.50 lclose 397

13.53 LockFileEx 398

13.54 lopen 399

13.55 lread 399

13.56 lwrite 400

13.57 LZClose 400

13.58 LZCopy 400

13.59 LZInit 401

13.60 LZOpenFile 401

13.61 LZRead 402

13.63 MapViewOfFile 403

13.62 LZSeek 403

13.64 MapViewOfFileEx 404

13.65 MoveFile 405

13.66 MoveFileEx 405

13.67 OpenFile 406

13.68 OpenFileMapping 408

13.69 QueryDosDevice 408

13.70 ReadFile 409

13.71 ReadFileEx 409

13.73 RegConnectRegistry 410

13.74 RegCreateKey 410

13.72 RegCloseKey 410

13.75 RegCreateKeyEx 412

13.76 RegDeleteKey 413

13.77 RegDeleteValue 413

13.78 RegEnumKey 414

13.79 RegEnumKeyEx 414

13.80 RegEnumValue 415

13.81 RegFlushKey 415

13.83 RegLoadKey 416

13.82 RegGetKeySecurity 416

13.84 RegNotifyChangeKeyValue 417

13.85 RegOpenKey 417

13.86 RegOpenKeyEx 418

13.87 RegQueryInfoKey 418

13.88 RegQueryValue 419

13.89 RegQueryValueEx 419

13.90 RegReplaceKey 420

13.91 RegRestoreKey 420

13.93 RegSetKeySecurity 421

13.92 RegSaveKey 421

13.94 RegSetValue 422

13.95 RegSetValueEx 422

13.96 RegUnLoadKey 423

13.97 RemoveDirectory 423

13.98 SearchPath 423

13.99 SetCurrentDirectory 424

13.100 SetEndOfFile 424

13.102 SetFileTime 425

13.103 SetVolumeLabel 425

13.101 SetFileAttributes 425

13.104 SystemTimeToFileTime 426

13.105 UnlockFile 426

13.106 UnlockFileEx 427

13.107 UnmapViewOfFile 427

13.108 VerFindFile 427

13.109 VerInstallFile 428

13.110 VerLanguageName 429

13.111 VerQueryValue 430

13.112 WriteFile 430

13.113 WriteFileEx 431

13.115 WritePrivateProfileString 432

13.114 WritePrivateProfileSection 432

13.116 WriteProfileSection 433

13.117 WriteProfileString 433

13.118 综合例程1——INI文件操作的例子 434

13.119 综合例程2——编辑注册表 438

第14章 文本和字体函数 444

14.1 EnumFonts 444

14.2 ExtTextOut 444

14.3 GetAspectRatioFilterEx 445

14.4 GetCharABCWidths 445

14.6 GetCharacterPlacement 446

14.5 GetCharABCWidthsFloat 446

14.7 GetCharWidth32 447

14.8 GetCharWidthFloat 448

14.9 GetFontData 448

14.10 GetFontLanguageInfo 449

14.11 GetGlyphOutline 449

14.12 GetKerningPairs 450

14.13 GetOutlineTextMetrics 450

14.14 GetRasterizerCaps 451

14.15 GetTabbedTextExtent 451

14.17 GetTextCharacterExtra 452

14.16 GetTextAlign 452

14.18 GetTextCharset 453

14.19 GetTextCharsetInfo 453

14.20 GetTextColor 453

14.21 GetTextExtentExPoint 454

14.22 GetTextExtentPoint 454

14.23 GetTextExtenPoint32 455

14.24 GetTextFace 455

14.25 GetTextMetrics 456

14.26 GrayString 456

14.27 GrayStringByString 457

14.28 PolyTextOut 458

14.29 RemoveFontResource 458

14.30 SetMapperFlags 458

14.31 SetTextAlign 459

14.32 SetTextCharacterExtra 459

14.33 SetTextColor 459

14.34 SetTextJustification 460

14.35 TabbedTextOut 461

14.36 TextOut 461

14.37 综合例子——旋转字的作法 462

相关图书
作者其它书籍
返回顶部