Windows has a series of different system calls that cover all the kernel operations. Many of these correspond exactly with the Unix equivalent. Here's a list of some of the overlapping system calls:
Windows |
Unix |
|
Process control |
CreateProcess() |
fork() |
File manipulation | CreateFile() ReadFile() WriteFile() CloseHandle() |
open() |
File protection | SetFileSecurity() InitializeSecurityDescriptor() SetSecurityDescriptorGroup() |
chmod() |
Device management | SetConsoleMode() ReadConsole() WriteConsole() |
ioctl() read() write() |
Information maintenance | GetCurrentProcessID() SetTimer() Sleep() |
getpid() alarm() sleep() |
Communication | CreatePipe() CreateFileMapping() MapViewOfFile() |
pipe() shmget() mmap() |