1 /* wincap.h: Header for OS capability class.
3 Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Red Hat, Inc.
5 This file is part of Cygwin.
7 This software is a copyrighted work licensed under the terms of the
8 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
19 unsigned is_server : 1;
20 unsigned has_dacl_protect : 1;
21 unsigned has_ip_helper_lib : 1;
22 unsigned has_broken_if_oper_status : 1;
23 unsigned has_physical_mem_access : 1;
24 unsigned has_process_io_counters : 1;
25 unsigned has_terminal_services : 1;
26 unsigned has_create_global_privilege : 1;
27 unsigned has_ioctl_storage_get_media_types_ex : 1;
28 unsigned has_extended_priority_class : 1;
29 unsigned has_guid_volumes : 1;
30 unsigned has_disk_ex_ioctls : 1;
31 unsigned has_disabled_user_tos_setting : 1;
32 unsigned has_fileid_dirinfo : 1;
33 unsigned has_exclusiveaddruse : 1;
34 unsigned has_enhanced_socket_security : 1;
35 unsigned has_buggy_restart_scan : 1;
36 unsigned has_mandatory_integrity_control : 1;
37 unsigned needs_logon_sid_in_sid_list : 1;
38 unsigned needs_count_in_si_lpres2 : 1;
39 unsigned has_recycle_dot_bin : 1;
40 unsigned has_gaa_prefixes : 1;
41 unsigned has_gaa_on_link_prefix : 1;
42 unsigned supports_all_posix_ai_flags : 1;
43 unsigned has_restricted_stack_args : 1;
44 unsigned has_transactions : 1;
45 unsigned ts_has_dep_problem : 1;
46 unsigned has_recvmsg : 1;
47 unsigned has_sendmsg : 1;
48 unsigned has_broken_udf : 1;
49 unsigned has_console_handle_problem : 1;
50 unsigned has_broken_alloc_console : 1;
51 unsigned has_always_all_codepages : 1;
56 OSVERSIONINFOEX version;
64 void set_chunksize (DWORD nchunksize);
66 const char *osname () const { return osnam; }
67 const bool is_wow64 () const { return wow64; }
69 #define IMPLEMENT(cap) cap() const { return ((wincaps *) this->caps)->cap; }
71 DWORD IMPLEMENT (chunksize)
72 DWORD IMPLEMENT (heapslop)
73 DWORD IMPLEMENT (max_sys_priv)
74 bool IMPLEMENT (is_server)
75 bool IMPLEMENT (has_dacl_protect)
76 bool IMPLEMENT (has_ip_helper_lib)
77 bool IMPLEMENT (has_broken_if_oper_status)
78 bool IMPLEMENT (has_physical_mem_access)
79 bool IMPLEMENT (has_process_io_counters)
80 bool IMPLEMENT (has_terminal_services)
81 bool IMPLEMENT (has_create_global_privilege)
82 bool IMPLEMENT (has_ioctl_storage_get_media_types_ex)
83 bool IMPLEMENT (has_extended_priority_class)
84 bool IMPLEMENT (has_guid_volumes)
85 bool IMPLEMENT (has_disk_ex_ioctls)
86 bool IMPLEMENT (has_disabled_user_tos_setting)
87 bool IMPLEMENT (has_fileid_dirinfo)
88 bool IMPLEMENT (has_exclusiveaddruse)
89 bool IMPLEMENT (has_enhanced_socket_security)
90 bool IMPLEMENT (has_buggy_restart_scan)
91 bool IMPLEMENT (has_mandatory_integrity_control)
92 bool IMPLEMENT (needs_logon_sid_in_sid_list)
93 bool IMPLEMENT (needs_count_in_si_lpres2)
94 bool IMPLEMENT (has_recycle_dot_bin)
95 bool IMPLEMENT (has_gaa_prefixes)
96 bool IMPLEMENT (has_gaa_on_link_prefix)
97 bool IMPLEMENT (supports_all_posix_ai_flags)
98 bool IMPLEMENT (has_restricted_stack_args)
99 bool IMPLEMENT (has_transactions)
100 bool IMPLEMENT (ts_has_dep_problem)
101 bool IMPLEMENT (has_recvmsg)
102 bool IMPLEMENT (has_sendmsg)
103 bool IMPLEMENT (has_broken_udf)
104 bool IMPLEMENT (has_console_handle_problem)
105 bool IMPLEMENT (has_broken_alloc_console)
106 bool IMPLEMENT (has_always_all_codepages)
111 extern wincapc wincap;
113 #endif /* _WINCAP_H */