Cs-Web

View on GitHub

2. FIle management

windows Linux
CreateFile() open()
ReadFile() read()
WriteFile() write()
CloseHandle() close()

Device management

windows Linux
SetConsoleMode() ioctl()
ReadConsole() read()
WriteConsole() write()

ioctl InputOutputControl - sets the mode of the console

read read input

write write output to output devices

4. Information maintenance

-set process, file or device attributes

windows Linux
GetCurrentProcessID() getpid()
SetTimer() alarm()
Sleep() sleep()

getpid - get process id

alarm - signal the process continuously after a particular time interval

sleep - suspend the process after a particular time interval