Constructor

GioWin32InputStreamnew

Declaration [src]

GInputStream*
g_win32_input_stream_new (
  void* handle,
  gboolean close_handle
)

Description [src]

Creates a new GWin32InputStream for the given handle.

If close_handle is TRUE, the handle will be closed when the stream is closed.

Note that “handle” here means a Win32 HANDLE, not a “file descriptor” as used in the Windows C libraries.

Parameters

handle

Type: void*

A Win32 file handle.

The argument can be NULL.
The data is owned by the caller of the function.
close_handle

Type: gboolean

TRUE to close the handle when done.

Return value

Type: GInputStream

A new GWin32InputStream.

The caller of the function takes ownership of the data, and is responsible for freeing it.