1 <!-- ##### SECTION Title ##### -->
2 Windows Compatibility Functions
4 <!-- ##### SECTION Short_Description ##### -->
5 UNIX emulation on Windows
7 <!-- ##### SECTION Long_Description ##### -->
9 These functions provide some level of UNIX emulation on the Windows platform.
10 If your application really needs the POSIX APIs, we suggest you try the Cygwin
14 <!-- ##### SECTION See_Also ##### -->
19 <!-- ##### SECTION Stability_Level ##### -->
22 <!-- ##### MACRO MAXPATHLEN ##### -->
24 Provided for UNIX emulation on Windows; equivalent to UNIX
25 macro %MAXPATHLEN, which is the maximum length of a filename
26 (including full path).
31 <!-- ##### FUNCTION g_win32_error_message ##### -->
40 <!-- ##### FUNCTION g_win32_getlocale ##### -->
48 <!-- ##### FUNCTION g_win32_get_package_installation_directory ##### -->
58 <!-- ##### FUNCTION g_win32_get_package_installation_directory_of_module ##### -->
67 <!-- ##### FUNCTION g_win32_get_package_installation_subdirectory ##### -->
78 <!-- ##### FUNCTION g_win32_get_windows_version ##### -->
86 <!-- ##### FUNCTION g_win32_locale_filename_from_utf8 ##### -->
95 <!-- ##### MACRO G_WIN32_DLLMAIN_FOR_DLL_NAME ##### -->
97 On Windows, this macro defines a DllMain() function that stores the actual
98 DLL name that the code being compiled will be included in.
101 On non-Windows platforms, expands to nothing.
104 @static: empty or "static".
105 @dll_name: the name of the (pointer to the) char array where the DLL name
106 will be stored. If this is used, you must also include
107 <filename>windows.h</filename>. If you need a more complex DLL entry
108 point function, you cannot use this.
111 <!-- ##### MACRO G_WIN32_HAVE_WIDECHAR_API ##### -->
113 On Windows, this macro defines an expression which evaluates to %TRUE
114 if the code is running on a version of Windows where the wide
115 character versions of the Win32 API functions, and the wide chaacter
116 versions of the C library functions work. (They are always present in
117 the DLLs, but don't work on Windows 9x and Me.)
120 On non-Windows platforms, it is not defined.
126 <!-- ##### MACRO G_WIN32_IS_NT_BASED ##### -->
128 On Windows, this macro defines an expression which evaluates to %TRUE
129 if the code is running on an NT-based Windows operating system.
132 On non-Windows platforms, it is not defined.