comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.os ... win32 Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  creating layered desktop views         


Author: Beagle
Date: May 13, 2008 16:46

Folks,

With VNC (*1) you can see the host desktop by connecting using the
view app. The host sends a byte stream of the desktop(*2) as frames.
However I want to send the desktop, minus the a chat app. I could
remove (aka ShowWindow 'hide') the chat app before BitBlt call (line
6). Doing this resulted in a blinking app on the host. I could
maintain the other windows in a virtual frame buffer. I could
intercept the screen changing calls of all the other apps. I could in
the chat app keep a byte buffer of the underside, then CopyToBuffer
twice (Line 8). Any other suggestions?

Thanks,
BEA

*1 http://www.tightvnc.com

*2
Show full article (1.75Kb)
1 Comment
  CreatePipe/CreateNamedPipe unbuffered?         


Author: eddieparkerami
Date: May 13, 2008 11:20

Hi!

I'm writing a quick little Popen class in C++ on windows. Basically I
want it to:

- Spawn a subprocess
- Upon termination ("Kill"), kill said subprocess, and all children
- Gather stdout/stderr and redirect it to some function I pass in.

I've got this all working, using a mixture of CreateProcess/*JobObject
functions, and the STARTUP_INFO parameters for handle redirection.

My only problem now, seems to be that the pipes seem to get buffered
at around 1024 bytes, at least on my machine, and it tends to give
garbled output if I ever *do* combine the output later on.

I'm curious, is it possible to make the pipe unbuffered (assuming I'm
diagnosing this correctly)?

Looking at the pipe API, it looks like it's not truly possible, since
pipes get a 'suggested' buffer size that the system then does stuff
with anyhow. However, I'm wondering if some underlying implementation
of pipes would solve this (i.e., if I can get a file descriptor from a
pipe and run setvbuf on it, or some such)?
Show full article (1.08Kb)
4 Comments