CrystalSpace

Public API Reference

csutil/win32/psdk-compat.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2005 by Frank Richter
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License as published by the Free Software Foundation; either
00007     version 2 of the License, or (at your option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public
00015     License along with this library; if not, write to the Free
00016     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00017 */
00018 
00019 #ifndef __CS_CSUTIL_WIN32_PSDK_COMPAT_H__
00020 #define __CS_CSUTIL_WIN32_PSDK_COMPAT_H__
00021 
00029 #ifndef CDS_UPDATEREGISTRY
00030 #define CDS_UPDATEREGISTRY  0x00000001
00031 #endif
00032 #ifndef CDS_TEST
00033 #define CDS_TEST            0x00000002
00034 #endif
00035 #ifndef CDS_FULLSCREEN
00036 #define CDS_FULLSCREEN      0x00000004
00037 #endif
00038 #ifndef CDS_GLOBAL
00039 #define CDS_GLOBAL          0x00000008
00040 #endif
00041 #ifndef CDS_SET_PRIMARY
00042 #define CDS_SET_PRIMARY     0x00000010
00043 #endif
00044 #ifndef CDS_RESET
00045 #define CDS_RESET           0x40000000
00046 #endif
00047 #ifndef CDS_SETRECT
00048 #define CDS_SETRECT         0x20000000
00049 #endif
00050 #ifndef CDS_NORESET
00051 #define CDS_NORESET         0x10000000
00052 #endif
00053 
00054 /* Return values for ChangeDisplaySettings */
00055 #ifndef DISP_CHANGE_SUCCESSFUL
00056 #define DISP_CHANGE_SUCCESSFUL       0
00057 #endif
00058 #ifndef DISP_CHANGE_RESTART
00059 #define DISP_CHANGE_RESTART          1
00060 #endif
00061 #ifndef DISP_CHANGE_FAILED
00062 #define DISP_CHANGE_FAILED          -1
00063 #endif
00064 #ifndef DISP_CHANGE_BADMODE
00065 #define DISP_CHANGE_BADMODE         -2
00066 #endif
00067 #ifndef DISP_CHANGE_NOTUPDATED
00068 #define DISP_CHANGE_NOTUPDATED      -3
00069 #endif
00070 #ifndef DISP_CHANGE_BADFLAGS
00071 #define DISP_CHANGE_BADFLAGS        -4
00072 #endif
00073 #ifndef DISP_CHANGE_BADPARAM
00074 #define DISP_CHANGE_BADPARAM        -5
00075 #endif
00076 
00077 #ifndef ENUM_CURRENT_SETTINGS
00078 #define ENUM_CURRENT_SETTINGS       ((DWORD)-1)
00079 #endif
00080 
00081 // These don't exist on some older PSDKs
00082 #ifndef _WIN64
00083   #ifndef SetWindowLongPtrA
00084     #define SetWindowLongPtrA SetWindowLongA
00085   #endif
00086   #ifndef SetWindowLongPtrW
00087     #define SetWindowLongPtrW SetWindowLongW
00088   #endif
00089   
00090   #ifndef GetWindowLongPtrA
00091     #define GetWindowLongPtrA GetWindowLongA
00092   #endif
00093   #ifndef GetWindowLongPtrW
00094     #define GetWindowLongPtrW GetWindowLongW
00095   #endif
00096   
00097   #ifndef GWLP_WNDPROC
00098     #define GWLP_WNDPROC GWL_WNDPROC
00099   #endif
00100   
00101   #ifndef GWLP_USERDATA
00102     #define GWLP_USERDATA GWL_USERDATA
00103   #endif
00104 #endif
00105 
00106 #endif // __CS_CSUTIL_WIN32_PSDK_COMPAT_H__

Generated for Crystal Space by doxygen 1.4.7