Fixes for #61284:
[glib.git] / docs / reference / glib / tmpl / windows.sgml
blob58517f31a0a258a6e9065de64e47864dd9e1d5c2
1 <!-- ##### SECTION Title ##### -->
2 Windows Compatibility Functions
4 <!-- ##### SECTION Short_Description ##### -->
5 Unix emulation on Windows
7 <!-- ##### SECTION Long_Description ##### -->
8 <para>
10 </para>
12 <!-- ##### SECTION See_Also ##### -->
13 <para>
15 </para>
17 <!-- ##### MACRO MAXPATHLEN ##### -->
18 <para>
19 Provided for UNIX emulation on Windows; equivalent to UNIX
20 macro %MAXPATHLEN, which is the maximum length of a filename
21 (including full path).
22 </para>
26 <!-- ##### TYPEDEF pid_t ##### -->
27 <para>
28 Provided for UNIX emulation on Windows; process ID type.
29 </para>
32 <!-- ##### MACRO pipe ##### -->
33 <para>
34 Provided for UNIX emulation on Windows; see documentation for <function>pipe()</function>
35 in any UNIX manual.
36 </para>
38 @phandles:
41 <!-- ##### MACRO ftruncate ##### -->
42 <para>
43 Provided for UNIX emulation on Windows; see documentation for <function>ftruncate()</function>
44 in any UNIX manual.
45 </para>
47 @fd:
48 @size:
51 <!-- ##### FUNCTION g_win32_error_message ##### -->
52 <para>
54 </para>
56 @error:
57 @Returns:
60 <!-- ##### FUNCTION g_win32_getlocale ##### -->
61 <para>
63 </para>
65 @Returns:
68 <!-- ##### FUNCTION g_win32_get_package_installation_directory ##### -->
69 <para>
71 </para>
73 @package:
74 @dll_name:
75 @Returns:
78 <!-- ##### FUNCTION g_win32_get_package_installation_subdirectory ##### -->
79 <para>
81 </para>
83 @package:
84 @dll_name:
85 @subdir:
86 @Returns:
89 <!-- ##### MACRO G_WIN32_DLLMAIN_FOR_DLL_NAME ##### -->
90 <para>
91 On Windows, this macro defines a <function>DllMain()</function> function
92 that stores the actual DLL name that the code being compiled will be
93 included in.
94 </para>
95 <para>
96 On non-Windows platforms, expands to nothing.
97 </para>
99 @static: empty or "static".
100 @dll_name: the name of the (pointer to the) char array where the DLL name
101 will be stored. If this is used, you must also include
102 <filename>windows.h</filename>. If you need a more complex DLL entry
103 point function, you cannot use this.
105 @static:
106 @dll_name: