Windows.h

I always see people saying that it isn't safe to use windows.h header file. Why is this? Is it dangerous?
the only thing I can think of as to a reason why is:

1) it destroys portability (windows.h only works on Windows, obviously)

2) it #defines a bunch of stuff like min/max that interferes with the standard library


#1 probably isn't a concern if you're looking to program for Windows.

#2 is easily worked around.
What kind of stuff does it #define? I'm not asking for exact examples, that sounds like it would take forever. Just the big stuff.
Thanks you very much. :)
min and max are the only things I can think of offhand that immediatly conflict with the standard libs.

It defines tons of other stuff that pollutes the namespace, but it's all easily avoided.
Topic archived. No new replies allowed.