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

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

工业技术

  • 电子书积分:14 积分如何计算积分?
  • 作 者:张桂勇,陈芳琼编著
  • 出 版 社:北京:清华大学出版社
  • 出版年份:2003
  • ISBN:7302073120
  • 页数:415 页
图书介绍:本书内容为Microsoft 324位平台应用程序接口及Windows 2000/XP中的函数的使用方法。
《API for Windows 2000/XP详解》目录
标签:编著 详解

目录 1

第1章 概述 1

1.1 什么是API 1

1.2 为什么要用API函数 1

1.3 Windows 32 API简介 2

1.4 关于本书的几点说明 2

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

2.1 基本知识 5

2.2 函数声明中的传值和地址 7

2.3 参数的传递 8

2.4 访问Windows API函数 9

2.5 调用Windows API的注意事项 10

第3章 在Delphi中使用API函数 13

3.1 在Delphi中使用API函数 13

3.2 在VC++中使用API函数 14

第4章 Windows消息函数 15

4.1 BroadcastSystemMessage 15

4.3 GetlnputState 16

4.2 DispatchMessage 16

4.4 Get Message 17

4.5 GetMessageExtraInfo 18

4.6 GetMessagePos 18

4.7 GetMessageTime 18

4.8 GetQueueStatus 18

4.9 InSendMessage 20

4.10 PeekMessage 20

4.12 PostThreadMessage 21

4.11 PostMessage 21

4.13 RegisterHotKey 22

4.14 RegisterWindowsMessage 23

4.15 ReplyMessage 24

4.16 SendAsyncProc 24

4.17 SendMessage 25

4.18 SendMessageCallback 26

4.19 SendMessageTimeout 26

4.20 SendNotifyMessage 27

4.21 TranslateMessage 27

4.23 WaitMessage 28

4.22 UnregisterHotKey 28

4.24 综合示例:SendMessage的应用 29

第5章 硬件与系统函数 32

5.1 ActivateKeyboardLayout 32

5.2 ChangeDisplaySettings 32

5.3 ChangeDisplaySettingsEx 34

5.4 ClipCursor 35

5.5 ConvertDefaultLocale 36

5.6 EnumDisplaySettings 36

5.7 EnumCalendarInfo 37

5.8 EnumSystemCodePages 38

5.9 ExitWindowsEx 38

5.10 GetAsyncKeyState 39

5.11 GetClipCursor 39

5.12 GetCommandLine 40

5.13 GetComputerName 40

5.14 GetCursor 40

5.15 GetCursorPos 41

5.16 GetDeviceCaps 41

5.17 GetEnvironmentVariable 44

5.18 GetInputState 45

5.19 GetKeyboardState 46

5.20 GetKeyNameText 47

5.21 GetKeyState 47

5.22 GetLastError 48

5.23 GetLocaleInfo 49

5.24 GetLocalTime 49

5.25 GetSysColor 50

5.26 GetSystemInfo 51

5.27 GetSystemMetrics 52

5.28 GetSystemPowerStatus 54

5.29 GetSystemTime 55

5.30 GetUserName 55

5.31 GetVersion 56

5.32 GetVersionEx 56

5.33 keybd_event 57

5.34 MciSendString 58

5.36 mouse_event 59

5.35 MessageBeep 59

5.38 SetComputerName 61

5.37 SetCaretPos 61

5.39 SetCursor 62

5.40 SetCursorPos 62

5.41 SetKeyboardState 62

5.42 SetLastError 63

5.43 SetSysColors 63

5.44 SetSystemCursor 64

5.46 SetTimer 65

5.45 SetSystemTime 65

5.47 SetWindowsHookEx 66

5.48 ShowCursor 69

5.49 SystemParametersInfo 69

5.50 ToAscii 70

5.51 ToUnicode 71

5.52 VkKeyScan 71

6.1 AnyPopup 73

6.2 AttachThreadInput 73

第6章 控件与消息函数 73

6.3 BeginDeferWindowPos 74

6.4 CascadeWindowsBynum 75

6.5 ChildWindowFromPoint 75

6.6 ChildWindowFromPointEX 76

6.7 CloseWindow 76

6.8 ClientToScreen 77

6.9 DeferWindowPos 78

6.10 DestroyWindow 79

6.13 EnumChildWindows 80

6.11 EnableWindow 80

6.12 EndDeferWindowPos 80

6.14 EnumThreadWindows 82

6.15 EnunWindows 82

6.16 FindWindowEx 83

6.17 GetActiveWindow 84

6.18 GetCapture 84

6.19 GetClassInfo 85

6.21 GetClassName 86

6.20 GetClassLong 86

6.23 GetClientRect 87

6.22 GetClassWord 87

6.24 GetDesktopWindow 88

6.25 GetFocus 89

6.26 GetForegroundWindow 89

6.27 GetTopWindow 89

6.28 GetParent 89

6.29 GetWindow 91

6.30 GetWindowWord 92

6.31 GetWindowLong 93

6.32 GetWindowPlacement 94

6.33 GetWindowRect 96

6.34 GetWindowText 96

6.35 GetWindowTextLength 97

6.36 IsChild 97

6.38 IsWindowEnabled 98

6.39 IsWindowVisible 98

6.37 IsIconic 98

6.40 MessageBoxIndirect 99

6.41 IsZoomed 101

6.42 MoveWindow 102

6.43 LockWindowUpdate 102

6.44 OffsetRect 103

6.45 OpenIcon 103

6.46 RedrawWindow 103

6.47 ReleaseCapture 104

6.49 SetCapture 105

6.48 SetActiveWindow 105

6.50 SetClassLong 106

6.51 SetClassWord 107

6.52 SetFocus 107

6.53 SetForegroundWindow 108

6.54 SetParent 109

6.55 SetWindowPos 111

6.56 SetWindowText 113

6.58 SetWindowLong 114

6.57 SetWindowWord 114

6.59 ShowWindow 115

6.60 TileWindows 117

6.61 WindowFromPoint 117

6.62 综合示例:带预览功能的文件打开对话框 119

6.63 综合示例:屏蔽文本框的右键菜单 122

第7章 设备场景函数 125

7 1 AddFontResource 125

7.2 CombineRgn 126

7.3 CreateEllipticRgn 126

7.5 CreateFont 127

7.4 CreateEllipticRgnIndirect 127

7.6 CreateFontIndirect 129

7.7 CreateCompatibleDC 131

7.8 CreateDC 131

7.9 CreateIC 132

7.10 CreateScalableFontResource 133

7.11 DeleteDC 134

7.12 DrawText 134

7.14 ExcludeClipRect 137

7.13 DrawTextEx 137

7.16 FrameRgn 138

7.15 ExcludeUpdateRgn 138

7.17 FillRgn 139

7.18 GetBoundsRect 139

7.19 GetClipBox 140

7.20 GetClipRgn 140

7.21 GetDC 141

7.22 GetDeviceCaps 142

7.24 GetRgnBox 145

7.23 GetDCOrgEx 145

7.25 GetUpdateRgn 146

7.26 GetWindowDC 146

7.27 GetWindowRgn 148

7.28 IntersectClipRect 148

7.29 InvalidateRgn 150

7.30 InvertRgn 150

7.32 OffsetRgn 151

7.31 OffsetClipRgn 151

7.33 PtInRegion 152

7.34 PtVisible 153

7.35 RectVisible 153

7.36 ReleaseDC 153

7.37 RestoreDC 154

7.38 SaveDC 154

7.39 SetMapMode 155

7.40 SetWindowExtEx 156

7.42 SetWindowRgn 157

7.41 SetWindowOrgEx 157

7.43 WindowFronDC 159

第8章 菜单函数 160

8.1 AppendMenu 160

8.2 CheckMenuItem 161

8.3 CheckMenuRadioItem 162

8.4 CreateMenu 162

8.5 CreatePopupMenu 163

8.7 DestroyMenu 164

8.6 DeleteMenu 164

8.8 DrawMenuBar 165

8.9 EnableMenuItem 165

8.10 GetMenu 166

8.11 GetMenuCheckMarkDimensions 166

8.12 GetMenuContextHelpId 167

8.13 GetMenuDefaultItem 167

8.14 GetMenuItemCount 167

8.15 GetMenuItemID 168

8.16 GetMenuItemInfo 168

8.17 GetMenuItemRect 169

8.18 GetMenuState 170

8.19 GetMenuString 171

8.20 GetSubMenu 171

8.21 GetSystemMenu 171

8.22 HiliteMenuItem 173

8.23 InsertMenu 173

8.25 IsMenu 175

8.24 InsertMenuItem 175

8.26 LoadMenu 176

8.27 LoadMenuIndirect 176

8.28 MenuItemFromPoint 177

8.29 ModifyMenu 177

8.30 RemoveMenu 178

8.31 SetMenu 179

8.32 SetMenuItemBitmaps 179

8.34 TrackPopupMenu 181

8.33 SetMenuItemInfo 181

8.35 TrackPopupMenuEx 182

8.36 综合示例:在系统菜单上添加自定义菜单项 183

8.37 综合示例:建立自己的Windows开始菜单 185

第9章 进程与线程函数 186

9.1 CallNamedPipe 186

9.2 CancelWaitableTimer 186

9.3 CreateEvent 187

9.4 CreateMutex 187

9.5 CreateProcess 188

9.6 CreateSemaphore 190

9.7 ExitProcess 191

9.8 FindCloseChangeNotification 191

9.9 FindExecutable 192

9.10 FindFirstChangeNotification 193

9.11 FindNextChangeNotification 194

9.12 FreeLibrary 194

9.13 GetCurrentProcess 194

9.16 GetExitCodeProcess 195

9.17 GetExitCodeThread 195

9.14 GetCurrentProcessId 195

9.15 GetCurrentThread 195

9.18 GetModuleFileName 196

9.19 GetPriorityClass 197

9.20 GetModuleHandle 198

9.21 GetProcessShutdownParameters 198

9.22 GetProcessTimes 199

9.25 GetThreadPriority 200

9.24 GetStartupInfo 200

9.23 GetProcessWorkingSetSize 200

9.26 GetThreadTimes 201

9.27 LoadLibraryEx 202

9.28 GetWindowThreadProcessId 202

9.29 LoadModule 202

9.30 SetProcessShutdownParameters 203

9.31 SetProcessWorkingSetSize 203

9.32 SetPriorityClass 203

9.34 ShellExecute 204

9.33 SetThreadPriority 204

9.35 TerminateProcess 205

9.36 WinExec 205

第10章 绘图函数 207

10.1 AbortPath 207

10.2 AngleArc 207

10.3 Arc 208

10.4 BeginPath 209

10.6 Chord 210

10.5 CancelDC 210

10.7 CreateBrushIndirect 211

10.8 CreateDIBPattemBrush 212

10.9 CreateDIBPattemBrushPt 212

10.10 CreateEnhMetaFile 213

10.11 CreateHatchBrush 213

10.12 CreateMetaFile 214

10.13 CreatePatternBrush 215

10.15 CreatePenIndirect 216

10.14 CreatePen 216

10.16 CreateSolidBrush 217

10.17 DeleteEnhMetaFile 217

10.18 DeleteMeteFile 218

10.19 DeleteObject 218

10.20 Ellipse 218

10.21 EndPath 220

10.22 EnumEnhMetaFile 220

10.23 EnumMetaFile 221

10.24 EnumObjects 221

10.26 ExtFloodFill 222

10.25 ExtCreatePen 222

10.27 FillPath 223

10.28 FillRect 223

10.29 FlattenPath 224

10.30 GdiFlush 224

10.31 GetBkColor 225

10.32 GetBkMode 225

10.33 GetBrushOrgEx 225

10.35 GetCurrentPositionEx 226

10.34 GetCurrentObject 226

10.36 GetEnhMetaFile 227

10.37 GetNearestColor 227

10.38 GetObject 227

10.39 GetObjectType 228

10.40 GetPixel 229

10.41 GetROP2 229

10.42 GetStockObject 231

10.43 InvertRect 232

10.44 LineTo 233

10.45 MoveToEx 233

10.46 PaintDesktop 234

10.47 Pie 235

10.48 PathToRegion 236

10.49 PlayEnhMetaFile 237

10.50 PlayEnhMetaFileRecord 237

10.51 PolyBezier 238

10.52 PolyDraw 239

10.53 Polyline 240

10.54 PolylineTo 241

10.55 PolyPolyline 241

10.56 LineTo 242

10.57 MoveToEx 243

10.58 Rectangle 243

10.59 SelectClipPath 244

10.60 SelectObject 244

10.62 SetBkColor 245

10.61 SetArcDirection 245

10.63 SetBkMode 246

10.64 SetBrushOrgEx 246

10.65 SetPixel 246

10.66 SetPixelV 247

10.67 SetROP2 247

10.68 ScreenToClient 248

10.69 StrokeAndFillPath 249

TreeView 250

10.70 综合示例:带背景图片的 250

第11章 位图和图标及光栅运算函数 252

11.1 BitBlt 252

11.2 CopyIcon 254

11.3 CreateBitmap 254

11.4 CreateCompatibleBitmap 255

11.5 CreateCursor 256

11.6 CreateDIBitmap 256

11.7 CreateDIBSection 257

11.8 CreateIcon 259

11.10 DestroyCursor 260

11.9 CreateIconIndirect 260

11.11 DestroyIcon 261

11.12 DrawIcon 261

11.13 DrawIconEx 262

11.14 ExtractAssociatedIcon 262

11.15 ExtractIcon 264

11.16 ExtractIconEx 265

11.17 GetBitmapBits 267

11.19 GetDIBColorTable 268

11.18 GetBitmapDimensionEx 268

11.20 GetDIBits 269

11.21 GetIconInfo 270

11.22 GetStretchBltMode 270

11.23 LoadBitmap 270

11.24 LoadCursor 271

11.25 LoadCursorFromFile 272

11.26 LoadIcon 273

11.27 Loadimage 273

11.29 PlgBlt 275

11.28 PatBlt 275

11.30 SetBitmapBits 277

11.31 SetBitmapDimensionEx 278

11.32 SetDIBits 278

11.33 SetDIBitsToDevice 279

11.34 SetStretchBltMode 280

11.35 StretchBlt 280

11.36 StretchDIBits 281

11.37 综合示例:屏幕放大镜 282

第12章 打印函数 284

12.1 Abortdoc 284

12.2 AbortPrinter 284

12.3 AddForm 285

12.4 AddJob 285

12.5 AddPort 286

12.6 AddPrinter 286

12.8 AdvancedDocumentProperties 287

12.9 ClosePrinter 287

12.7 AddPrinterConnection 287

12.10 ConfigurePort 288

12.11 ConnectToPrinterDlg 288

12.12 DeleteForm 288

12.13 DeletePort 289

12.14 DeletePrinter 289

12.15 DeletePrinterConnection 290

12.16 DeletePrinterDriver 290

12.17 DeviceCapabilities 290

12.18 DocumentProperties 293

12.19 EndDoc 294

12.20 EndPage 294

12.21 EndPagePrinter 294

12.22 EnumJobs 295

12.23 EnumPorts 295

12.24 EnumPrinterDrivers 296

12.25 EnumPrinters 297

12.26 Escape 298

12.27 GetJob 299

12.29 GetPrinterDriver 300

12.28 GetPrinter 300

12.30 GetPrinterDriverDirectory 301

12.31 GetPrintProcessorDirectory 301

12.32 OpenPrinter 302

12.33 PrinterMessageBox 302

12.34 PrinterProperties 303

12.35 ReadPrinter 303

12.36 ResetDC 304

12.37 ResetPrinter 304

12.39 SetPrinter 305

12.38 SetJob 305

12.40 SetPrinterData 306

12.41 StartDoc 307

12.42 StartDocPrinter 307

12.43 StartPage 308

12.44 StartPagePrinter 308

12.45 WritePrinter 309

第13章 网络函数 310

13.1 WNetAddConnection 310

13.3 WNetCancelConnection 311

13.2 WNetAddConnection2 311

13.5 WNetCloseEnum 312

13.4 WNetCancelConnection2 312

13.6 WNetConnectionDialog 313

13.7 WNetDisconnectDialog 313

13.8 WNetEnumResource 313

13.9 WNetGetConnection 314

13.10 WNetGetLastError 315

13.11 WNetGetUniversalName 316

13.13 WNetOpenEnum 317

13.12 WnetGetUser 317

第14章 文件处理函数 319

14.1 CloseHandle 319

14.2 CopyMemory 319

14.3 CopyFile 319

14.4 CopyFileEx 320

14.5 CopyProgressRoutine 320

14.6 CreateDirectory 321

14.7 CreateFile 322

14.8 DeleteFile 323

14.9 FileTimeToLocalFileTime 324

14.10 FileTimeToSystemTime 324

14.11 FindClose 324

14.12 FindFirstFile 326

14.13 FindNextFile 326

14.14 FlushFileBuffers 326

14.16 GetBinaryType 327

14.15 FlushViewOfFile 327

14.17 GetCurrentDirectory 328

14.18 GetDiskFreeSpace 328

14.19 GetDiskFreeSpaceEx 329

14.20 GetDriveType 329

14.21 GetFileAttributes 330

14.22 GetFileSize 331

14.23 GetFileTime 332

14.24 GetFileVersionInfo 333

14.26 GetLogicalDrives 334

14.25 GetFullPathName 334

14.27 GetLogicalDriveStrings 335

14.28 GetPrivateProfileInt 336

14.29 GetPrivateProfileSection 337

14.30 GetPrivateProfileString 338

14.31 GetProfileInt 339

14.32 GetProfileSection 339

14.33 GetProfileString 340

14.34 GetShortPathName 341

14.35 GetSystemDirectory 341

14.36 GetTempFileName 342

14.37 GetTempPath 342

14.38 GetVolumeInformation 343

14.39 GetWindowsDirectory 344

14.40 LocalFileTimeToFileTime 344

14.41 LockFileEx 345

14.42 MoveFile 345

14.44 OpenFile 346

14.43 MoveFileEx 346

14.45 OpenFileMapping 348

14.46 QueryDosDevice 349

14.47 ReadFile 349

14.48 ReadFileEx 350

14.49 RegCloseKey 350

14.50 RegConnectRegistry 351

14.51 RegCreateKey 351

14.53 RegDeleteKey 352

14.52 RegCreateKeyEx 352

14.54 RegDeleteValue 353

14.55 RegEnumKeyEx 353

14.56 RegEnumValue 354

14.57 RegGetKeySecurity 355

14.58 RegLoadKey 355

14.59 RegNotifyChangeKeyValue 356

14.60 RegOpenKey 356

14.62 RegQueryValueEx 357

14.61 RegOpenKeyEx 357

14.63 RegReplaceKey 358

14.64 RegRestoreKey 359

14.65 RegSaveKey 359

14.66 RegSetKeySecurity 360

14.67 RegSetValue 360

14.68 RemoveDirectory 361

14.69 SearchPath 361

14.72 SetFileAttributes 362

14.71 SetEndOfFile 362

14.70 SetCurrentDirectory 362

14.73 SetFileSecurity 363

14.74 SetFilePointer 363

14.75 SetFileTime 364

14.76 SetVolumeLabel 364

14.77 SystemTimeToFileTime 365

14.78 UnlockFile 365

14.79 VerLanguageName 365

14.80 WritePrivateProfileSection 367

14.81 WritePrivateProfileString 367

14.83 WriteProfileString 368

14.82 WriteProfileSection 368

14.84 综合示例:开机自动运行和添加文件右键菜单 369

14.85 常用文件处理模块 369

第15章 文本和字体函数 373

15.1 EnumFontFamilies 373

15.2 EnumFontFamiliesEx 374

15.3 EnumFonts 374

15.4 ExtTextOut 375

15.6 GetCharABCWidths 377

15.5 GetAspectRatioFilterEx 377

15.7 GetCharABCWidthsFloat 378

15.8 GetCharWidth32 378

15.9 GetCharWidthFloat 379

15.10 GetFontLanguageInfo 379

15.11 GetGlyphOutline 380

15.12 GetKerningPairs 380

15.13 GetRasterizerCaps 381

15.14 GetTabbedTextExtent 381

15.15 GetTextAlign 382

15.16 GetTextCharacterExtra 383

15.17 GetTextCharset 383

15.18 GetTextCharsetInfo 383

15.19 GetTextColor 384

15.20 GetTextExtentExPoint 384

15.21 GetTextExtentPoint 385

15.22 GetTextExtentPoint32 385

15.25 GrayString 386

15.24 GetTextMetrics 386

15.23 GetTextFace 386

15.26 GrayStringByString 387

15.27 Lstrlen 388

15.28 PolyTextOut 388

15.29 RemoveFontResource 389

15.30 SetMapperFlags 389

15.31 SetTextAlign 390

15.32 SetTextCharacterExtra 390

15.33 SetTextColor 390

15.34 SetTextJustification 391

15.35 TabbedTextOut 392

15.36 TextOut 393

第16章 Windows XP新增加的API 394

16.1 SetFileShortName 394

16.2 ConvertFiberToThread 394

16.3 CreateFiberEx 395

16.4 DuplicateEncryptionInfoFile 395

16.5 EnumGeoInfoProc 396

16.7 GetConsoleDisplayMode 397

16.6 EnumSystemGeoID 397

16.8 GetConsoleFontSize 398

16.9 GetConsoleProcessList 398

16.10 GetConsoleSelectionInfo 399

16.11 GetCurrentConsoleFont 399

16.12 GetGeoInfo 400

16.13 GetLayeredWindowAttributes 401

16.14 GetModuleHandleEx 402

16.16 GetNumaAvailableMemoryNode 403

16.15 GetNativeSystemInfo 403

16.17 GetNumaHighestNodeNumber 404

16.18 GetNumaNodeProcessorMask 404

16.19 GetNumaProcessorNode 405

16.20 GetNumaProcessorNode 405

16.21 GetRawInputBuffer 406

16.22 GetRawInputData 406

16.23 GetRawInputDeviceInfo 407

16.24 GetRawInputDeviceList 408

16.26 GetSystemWow64Directory 409

16.25 GetRegisteredRawInputDevices 409

16.27 GetUserGeoID 410

16.28 GetVolumePathNamesForVolumeName 410

16.29 GetWindowRgnBox 411

16.30 HeapQueryInformation 411

16.31 HeapSetInformation 412

16.32 IsGUIThread 413

16.33 IsProcessInJob 413

16.34 IsWow64Process 414

16.35 NumaVirtualQueryNode 414

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