1 <!-- ##### SECTION Title ##### -->
2 Windows Compatibility Functions
4 <!-- ##### SECTION Short_Description ##### -->
5 UNIX emulation on Windows.
7 <!-- ##### SECTION Long_Description ##### -->
12 <!-- ##### SECTION See_Also ##### -->
17 <!-- ##### SECTION Stability_Level ##### -->
20 <!-- ##### MACRO MAXPATHLEN ##### -->
22 Provided for UNIX emulation on Windows; equivalent to UNIX
23 macro %MAXPATHLEN, which is the maximum length of a filename
24 (including full path).
29 <!-- ##### MACRO pipe ##### -->
31 Provided for UNIX emulation on Windows; see documentation for <function>pipe()</function>
35 @phandles: file descriptors, the first one for reading, the second one for writing.
38 <!-- ##### FUNCTION g_win32_error_message ##### -->
47 <!-- ##### FUNCTION g_win32_getlocale ##### -->
55 <!-- ##### FUNCTION g_win32_get_package_installation_directory ##### -->
65 <!-- ##### FUNCTION g_win32_get_package_installation_subdirectory ##### -->
76 <!-- ##### FUNCTION g_win32_get_windows_version ##### -->
84 <!-- ##### FUNCTION g_win32_locale_filename_from_utf8 ##### -->
93 <!-- ##### MACRO G_WIN32_DLLMAIN_FOR_DLL_NAME ##### -->
95 On Windows, this macro defines a <function>DllMain()</function> function
96 that stores the actual DLL name that the code being compiled will be
100 On non-Windows platforms, expands to nothing.
103 @static: empty or "static".
104 @dll_name: the name of the (pointer to the) char array where the DLL name
105 will be stored. If this is used, you must also include
106 <filename>windows.h</filename>. If you need a more complex DLL entry
107 point function, you cannot use this.
110 <!-- ##### MACRO G_WIN32_HAVE_WIDECHAR_API ##### -->
112 On Windows, this macro defines an expression which evaluates to %TRUE
113 if the code is running on a version of Windows where the wide
114 character versions of the Win32 API functions, and the wide chaacter
115 versions of the C library functions work. (They are always present in
116 the DLLs, but don't work on Windows 9x and Me.)
119 On non-Windows platforms, it is not defined.
125 <!-- ##### MACRO G_WIN32_IS_NT_BASED ##### -->
127 On Windows, this macro defines an expression which evaluates to %TRUE
128 if the code is running on an NT-based Windows operating system.
131 On non-Windows platforms, it is not defined.