【温故Delphi】GAEA用到Win32 API目录

  Delphi是Windows平台下著名的快速应用程序开发工具,它在VCL中封装并使用了大量的Win32 API。

  GAEA基于VCL开发的工具类产品,在程序中使用了大量的Win32 API,将经常用到或涉及到的API罗列并梳理一下。

系统API

  1、事件对像:CreateEvent、setevent、ResetEvent和WaitForSingleObject;

  2、互斥体:CreateMutex,OpenMutex和ReleaseMutex

  3、时间:GetTickCount,Sleep,GetCPUTickCount

  4、QueryPerformanceFrequency,QueryPerformanceCounter,PerformanceCounter,GetProcessorInfo

  5、DLL相关:LoadLibrary,FreeLibrary

  6、GetLastError

进程API

  1、CreateProcess,ShellExecute

  2、ExitProcess,TerminateProcess,GetExitCodeProcess

  3、GetProcessID

  4、其他:CreateToolhelp32Snapshot,Process32First,Process32Next

窗口API

  1、EnableWindow,IsWindowEnabled,EnumThreadWindows

  2、LockWindowUpdate:锁定指定窗口,禁止它更新,同时只能有一个窗口处于锁定状态

  3、FindWindow:查找窗口,GetWindowLong:该函数获得有关指定窗口的信息

文件API

  1、GetTempFileName

  2、CreateFile,CopyFile,DeleteFile,OpenFile

  3、GetFileAttributes:获取文件属性,

  4、FindFirstFile,FindNextFile,遍历文件夹查找文件

原文地址:https://www.cnblogs.com/liustdelphi/p/3855355.html