1290001Sglebius/*
2290001Sglebius * Copyright (C) 2004, 2007, 2009  Internet Systems Consortium, Inc. ("ISC")
3290001Sglebius * Copyright (C) 2002  Internet Software Consortium.
4290001Sglebius *
5290001Sglebius * Permission to use, copy, modify, and/or distribute this software for any
6290001Sglebius * purpose with or without fee is hereby granted, provided that the above
7290001Sglebius * copyright notice and this permission notice appear in all copies.
8290001Sglebius *
9290001Sglebius * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10290001Sglebius * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11290001Sglebius * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12290001Sglebius * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13290001Sglebius * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14290001Sglebius * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15290001Sglebius * PERFORMANCE OF THIS SOFTWARE.
16290001Sglebius */
17290001Sglebius
18290001Sglebius/* $Id: win32os.h,v 1.7 2009/06/25 23:48:02 tbox Exp $ */
19290001Sglebius
20290001Sglebius#ifndef ISC_WIN32OS_H
21290001Sglebius#define ISC_WIN32OS_H 1
22290001Sglebius
23290001Sglebius#include <isc/lang.h>
24290001Sglebius
25290001SglebiusISC_LANG_BEGINDECLS
26290001Sglebius
27290001Sglebius/*
28290001Sglebius * Return the number of CPUs available on the system, or 1 if this cannot
29290001Sglebius * be determined.
30290001Sglebius */
31290001Sglebius
32290001Sglebiusunsigned int
33290001Sglebiusisc_win32os_majorversion(void);
34290001Sglebius/*
35290001Sglebius * Major Version of the O/S.
36290001Sglebius */
37290001Sglebius
38290001Sglebiusunsigned int
39290001Sglebiusisc_win32os_minorversion(void);
40290001Sglebius/*
41290001Sglebius * Minor Version of the O/S.
42290001Sglebius */
43290001Sglebius
44290001Sglebiusunsigned int
45290001Sglebiusisc_win32os_servicepackmajor(void);
46290001Sglebius/*
47290001Sglebius * Major Version of the Service Pack for O/S.
48290001Sglebius */
49290001Sglebius
50290001Sglebiusunsigned int
51290001Sglebiusisc_win32os_servicepackminor(void);
52290001Sglebius/*
53290001Sglebius * Minor Version of the Service Pack for O/S.
54290001Sglebius */
55290001Sglebius
56290001Sglebiusint
57290001Sglebiusisc_win32os_versioncheck(unsigned int major, unsigned int minor,
58290001Sglebius		     unsigned int updatemajor, unsigned int updateminor);
59290001Sglebius
60290001Sglebius/*
61290001Sglebius * Checks the current version of the operating system with the
62290001Sglebius * supplied version information.
63290001Sglebius * Returns:
64290001Sglebius * -1	if less than the version information supplied
65290001Sglebius *  0   if equal to all of the version information supplied
66290001Sglebius * +1   if greater than the version information supplied
67290001Sglebius */
68290001Sglebius
69290001SglebiusISC_LANG_ENDDECLS
70290001Sglebius
71290001Sglebius#endif /* ISC_WIN32OS_H */
72