Operating system sort of thing in C#