I would like to get some information about the device, os etc. from the device running my app.
I need to log this data so i can run some diagnostics later.
Now i think that this data is located in Microsoft.Win32.Registry but that means i need to know all the keys to access values.
Any idea?
It depends on exactly what information you want, but you probably want to P/Invoke SystemParametersInfo with parameters like SPI_GETOEMINFO, SPI_GETPLATFORMMANUFACTURER, SPI_GETPLATFORMNAME, SPI_GETPLATFORMTYPE and SPI_GETPLATFORMVERSION.
MSDN has an example here.
EDIT
Here are some values for you:
For the version I’d just pull Environment.OSVersion.Version and compare to this version list.