1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>GWin32OutputStream</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="GIO Reference Manual">
8 <link rel="up" href="streaming.html" title="Streaming I/O">
9 <link rel="prev" href="gio-GWin32InputStream.html" title="GWin32InputStream">
10 <link rel="next" href="gio-GConverterInputstream.html" title="GConverterInputstream">
11 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17 <td><a accesskey="p" href="gio-GWin32InputStream.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="streaming.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GIO Reference Manual</th>
21 <td><a accesskey="n" href="gio-GConverterInputstream.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#gio-GWin32OutputStream.synopsis" class="shortcut">Top</a>
26 <a href="#gio-GWin32OutputStream.description" class="shortcut">Description</a>
29 <div class="refentry">
30 <a name="gio-GWin32OutputStream"></a><div class="titlepage"></div>
31 <div class="refnamediv"><table width="100%"><tr>
33 <h2><span class="refentrytitle"><a name="gio-GWin32OutputStream.top_of_page"></a>GWin32OutputStream</span></h2>
34 <p>GWin32OutputStream — Streaming output operations for Windows file handles</p>
36 <td valign="top" align="right"></td>
38 <div class="refsynopsisdiv">
39 <a name="gio-GWin32OutputStream.synopsis"></a><h2>Synopsis</h2>
40 <pre class="synopsis">
41 #include <gio/gwin32outputstream.h>
43 struct <a class="link" href="gio-GWin32OutputStream.html#GWin32OutputStream" title="struct GWin32OutputStream">GWin32OutputStream</a>;
44 <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="returnvalue">GOutputStream</span></a> * <a class="link" href="gio-GWin32OutputStream.html#g-win32-output-stream-new" title="g_win32_output_stream_new ()">g_win32_output_stream_new</a> (<em class="parameter"><code><span class="type">void</span> *handle</code></em>,
45 <em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> close_handle</code></em>);
46 <span class="returnvalue">void</span> <a class="link" href="gio-GWin32OutputStream.html#g-win32-output-stream-set-close-handle" title="g_win32_output_stream_set_close_handle ()">g_win32_output_stream_set_close_handle</a>
47 (<em class="parameter"><code><a class="link" href="gio-GWin32OutputStream.html#GWin32OutputStream" title="struct GWin32OutputStream"><span class="type">GWin32OutputStream</span></a> *stream</code></em>,
48 <em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> close_handle</code></em>);
49 <a href="./../glib/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gio-GWin32OutputStream.html#g-win32-output-stream-get-close-handle" title="g_win32_output_stream_get_close_handle ()">g_win32_output_stream_get_close_handle</a>
50 (<em class="parameter"><code><a class="link" href="gio-GWin32OutputStream.html#GWin32OutputStream" title="struct GWin32OutputStream"><span class="type">GWin32OutputStream</span></a> *stream</code></em>);
51 <span class="returnvalue">void</span> * <a class="link" href="gio-GWin32OutputStream.html#g-win32-output-stream-get-handle" title="g_win32_output_stream_get_handle ()">g_win32_output_stream_get_handle</a> (<em class="parameter"><code><a class="link" href="gio-GWin32OutputStream.html#GWin32OutputStream" title="struct GWin32OutputStream"><span class="type">GWin32OutputStream</span></a> *stream</code></em>);
54 <div class="refsect1">
55 <a name="gio-GWin32OutputStream.description"></a><h2>Description</h2>
57 <a class="link" href="gio-GWin32OutputStream.html#GWin32OutputStream" title="struct GWin32OutputStream"><span class="type">GWin32OutputStream</span></a> implements <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> for writing to a
61 Note that <code class="filename"><gio/gwin32outputstream.h></code> belongs
62 to the Windows-specific GIO interfaces, thus you have to use the
63 <code class="filename">gio-windows-2.0.pc</code> pkg-config file when using it.
66 <div class="refsect1">
67 <a name="gio-GWin32OutputStream.details"></a><h2>Details</h2>
68 <div class="refsect2">
69 <a name="GWin32OutputStream"></a><h3>struct GWin32OutputStream</h3>
70 <pre class="programlisting">struct GWin32OutputStream {
71 GOutputStream parent_instance;
75 Implements <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> for outputting to Windows file handles
79 <div class="refsect2">
80 <a name="g-win32-output-stream-new"></a><h3>g_win32_output_stream_new ()</h3>
81 <pre class="programlisting"><a class="link" href="GOutputStream.html" title="GOutputStream"><span class="returnvalue">GOutputStream</span></a> * g_win32_output_stream_new (<em class="parameter"><code><span class="type">void</span> *handle</code></em>,
82 <em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> close_handle</code></em>);</pre>
84 Creates a new <a class="link" href="gio-GWin32OutputStream.html#GWin32OutputStream" title="struct GWin32OutputStream"><span class="type">GWin32OutputStream</span></a> for the given <em class="parameter"><code>handle</code></em>.
87 If <em class="parameter"><code>close_handle</code></em>, is <a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the handle will be closed when the
88 output stream is destroyed.
90 <div class="variablelist"><table border="0">
91 <col align="left" valign="top">
94 <td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
95 <td>a Win32 file handle</td>
98 <td><p><span class="term"><em class="parameter"><code>close_handle</code></em> :</span></p></td>
100 <a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to close the handle when done</td>
103 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
104 <td>a new <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>
109 <p class="since">Since 2.26</p>
112 <div class="refsect2">
113 <a name="g-win32-output-stream-set-close-handle"></a><h3>g_win32_output_stream_set_close_handle ()</h3>
114 <pre class="programlisting"><span class="returnvalue">void</span> g_win32_output_stream_set_close_handle
115 (<em class="parameter"><code><a class="link" href="gio-GWin32OutputStream.html#GWin32OutputStream" title="struct GWin32OutputStream"><span class="type">GWin32OutputStream</span></a> *stream</code></em>,
116 <em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> close_handle</code></em>);</pre>
118 Sets whether the handle of <em class="parameter"><code>stream</code></em> shall be closed when the stream
121 <div class="variablelist"><table border="0">
122 <col align="left" valign="top">
125 <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
126 <td>a <a class="link" href="gio-GWin32OutputStream.html#GWin32OutputStream" title="struct GWin32OutputStream"><span class="type">GWin32OutputStream</span></a>
130 <td><p><span class="term"><em class="parameter"><code>close_handle</code></em> :</span></p></td>
132 <a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to close the handle when done</td>
136 <p class="since">Since 2.26</p>
139 <div class="refsect2">
140 <a name="g-win32-output-stream-get-close-handle"></a><h3>g_win32_output_stream_get_close_handle ()</h3>
141 <pre class="programlisting"><a href="./../glib/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_win32_output_stream_get_close_handle
142 (<em class="parameter"><code><a class="link" href="gio-GWin32OutputStream.html#GWin32OutputStream" title="struct GWin32OutputStream"><span class="type">GWin32OutputStream</span></a> *stream</code></em>);</pre>
144 Returns whether the handle of <em class="parameter"><code>stream</code></em> will be closed when the
147 <div class="variablelist"><table border="0">
148 <col align="left" valign="top">
151 <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
152 <td>a <a class="link" href="gio-GWin32OutputStream.html#GWin32OutputStream" title="struct GWin32OutputStream"><span class="type">GWin32OutputStream</span></a>
156 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
158 <a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the handle is closed when done</td>
162 <p class="since">Since 2.26</p>
165 <div class="refsect2">
166 <a name="g-win32-output-stream-get-handle"></a><h3>g_win32_output_stream_get_handle ()</h3>
167 <pre class="programlisting"><span class="returnvalue">void</span> * g_win32_output_stream_get_handle (<em class="parameter"><code><a class="link" href="gio-GWin32OutputStream.html#GWin32OutputStream" title="struct GWin32OutputStream"><span class="type">GWin32OutputStream</span></a> *stream</code></em>);</pre>
169 Return the Windows handle that the stream writes to.
171 <div class="variablelist"><table border="0">
172 <col align="left" valign="top">
175 <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
176 <td>a <a class="link" href="gio-GWin32OutputStream.html#GWin32OutputStream" title="struct GWin32OutputStream"><span class="type">GWin32OutputStream</span></a>
180 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
181 <td>The handle descriptor of <em class="parameter"><code>stream</code></em>
186 <p class="since">Since 2.26</p>
189 <div class="refsect1">
190 <a name="gio-GWin32OutputStream.see-also"></a><h2>See Also</h2>
191 <a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a>
196 Generated by GTK-Doc V1.18</div>