Window APIs used in the Source Code

    The following list shows all the API calls used in the various code samples on my web site.

API Name Ansi/Unicode API Name Library Component

AddAccessAllowedAce

AddAccessAllowedAce

advapi32

NT File Security

AddAce

AddAce

advapi32

NT File Security

AdjustTokenPrivileges

AdjustTokenPrivileges

advapi32

Local and Remote Rebooting

Reboot NT

AllocateAndInitializeSid

AllocateAndInitializeSid

advapi32

NT File Security

apiBeep

Beep

kernel32

Build Cycle

ChangeServiceConfig

ChangeServiceConfigA

advapi32

NT Services

CloseEventLog

CloseEventLog

advapi32

Write NT Event Logs (6.0)

Read NT Event Logs (6.0)

CloseHandle

CloseHandle

kernel32

Create Hard Links in W2K

Memory Mapped Files

Register TypeLib

Toolhelp NT

NT File Encryption (W2K)

NT File Compression

Terminate Process

Build Cycle

Write NT Event Logs (6.0)

Using NetUserModalsGet

CloseHandle

Call32

CALL32

Long File Names

CloseServiceHandle

CloseServiceHandle

advapi32

NT Services

ControlService

ControlService

advapi32

NT Services

CopyMem

RtlMoveMemory

kernel32

Read NT Event Logs (6.0)

Log Environment

Read Event Logs

Get Executable Type

NT Services

Server Applet

NT File Security

Get DLLs

Disk Quotas

Console Application

ADSI Administration

Get Server Time

Using NetUserModalsGet

Reboot with WMI

Network Calls NT & Win9x

CreateFile

CreateFileA

kernel32

Create Hard Links in W2K

Memory Mapped Files

Register TypeLib

NT File Encryption (W2K)

NT File Compression

Console Application

CreateFileMapping

CreateFileMappingA

kernel32

Memory Mapped Files

CreateHardLink

CreateHardLinkA

kernel32

Create Hard Links in W2K

CreateService

CreateServiceA

advapi32

NT Services

Declare32

Declare32

CALL32

Long File Names

DecryptFile

DecryptFileA

advapi32

NT File Encryption (W2K)

DeleteFile

DeleteFileA

kernel32

Create Hard Links in W2K

DeleteService

DeleteService

advapi32

NT Services

DeregisterEventSource

DeregisterEventSource

advapi32

Write Event Logs

Write NT Event Logs (6.0)

DestroyWindow

DestroyWindow

user32

Terminate Process

DeviceIoControl

DeviceIoControl

kernel32

NT File Encryption (W2K)

NT File Compression

DsGetDcName

DsGetDcNameW

netapi32

ADSI Administration

EmptyWorkingSet

EmptyWorkingSet

PSAPI

Toolhelp NT

EncryptFile

EncryptFileA

advapi32

NT File Encryption (W2K)

EnumDependentServices

EnumDependentServicesA

advapi32

NT Services

EnumDeviceDrivers

EnumDeviceDrivers

PSAPI

Toolhelp NT

EnumProcesses

EnumProcesses

PSAPI

Toolhelp NT

EnumProcessModules

EnumProcessModules

PSAPI

Toolhelp NT

EnumServicesStatus

EnumServicesStatusA

advapi32

NT Services

EqualSid

EqualSid

advapi32

NT File Security

ExitWindowsEx

ExitWindowsEx

user32

Local and Remote Rebooting

Reboot NT

ExpandEnvironmentStrings

ExpandEnvironmentStringsA

kernel32

Read Event Logs

Read NT Event Logs (6.0)

FileEncryptionStatus

FileEncryptionStatusA

advapi32

NT File Encryption (W2K)

FileTimeToDosDateTime

Call32

CALL32

Long File Names

FileTimeToLocalFileTime

Call32

CALL32

Long File Names

Read NT Event Logs (6.0)

Network Calls NT & Win9x

FileTimeToSystemTime

FileTimeToSystemTime

kernel32

Toolhelp NT

Read NT Event Logs (6.0)

Network Calls NT & Win9x

FileTimeToSystemTime

Call32

CALL32

Long File Names

FindClose

Call32

CALL32

Long File Names

FindFirstFileA

Call32

CALL32

Long File Names

FindNextFileA

Call32

CALL32

Long File Names

FindWindow

FindWindowA

user32

Build Cycle

FlushViewOfFile

FlushViewOfFile

kernel32

Memory Mapped Files

FormatMessage

FormatMessageA

kernel32

Control DFS

Create Hard Links in W2K

Write Event Logs

Memory Mapped Files

Read Event Logs

NT Services

Server Applet

NT File Security

Local and Remote Rebooting

Register TypeLib

Reboot NT

Terminate Process

Disk Quotas

Console Application

ADSI Administration

Write NT Event Logs (6.0)

Read NT Event Logs (6.0)

FreeLibrary

FreeLibrary

kernel32

Control DFS

Create Hard Links in W2K

Read Event Logs

Server Applet

Disk Quotas

ADSI Administration

Write NT Event Logs (6.0)

Read NT Event Logs (6.0)

GetAce

GetAce

advapi32

NT File Security

GetAclInformation

GetAclInformation

advapi32

NT File Security

GetACP

GetACP

kernel32

Log Environment

GetBinaryType

GetBinaryTypeA

kernel32

Get Executable Type

GetComputerName

GetComputerNameA

kernel32

Log Environment

NT Services

Server Applet

NT File Security

ADSI Administration

Get Server Time

Reboot with WMI

GetConsoleCursorInfo

GetConsoleCursorInfo

kernel32

Console Application

GetConsoleMode

GetConsoleMode

kernel32

Console Application

GetConsoleOutputCP

GetConsoleOutputCP

kernel32

Console Application

GetConsoleScreenBufferInfo

GetConsoleScreenBufferInfo

kernel32

Console Application

GetConsoleTitle

GetConsoleTitleA

kernel32

Console Application

GetCPInfo

GetCPInfo

kernel32

Log Environment

GetCurrentProcess

GetCurrentProcess

kernel32

Log Environment

NT File Security

Local and Remote Rebooting

Reboot NT

Write NT Event Logs (6.0)

Using NetUserModalsGet

GetCursorPos

GetCursorPos

user32

NT Services

GetDesktopWindow

GetDesktopWindow

user32

Terminate Process

GetDeviceCaps

GetDeviceCaps

gdi32

Log Environment

GetDeviceDriverBaseName

GetDeviceDriverBaseNameA

PSAPI

Toolhelp NT

GetDeviceDriverFileName

GetDeviceDriverFileNameA

PSAPI

Toolhelp NT

GetDiskFreeSpace

Call32

CALL32

Long File Names

GetDriveType

Call32

CALL32

Long File Names

GetDriveType

GetDriveTypeA

kernel32

Get Drive Type

GetExitCodeProcess

GetExitCodeProcess

kernel32

Build Cycle

GetExplicitEntriesFromAcl

GetExplicitEntriesFromAclA

advapi32

NT File Security

GetFileAttributes

GetFileAttributesA

kernel32

NT File Encryption (W2K)

NT File Compression

GetFileInformationByHandle

GetFileInformationByHandle

kernel32

Create Hard Links in W2K

GetFileSecurity

GetFileSecurityA

advapi32

NT File Security

GetFileSecurityN

GetFileSecurityA

advapi32

NT File Security

GetFileTime

Call32

CALL32

Long File Names

GetFileVersionInfo

GetFileVersionInfoA

version

Get DLLs

GetFileVersionInfoSize

GetFileVersionInfoSizeA

version

Get DLLs

GetKeyboardLayoutName

GetKeyboardLayoutNameA

user32

Log Environment

GetLastError

Call32

CALL32

Long File Names

GetLengthSid

GetLengthSid

advapi32

NT File Security

GetLocaleInfo

GetLocaleInfoA

kernel32

Log Environment

GetMappedFileNameA

GetMappedFileNameA

PSAPI

Toolhelp NT

GetModuleBaseName

GetModuleBaseNameA

PSAPI