Wimlib_extract_from_pipe and Windows.
Posted: Wed Jan 24, 2024 2:55 pm
Is it possible to somehow use the wimlib_extract_image_from_pipe() function with windows pipes? I create a handle for a named pipe using CreateFile(...) and when I use it I get an error: [ERROR] "[fd 1112]": Error reading header: Bad file descriptor. It doesn’t even wait for data to be written to the pipe; it returns with an error immediately.
I used the standard ReadFile() function to test the pipe and it worked fine.
I tried to use wimlib_open_wim() with the file name "\\.\pipe\<pipename>" and it opened the pipe normally and waited for the data to appear in it (but did not work for obvious reasons).
What am I doing wrong and what exactly should be passed as the 'pipe_fd' parameter to the wimlib_extract_image_from_pipe() function?
Important point: I am using a different programming language and therefore cannot use the _wopen() function.
I used the standard ReadFile() function to test the pipe and it worked fine.
I tried to use wimlib_open_wim() with the file name "\\.\pipe\<pipename>" and it opened the pipe normally and waited for the data to appear in it (but did not work for obvious reasons).
What am I doing wrong and what exactly should be passed as the 'pipe_fd' parameter to the wimlib_extract_image_from_pipe() function?
Important point: I am using a different programming language and therefore cannot use the _wopen() function.