OpenIB branding
[mirror/winof/.git] / inc / oib_ver.h
1 /*\r
2  * Copyright (c) 2005 SilverStorm Technologies.  All rights reserved.\r
3  *\r
4  * This software is available to you under the OpenIB.org BSD license\r
5  * below:\r
6  *\r
7  *     Redistribution and use in source and binary forms, with or\r
8  *     without modification, are permitted provided that the following\r
9  *     conditions are met:\r
10  *\r
11  *      - Redistributions of source code must retain the above\r
12  *        copyright notice, this list of conditions and the following\r
13  *        disclaimer.\r
14  *\r
15  *      - Redistributions in binary form must reproduce the above\r
16  *        copyright notice, this list of conditions and the following\r
17  *        disclaimer in the documentation and/or other materials\r
18  *        provided with the distribution.\r
19  *\r
20  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
21  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
22  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
23  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\r
24  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\r
25  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
26  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r
27  * SOFTWARE.\r
28  *\r
29  * $Id$\r
30  */\r
31 \r
32 \r
33 #include <windows.h>\r
34 #include <ntverp.h>\r
35 \r
36 #ifndef VER_FILEMAJORVERSION\r
37 #define VER_FILEMAJORVERSION            1\r
38 #endif\r
39 \r
40 #ifndef VER_FILEMINORVERSION\r
41 #define VER_FILEMINORVERSION            0\r
42 #endif\r
43 \r
44 #ifndef VER_FILEBUILD\r
45 #define VER_FILEBUILD                           VER_OPENIB\r
46 #endif\r
47 \r
48 #ifndef VER_FILEREV\r
49 #define VER_FILEREV                                     0\r
50 #endif\r
51 \r
52 #if             (VER_FILEBUILD < 10)\r
53 #define VER_FILEBPAD "000"\r
54 #elif   (VER_FILEBUILD < 100)\r
55 #define VER_FILEBPAD "00"\r
56 #elif   (VER_FILEBUILD < 1000)\r
57 #define VER_FILEBPAD "0"\r
58 #else\r
59 #define VER_FILEBPAD\r
60 #endif\r
61 \r
62 #define VER_FILEVERSION                 VER_FILEMAJORVERSION,\\r
63                                                                 VER_FILEMINORVERSION,\\r
64                                                                 VER_FILEBUILD,\\r
65                                                                 VER_FILEREV\r
66 \r
67 #define VER_FILEVERSION_STR2(M,m,b,r)   #M "." #m "." VER_FILEBPAD #b "." #r\r
68 #define VER_FILEVERSION_STR1(M,m,b,r)   VER_FILEVERSION_STR2(M,m,b,r)\r
69 #define VER_FILEVERSION_STR             VER_FILEVERSION_STR1( VER_FILEMAJORVERSION, \\r
70                                                                                                         VER_FILEMINORVERSION, \\r
71                                                                                                         VER_FILEBUILD, \\r
72                                                                                                         VER_FILEREV )\r
73 \r
74 #undef __BUILDMACHINE__\r
75 \r
76 #ifdef VER_COMPANYNAME_STR\r
77 #undef VER_COMPANYNAME_STR\r
78 #endif\r
79 #define VER_COMPANYNAME_STR             "OpenIB Alliance"\r
80 \r
81 #ifdef VER_PRODUCTNAME_STR\r
82 #undef VER_PRODUCTNAME_STR\r
83 #endif\r
84 #define VER_PRODUCTNAME_STR             "OpenIB Windows"\r
85 \r
86 #define VER_LEGALCOPYRIGHT_STR  "Copyright\xa9 2005 OpenIB Alliance"\r