Hey, does anyone know a way to detect weather you are in a windows or linux environment? Assuming the program magically works in both linux and windows. My guess would be to read from the PEB, but that would probably cause an exception, and I don't know how to start an exception handler on linux. I'm also assuming if you try to create an SEH, it would be different for both Windows and Linux as well.





