logoalt Hacker News

MisterTeatoday at 3:09 PM1 replyview on HN

- the NT kernel is not built around "everything is a file" ... instead the central concept is the handle

File descriptor, handle. Potayto, potahto.


Replies

aleph_minus_onetoday at 3:37 PM

> File descriptor, handle. Potayto, potahto.

Under Windows, a lot more concepts are handles than just files, directories, symbolic links, pipes, mail slots, ..., e.g.

- processes, threads

- synchronization objects (mutex, semaphore)

- events (CreateEventEx)

- I/O Completion Ports

- Sections (ZwCreateSection) and Partitions (https://www.geoffchappell.com/studies/windows/km/ntoskrnl/ap... ) for memory

- waitable timers

- GUI components (HWND)

show 2 replies