CR的代码文本

all for learning about the world
  订阅 订阅  :: 管理

人肉缩进过的windows.h

Posted on 2011-07-13 12:11  mumuliang  阅读(1038)  评论(2编辑  收藏  举报
#ifndef _WINDOWS_
#define _WINDOWS_


    #ifndef WINVER
        #define WINVER 0x0501
    
#else
        
#if defined(_WIN32_WINNT) && (WINVER < 0x0400) && (_WIN32_WINNT > 0x0400)
            
#error WINVER setting conflicts with _WIN32_WINNT setting
        
#endif
    
#endif

    
#ifndef _INC_WINDOWS
        #define _INC_WINDOWS

        
#if defined (_MSC_VER) && (_MSC_VER >= 1020)
            
#pragma once
        
#endif /* _MSC_VER&&_MSC_VER>=1020 */


        
#if defined(RC_INVOKED) && !defined(NOWINRES)

            #include 
<winresrc.h>

        
#else

            
#if defined(RC_INVOKED)
                
/* Turn off a bunch of stuff to ensure that RC files compile OK. */
                
#define NOATOM
                
#define NOGDI
                
#define NOGDICAPMASKS
                
#define NOMETAFILE
                
#define NOMINMAX
                
#define NOMSG
                
#define NOOPENFILE
                
#define NORASTEROPS
                
#define NOSCROLL
                
#define NOSOUND
                
#define NOSYSMETRICS
                
#define NOTEXTMETRIC
                
#define NOWH
                
#define NOCOMM
                
#define NOKANJI
                
#define NOCRYPT
                
#define NOMCX
            
#endif /* RC_INVOKED */

            
#if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_IA64_) && !defined(_AMD64_) && defined(_M_IX86)
                
#define _X86_
            
#endif

            
#if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_IA64_) && !defined(_AMD64_) && defined(_M_AMD64)
                
#define _AMD64_
            
#endif

            
#if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_IA64_) && !defined(_AMD64_) && defined(_M_M68K)
                
#define _68K_
            
#endif

            
#if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_IA64_) && !defined(_AMD64_) && defined(_M_MPPC)
                
#define _MPPC_
            
#endif

            
#if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_M_IX86) && !defined(_AMD64_) && defined(_M_IA64)
                
#if !defined(_IA64_)
                    
#define _IA64_
                
#endif // !_IA64_
            
#endif

            #ifndef _MAC
                
#if defined(_68K_) || defined(_MPPC_)
                    
#define _MAC
                
#endif
            
#endif

            
#if defined (_MSC_VER)
                
#if ( _MSC_VER >= 800 )
                    #ifndef __cplusplus
                        
#pragma warning(disable:4116)       // TYPE_ALIGNMENT generates this - move it
                                            
// outside the warning push/pop scope.
                    #endif /* __cplusplus */
                
#endif /* _MS_VER >= 800 */
            
#endif /* _MS_VER */

            #ifndef RC_INVOKED
                
#if     ( _MSC_VER >= 800 )
                    
#pragma warning(disable:4514)
                    #ifndef __WINDOWS_DONT_DISABLE_PRAGMA_PACK_WARNING__
                        
#pragma warning(disable:4103)
                    
#endif
                    
#if _MSC_VER >= 1200
                        
#pragma warning(push)
                    
#endif
                    
#pragma warning(disable:4001)
                    
#pragma warning(disable:4201)
                    
#pragma warning(disable:4214)
                
#endif
                #include 
<excpt.h>
                #include 
<stdarg.h>
            
#endif /* RC_INVOKED */

            #include 
<windef.h>
            #include 
<winbase.h>
            #include 
<wingdi.h>
            #include 
<winuser.h>
            
#if !defined(_MAC) || defined(_WIN32NLS)
                #include 
<winnls.h>
            
#endif
            #ifndef _MAC
                #include 
<wincon.h>
                #include 
<winver.h>
            
#endif
            
#if !defined(_MAC) || defined(_WIN32REG)
                #include 
<winreg.h>
            
#endif
            #ifndef _MAC
                #include 
<winnetwk.h>
            
#endif /* _MAC */

            #ifndef WIN32_LEAN_AND_MEAN
                #include 
<cderr.h>
                #include 
<dde.h>
                #include 
<ddeml.h>
                #include 
<dlgs.h>
                #ifndef _MAC
                    #include 
<lzexpand.h>
                    #include 
<mmsystem.h>
                    #include 
<nb30.h>
                    #include 
<rpc.h>
                
#endif /* _MAC */
                #include 
<shellapi.h>
                #ifndef _MAC
                    #include 
<winperf.h>
                    #include 
<winsock.h>
                
#endif /* _MAC */
                #ifndef NOCRYPT
                    #include 
<wincrypt.h>
                    #include 
<winefs.h>
                    #include 
<winscard.h>
                
#endif /*NOCRYPT*/
                #ifndef NOGDI
                    #ifndef _MAC
                        #include 
<winspool.h>
                        #ifdef INC_OLE1
                            #include 
<ole.h>
                        
#else
                            #include 
<ole2.h>
                        
#endif /* !INC_OLE1 */
                    
#endif /* !MAC */
                    #include 
<commdlg.h>
                
#endif /* !NOGDI */
            
#endif /* WIN32_LEAN_AND_MEAN */

            #include 
<stralign.h>

            #ifdef _MAC
                #include 
<winwlm.h>
            
#endif /* _MAC */

            #ifdef INC_OLE2
                
#include <ole2.h>
            
#endif /* INC_OLE2 */

            #ifndef _MAC
                #ifndef NOSERVICE
                    #include 
<winsvc.h>
                
#endif
                
#if(WINVER >= 0x0400)
                    #ifndef NOMCX
                        
#include <mcx.h>
                    
#endif /* NOMCX */
                    #ifndef NOIME
                        
#include <imm.h>
                    
#endif /* NOIME */
                
#endif /* WINVER >= 0x0400 */
            
#endif  /* _MAC */

        
#ifndef RC_INVOKED
            #if ( _MSC_VER >= 800 )
                
#if _MSC_VER >= 1200
                    
#pragma warning(pop)
                
#else
                    
#pragma warning(default:4001)
                    
#pragma warning(default:4201)
                    
#pragma warning(default:4214)
                    
/* Leave 4514 disabled.  It's an unneeded warning anyway. */
                
#endif
            
#endif
        
#endif /* RC_INVOKED */

        
#endif /* RC_INVOKED  && NOWINRES */

    
#endif /* _INC_WINDOWS */

#endif /* _WINDOWS_ */