1.  常用API

 

获得自身程序所在路径的API函数:

GetModuleFileName

获得Windows目录的API函数

GetWindowsDirectory

获得系统目录的API函数

GetSystemDirectory

拷贝文件API

CopyFile

获取操作系统版本

GetVersoinEx

获取计算机名称

GetComputerName

获取用户名称

GetUserName

文件API

createFile

CloseHandle

DeleteFile

ReadFile

WriteFile

SetFilePointer

CreateDirectory

RemoveDirectory

注册表API

RegOpenKey

RegCloseKey

RegQueryValueEx

RegSetValueEx

RegEnumValue

RegDeleteValue

服务相关API函数

OpenSCManager

CloseServiceHandle

EnumServicesStatus

OpenService

ContrlService

StartService

进程与线程

WinExec

URLDownloadToFile

CreateProcess

TerminateProcess

FindWindow

GetWindowThreadProcessId

OpenProcess

Process32First

Process32Next

SuspendThread

ResumeThread

CreateThread

ThreadProc

WaitForSingleObject

临界区对象:

InitializeCriticalSection

DeleteCriticalSection

EnterCriticalSection

LeaveCriticalSection