API for Windows 2000/XP详解

API for Windows 2000/XP详解
作 者: 张桂勇 陈芳琼
出版社: 清华大学出版社
丛编项:
版权说明: 本书为公共版权或经版权方授权,请支持正版图书
标 签: Windows
ISBN 出版时间 包装 开本 页数 字数
未知 暂无 暂无 未知 0 暂无

作者简介

暂缺《API for Windows 2000/XP详解》作者简介

内容简介

本书详尽讲解Windows2000/XP的应用程序的接口及其功能强大的API函数,主要内容包括:Windows消息函数,硬件与系统函灵敏,控件与消息函数,设备场景函数,菜单函数,进程与线程函数,绘图函数,位图、图标和光栅运算函数,打印函数,网络函数,文件处理函数,文本和字体函数,WindowsXP新增加的API等13大类。本书通过大量丰富、翔实的例程,介绍了这些函数的使用方法。本书着重讲解常用、典型的函数,配有经典的实例及详细的代码注释说明,必要的地方配以图片说明。增加了大量的例程,基本做到了每一个函灵敏都有其相应的例程。在大部分章节的最后都给出了一个大型的综合例子,通过对实例的学习,读者可以加深对该章函数的认识,同时还能从中学习到很多宝贵的应用技巧,此外,增加了APIforDelphi、APIforVC++的基本调用方法。为方便读者引用,配书光盘中附有书中每章所有例程代码。本书内容翔实、实例丰富,既适合作为各类高等院校计算机专业本科生和研究生的教材用书,也可作为已经掌握一种或多种可视化编程语言的中级、高级用户自学用书。

图书目录

第1章 概述

1.1 什么是API

1.2 为什么要用API函数

1.3 Windows 32 API简介

1.4 关于本书的几点说明

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

2.1 基本知识

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

2.3 参数的传递

2.4 访问Windows API函数

2.5 调用Windows API的注意事项

第3章 在Delphi中使用API函数

3.1 在Delphi中使用API函数

3.2 在VC++中使用API函数

第4章 Windows消息函数

4.1 roadcastSystemMessage

4.2 DispstchMessage

4.3 GetlnputState

4.4 Get Message

4.5 GetMessageExrtaInfo

4.6 GetMessagePos

4.7 GetMessageTime

4.8 GetQueueStatus

4.9 InSendMessage

4.10 PeekMessage

4.11 PostThreadMessage

4.12 RegisterHotKey

4.13 RegisterWindowsMessage

4.14 RegisterWindowsMessage

4.15 ReplyMessage

4.16 SendAsyncProc

4.17 SendMessage

4.18 SendMessageCallback

4.19 SendMessageTimeout

4.20 SendNotifyMessage

4.21 TranslateMessage

4.22 UnregsterHotKey

4.23 WaitMessage

4.24 综合示例:SendMessage的应用

第5章 硬件与系统函数

5.1 ActivateKeyboardLayout

5.2 ChangeDisplaySettings

5.3 ChangeDisplaySettingsEx

5.4 ClipCursor

5.5 ConvertDefaultLocale

5.6 EnumDisplaySettings

5.7 EnumCalendarInfo

5.8 EnumSystemCodePages

5.9 ExipWindowsEx

5.10 GetAsyncKeyState

5.11 GetClipCursor

5.12 GetCommandLine

5.13 GetMomputerName

5.14 GetCursor

5.15 GetCursorPos

5.16 GetDeviceCaps

5.17 GetEnvironmentVariable

5.18 GetInputState

5.19 GetKeyboardState

5.20 GetKeyNameText

5.21 GetKeyState

5.22 GetLasError

5.23 GetLocaleInfo

5.24 GetLocalTime

5.25 GetSysColor

5.26 GetSystemInfo

5.27 GetSystemMetrics

5.28 GetSystemPowerStatus

5.29 GetSystemTime

5.30 GetUserName

5.31 GetVersion

5.32 GetVersionEx

5.33 keybd_event

5.34 MciSendString

5.35 MessageBeep

5.36 mouse_event

5.37 SetCaretPos

5.38 SetComputerNAME

5.39 SetCursor

5.40 SetCursorPos

5.41 SetKeyboarkState

5.42 SetLastError

5.43 SetSysColors

5.44 SetSystemCursor

5.45 SetSystemTime

5.46 SetTimer

5.47 SetWindowsHookEx

5.48 ShowCursor

5.49 SystemParametaersInfo

5.50 ToAscii

5.51 ToUnicode

5.52 VkKeyScan

第6章 控件与消息函数

6.1 AnyPopup

6.2 AttachThreadInput

6.3 BeginDeferWindowsPos

6.4 CascadeWindowsBynum

6.5 ChildWindowFromPoint

6.6 ChildWindowFromPointEX

6.7 CloseWindow

6.8 ClientToScreen

6.9 DeferWindowPos

6.10 DeferWindow

6.11 EnableWindow

6.12 EndDeferWindowPos

6.13 EnumChildWindows

6.14 EnumThreadWindows

6.15 EnumWindows

6.16 FindWindowsEX

6.17 GetActiveWindow

6.18 GetCapture

6.19 GetClassInfo

6.20 GetClassLong

6.21 GetClassName

6.22 GetClassWord

6.23 GetClientRect

6.24 GetDesktopWindow

6.25 GetFocus

6.26 GetForegroundWindow

6.27 GetTopWindow

6.28 GetParent

6.29 GetWindow

6.30 GetWindowWord

6.31 GetWindowLong

6.32 GetWindowPlacement

6.33 GetWindowRect

6.34 GetWindowText

6.35 GetWindowTextLength

6.36 IsChild

6.37 IsIconic

6.38 IsWindowEnabled

6.39 IsWindowVisisble

6.40 MessageBoxIndirect

6.41 IsZoomed

6.42 MoveWindow

6.43 LockWindowUpdate

6.44 OffsetRect

6.45 OpenIcon

6.46 RedrawWindow

6.47 ReleaseCapture

6.48 SetActiveWindow

6.49 SetCapture

6.50 SetClassLong

6.51 SetClassWord

6.52 SetFocus

6.53 SetForegroundWindow

6.54 SetParent

6.55 SetWindowPos

6.56 SetWindowText

6.57 SetWindowWord

6.58 SetWindowLong

6.59 ShowWindow

6.60 TileWindows

6.61 WindowFromPoint

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

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

第7章 设备场景函数

7.1 AddFontResource

7.2 CombineRgn

7.3 CreateEllipticRgn

7.4 CreateEllipticRgnIndirect

7.5 CreateFont

7.6 CreateFontIndirect

7.7 CreateCompeatibleDC

7.8 CreateDC

7.9 CreateIC

7.10 CreateScalableFontResource

7.11 DeleteDC

7.12 DrawText

7.13 DrawTextEx

7.14 ExcludeClipRect

7.15 ExcludeUpateRgn

7.16 FrameRgn

7.17 FillRgn

7.18 GetBoundsRect

7.19 GetClipBox

7.20 GetClipRgn

7.21 GetDC

7.22 GetDeviceCaps

7.23 GetDCOrgEx

7.24 GetRgnBox

7.25 GetUpdateRgn

7.26 GetWindowDC

7.27 GetWindowRgn

7.28 IntersectClipRect

7.29 InvalidateRgn

7.30 InverClipRgn

7.31 OffsetClipRgn

7.32 OffsetRgn

7.33 PtInRegion

7.34 PtVisible

7.35 RectVisible

7.36 ReleaseDC

7.37 RestoreDC

7.38 SaveDC

7.39 SetMapMode

7.40 SetWindowExtEx

7.41 SetWindowOrgEx

7.42 SetWindowRgn

7.43 WindowFromDC

第8章 菜单函数

8.1 AppendMenu

8.2 CheckMenuItem

8.3 CheckMenuRadioItem

8.4 CreateMenu

8.5 CreatePopupMenu

8.6 DeleteMenu

8.7 DestroyMenu

8.8 DrawMenuBar

8.9 EnableMenuItem

8.10 GetMenu

8.11 GetMenuCheckMarkDimensions

8.12 GetMenuContextHelpId

8.13 GetMenuDefaultItem

8.14 GetMenuItemCount

8.15 GetMenuItemID

8.16 GetMenuItemInfo

8.17 GetMenuItemRect

8.18 GetMenuState

8.19 GetMenuString

8.20 GetSubMenu

8.21 GetSysetmMenu

8.22 HiliteMenuItem

8.23 InsertMenu

8.24 InsertMenuItem

8.25 IsMenu

8.26 LoadMenu

8.27 LoadMenuIndirect

8.28 MenuItemFromPoint

8.29 ModifyMenu

8.30 RemoveMenu

8.31 SetMenu

8.32 SetMennuItemBitmaps

8.33 SetMenuItemInfo

8.34 TrackPopupMenu

8.35 TrackPopupMenuEx

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

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

第9章 进程与线程函数

9.1 CallNamedPipe

9.2 CancelWaitableTimer

9.3 CreateEvent

9.4 CreateMutex

9.5 CreateProcess

9.6 CreateSemaphore

9.7 ExitProcess

9.8 FindClodseChange

9.9 FindCloseChangeNotification

9.10 FindExecutable

9.11 FindFirstChangeNotification

9.12 FindNextChangeNotification

9.13 GetCurrentProcess

9.14 GetCurrentProcessId

9.15 GetCurrentThread

9.16 GetExitCodeProcess

9.17 GetExitCodeTread

9.18 GetModuleFileName

9.19 GetPriorityClass

9.20 GetModuleHandle

9.21 GetProcessShutdownParameters

9.22 GetProcessTimes

9.23 GetProcessWorkingSetSize

9.24 GetStarrupInfo

9.25 GetThreadPriority

9.26 GetThreadTimes

9.27 LoadLibraryEx

9.28 GetWindowThreadProessId

9.29 LoadModule

9.30 SetProcessShudownParameters

9.31 SetProcessWorkingSetSize

9.32 SetPriorityClass

9.33 SetThreadPriority

9.34 ShellExecute

9.35 TerminateProcess

9.36 WinExec

第10章 绘图函数

10.1 AbortPath

10.2 AngleArc

10.3 Arc

10.4 BeginPath

10.5 CancelDC

10.6 Chord

10.7 CreateBushIndirect

10.8 CreateDIBPatternBush

10.9 CreateDIBPatternBrushPt

10.10 CreateEnhMetaFile

10.11 CreateHachBrush

10.12 CreateMetaFile

10.13 CreatePatternBrush

10.14 CreatePen

10.15 CreatePenIndirect

10.16 CreateSolidBrush

10.17 DeletEnhMetasFile

10.18 DeleteMetaFile

10.19 DeleteObject

10.20 Ellipse

10.21 Endpath

10.22 EnumEnhMetaFile

10.23 EnumMetaFile

10.24 EnumObjects

10.25 ExtCreatePen

10.26 ExtFloodFill

10.27 FillPath

10.28 FillRech

10.29 FlattenPath

10.30 GdiFlush

10.31 GetBkColor

10.32 GetBkMode

10.33 GetBrUshOrgEx

10.34 GetCurrentObject

10.35 GetCurrentPositionEx

10.36 GetEnhMetaFile

10.37 GetNearestColor

10.38 GetObject

10.39 GetObjectType

10.40 GetPixel

10.41 GetROP2

10.42 GetStockObject

10.43 InvertRect

10.44 LineTo

10.45 MoveToEx

10.46 PaintDesktop

10.47 Pie

10.48 PathToRegion

10.49 PlayEnhMetaFile

10.50 PlayEnhMetaFileRecord

10.51 PolyBezier

10.52 PolyDraw

10.53 Polyline

10.54 PolylineTo

10.55 PolyPolyline

10.56 LineTO

10.57 MoveToEx

10.58 Rectangle

10.59 SelectClipPath

10.60 SelectObject

10.61 SetArcDirection

10.62 SetBkColor

10.63 SetBkMode

10.64 SetBrushOrgEx

10.65 SetPixel

10.66 SetPixelV

10.67 SetROP2

10.68 ScreenToClient

10.69 StrokeAndFillPath

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

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

11.1 BitBlt

11.2 CopyIcon

11.3 CreateBitmap

11.4 CreaetCompatibleBitmap

11.5 CreateCursor

11.6 CreateDIBitmap

11.7 CreateDIBSection

11.8 CreateIcon

11.9 CreateIconIndirect

11.10 DestroyCursor

11.11 DestroyICON

11.12 DrawIcon

11.13 DrawIconEx

11.14 ExtractAssociatedIcon

11.15 ExtractIcon

11.16 ExtractIconEX

11.17 GetBitmapBits

11.18 GetBitmapDimensionEx

11.19 GetDIBColorTable

11.20 GetDIBits

11.21 GetIconInfo

11.22 GetStretchBltMode

11.23 LoadBitmap

11.24 LoadCursor

11.25 LoadCursorFromFile

11.26 loadIcon

11.27 Loadimage

11.28 PatBlt

11.29 PlgBlt

11.30 SetBitmapBits

11.31 SetBitmapDimensionEx

11.32 SetDIBits

11.33 SetDIBitsToDevice

11.34 SetStretchBltMode

11.35 StretchBlt

11.36 StretchDIBits

11.37 综合示例:屏幕放大镜

第12章 打印函数

12.1 Abortdoc

12.2 ABORTprinter

12.3 AddForm

12.4 AddJob

12.5 AddProt

12.6 AddPrinter

12.7 AddPrinterConnection

12.8 AdvancedDocumentProperties

12.9 ClosePrinter

12.10 ConfigurePort

12.11 ConnectToPrinterDlg

12.12 DeleteForm

12.13 DeletePort

12.14 DeletePrinter

12.15 DeletePrinterConnection

12.16 DeletePrinterDriver

12.17 DeviceXapabilities

12.18 DocumentProperties

12.19 EndDoc

12.20 EndPage

12.21 EndPagePirnter

12.22 EnumJobs

12.23 EnumPorts

12.24 EnumPrinterDrivers

12.25 EnumPrinters

12.26 Escape

12.27 GetJob

12.28 GetPrinter

12.29 GetPrinterDriver

12.30 GetPrinterDriverDirectory

12.31 GetPr

12.32 OpenPrinter

12.33 PrinterMessageBox

12.34 PrinterProperties

12.35 ResetPrinter

12.36 ResdPrinter

12.37 ReadPrinter

12.38 SetJob

12.39 SetPrinter

12.40 SetPrinterData

12.41 StartDoc

12.42 StartDocPrinter

12.43 StartPage

12.44 StartPagePrinter

12.45 WritePrinter

第13章 网络函数

13.1 WNetAddConnection

13.2 WNetAddConnection2

13.3 WNetCancelConnection

13.4 WNetCancelConnection2

13.5 WNetCloseEnum

13.6 WNetConnectionDialog

13.7 WNetDiscionnentDialog

13.8 WNetEnumResource

13.9 WNetGetConnection

13.10 WNetGetLastError

13.11 WNetGetUniversalName

13.12 WnetGetUser

13.13 WNetOpetEnu

第14章 文件处理函数

14.1 CloseHandle

14.2 CopyMemory

14.3 CopyFile

14.4 CopyFileEx

14.5 CopyProgressRoutine

14.6 CreateDirectory

14.7 CreateFile

14.8 DeleteFile

14.9 FileTimeToLocalFileTime

14.10 FindClose

14.11 FindFirstFile

14.12 FindFirstFile

14.13 FlushFileBuffers

14.14 FlushViewOfFile

14.15 GetBinaryType

14.16 GetDiskFreeSpace

14.17 GetCurrentDirectory

14.18 GetDiskFieSpace

14.19 GetDiskFreeSpaceEX

14.20 GetDriveType

14.21 GetFileAttributes

14.22 GetFileSize

14.23 GetFileTime

14.24 GetFileVersionInfo

14.25 GetFullPathName

14.26 GetLogicalDrives

14.27 GetLogicalDriveStrings

14.28 GetPrivateProfileInt

14.29 GetPrivateProFileSection

14.30 GetPrivateProFileString

14.31 GetProfileInt

14.32 GetProfileSection

14.33 GetProfileString

14.34 GetShortPathName

14.35 GetSystemDirectory

14.36 GetTempFileName

14.37 GetTempPath

14.38 GetVolumeInformation

14.39 GetWindowsDirectory

14.40 LocalFileTimeToFileTime

14.41 LockFileEx

14.42 MoveFile

14.43 MoveFile1Ex

14.44 OpenFile

14.45 OPenFileMapping

14.46 QupryDosDevice

14.47 ReadFile

14.48 ReadFileEx

14.49 RdgClodeDey

14.50 RegCnnectRegisdtry

14.51 RegCreateKey

14.52 RegCreateKeyEx

14.53 RegDeleteKey

14.54 RegDeleteValue

14.55 RegEnumKeyEx

14.56 RgeEnumValue

14.57 RegGetKeySecurity

14.58 RegLoadkey

14.59 RegNotifyChangeKeyValue

14.60 RegOpenKey

14.61 RegOpenKeyEx

14.62 RegOpenValueEx

14.63 RegrepLaceKey

14.64 RegRestoreKey

14.65 RegSaveKey

14.66 RegSetKeySecurity

14.67 RegSetValue

14.68 RemoveDirectory

14.69 SeauchPahth

14.70 SetCurrentDirectory

14.71 SetEndOfFile

14.72 SetFileAttributes

14.73 SetFileSecurity

14.74 SetFilePointer

14.75 SetFileTime

14.76 SetVolumeLabel

14.77 SystemTimeToFileTime

14.78 UnlockFile

14.79 VerLanguageName

14.80 WritePrivateProfileSection

14.81 WritePrivateProfileString

14.82 WriteProfileScetion

14.83 WritePrivateProfileString

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

14.85 常用文件处理模块

第15章 文本和字体函数

15.1 EnrmFontFamilies

15.2 EnumFontFammilixeEX

15.3 EnumFonts

15.4 ExtTextOut

15.5 GetAspectRatioFilterEx

15.6 GetCharABCWidths

15.7 GetChqrABCWidthsFloat

15.8 GetCharWidth32

15.9 GetCharWidthFloat

15.10 GetFontLanguageInfo

15.11 GetGlyqpOutline

15.12 GetKerinigPairs

15.13 GetRasterizerCaps

15.14 GetTabbedTextExten

15.15 GetTextAlign

15.16 GetTextCharacterExtra

15.17 GetTextCharset

15.8 GetTextCharsetInfo

15.19 GetTextChrstInfo

15.20 GetTextExtentExPoint

15.21 GetTextExtentPoint

15.22 GetTextExtentPoint32

15.23 GetTextFace

15.24 GetTextMetrics

15.25 GrayString

15.26 GrayStringByString

15.27 Lstrlen

15.28 PolyTextOut

15.29 RemoveFontResource

15.30 SetMapperFlags

15.31 SetTextColor

15.32 SetTextJustification

15.33 SetTextColor

15.34 SetTextJustification

15.35 TabbedTextOut

15.36 TextOut

第16章 Windows XP新增加的API

16.1 SetFileShortName

16.2 ConvertFiberTothread

16.3 CreateFiberEx

16.4 DuplicateEncryptionInfoFile

16.5 EnumGeoInfoProc

16.6 EnumSystemGeoID

16.7 GetConsoleDisplayMode

16.8 GetConoleFontSize

16.9 GetConsoleProcessList

16.10 GetConsoeSelectionInfo

16.11 GetCurrentConsoleFont

16.12 GetGeoInfo

16.13 GetLayeredWindowAttributes

16.14 GetModuleHandHandleEX

16.15 GetNaitiveSystemInfo

16.16 GetNumaAvailableMemoryNode

16.17 GetNumaHighestNodeNumber

16.18 GetNumaNodeProcessorMask

16.19 GetNumaProcessorNode

16.20 GetNumaProcessorNode

16.21 GetRawInputBuffer

16.22 GetRawInputData

16.23 GetRawInputDeviceInfo

16.24 GetRawInputDeviceList

16.25 GetRegisteredRawInputDevices

16.26 GetSystemWow64Dirctory

16.27 GetUserGeoID

16.28 GetVolumePathNamesForVolumeName

16.29 GetWindowRgnBox

16.30 HeapQueryInformation

16.31 HeapSetInformation

16.32 IsGUIThread

16.33 IsProcessInJob

16.34 IsWow64Process

16.35 NumaVirualQueryNode