comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
Your Ad Here
comp.os.mswindows.programmer.win32 only
 
Advanced search
January 2008
motuwethfrsasuw
 123456 1
78910111213 2
14151617181920 3
21222324252627 4
28293031    5
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
  Differences between a protoinfo struct from getsockopt and WSADuplicateSocket         


Author: Andrew Falanga
Date: Jan 31, 2008 12:27

Hi,

I've got something of a chicken and egg situation that I'm wondering
about. This has to do with the sharing of certain data between
separate processes (see some of my earlier postings). I'm trying to
duplicate a socket from one processes to another. The problem is, to
create the socket in the target process, one uses WSADuplicateSocket
in the source and WSASocket in the target.

In the target process, the WSASocket call requires a WSAPROTOCOL_INFO
struct which would be filled from the call to WSADuplicateSocket in
the source process. However, the WSADuplicateSocket call requires a
handle to the target process for the duplication of the socket. Thus,
the target process must be started and then the call to
WSADuplicateSocket.

The problem is, I'm concerned my target process will startup and
attempt to read from my shared memory area before I'm able to populate
it with the contents of the necessary WSAPROTOCOL_INFO structure
needed to create the duplicated socket. Basically, because the source
process must do; CreateProcess, WSADuplicateSocket, CopyMemory instead
of something like, WSADuplicateSocket, CopyMemory, CreateProcess.
Show full article (2.32Kb)
2 Comments
  Re: How, exactly, is IPC done in Windows         


Author: Andrew Falanga
Date: Jan 31, 2008 09:21

On Jan 30, 6:52 pm, Norman Bullen BlackKittenAssociates.com>
wrote:
> Andrew Falanga wrote:
>> On Jan 30, 3:19 pm, "Scott McPhillips [MVP]" >> scottmcp> wrote:
>
>>>"Andrew Falanga" gmail.com> wrote in message
>
>>>news:4619b5fe-fc5f-43ab-9674-09361f1e38af@c23g2000hsa.googlegroups.com...
>
>>>>2) the source then duplicates the socket and then sends the
>>>>WSAPROTOCOL_INFO structure to the target process. How is this done,
>>>>exactly? Is this done with signals? Is it done with shared memory?
>>>>What form of IPC is utilized in Windows? If there are more than one
>>>>mechanism which is preferred.
>
>>>There are about a dozen forms of IPC available. Perhaps the simplest,
>>>appropriate only if the receiving side runs a message pump, is
>>>SendMessage(hwnd, WM_COPYDATA, ....), where the required destinationn HWND
>>>can be obtained from FindWindow(). This copies a structure you pass from ...
Show full article (2.65Kb)
1 Comment
  Re: Need help with callback function         


Author:
Date: Jan 31, 2008 08:35

hotmail.com> wrote in message
news:98b5cdad-7dae-470e-9276-657810e406a0@h11g2000prf.googlegroups.com...
> Now, here is where it gets ugly. login() is a simple function where I
> just have a few more tasks to do in OnDocumentComplete. However, I
> have many more automation tasks that perform much more complex tasks
> and it is difficult to keep track of the program flow. If I have to
> navigate to a few pages, I have to chop up the code between the main
> function and the callpack function. Is there an elegant way to handle
> this? The program is single-threaded so I can't use loop to wait
> until navigate2 finishes loading the page. It would be nice if I can
> somehow make navigate2 not return until the page is done loading.

"Somehow make navigate2 not return until..." is called procedural
programming. It is dead in GUI programs. The necessary alternative is
event-driven programming, in which you must relinquish control until you are
notified that new input is available. And yes, this looks ugly, especially
to folks who are new to this paradigm.
Show full article (1.92Kb)
no comments
  Re: How, exactly, is IPC done in Windows         


Author: Andrew Falanga
Date: Jan 31, 2008 07:36

On Jan 30, 6:52 pm, Norman Bullen BlackKittenAssociates.com>
wrote:
> Andrew Falanga wrote:
>> On Jan 30, 3:19 pm, "Scott McPhillips [MVP]" >> scottmcp> wrote:
>
>>>"Andrew Falanga" gmail.com> wrote in message
>
>>>news:4619b5fe-fc5f-43ab-9674-09361f1e38af@c23g2000hsa.googlegroups.com...
>
>>>>2) the source then duplicates the socket and then sends the
>>>>WSAPROTOCOL_INFO structure to the target process. How is this done,
>>>>exactly? Is this done with signals? Is it done with shared memory?
>>>>What form of IPC is utilized in Windows? If there are more than one
>>>>mechanism which is preferred.
>
>>>There are about a dozen forms of IPC available. Perhaps the simplest,
>>>appropriate only if the receiving side runs a message pump, is
>>>SendMessage(hwnd, WM_COPYDATA, ....), where the required destinationn HWND
>>>can be obtained from FindWindow(). This copies a structure you pass from ...
Show full article (2.39Kb)
no comments
  Re: How, exactly, is IPC done in Windows         


Author: Andrew Falanga
Date: Jan 31, 2008 07:25

On Jan 30, 6:52 pm, Norman Bullen BlackKittenAssociates.com>
wrote:
> Andrew Falanga wrote:
>> On Jan 30, 3:19 pm, "Scott McPhillips [MVP]" >> scottmcp> wrote:
>
>>>"Andrew Falanga" gmail.com> wrote in message
>
>>>news:4619b5fe-fc5f-43ab-9674-09361f1e38af@c23g2000hsa.googlegroups.com...
>
>>>>2) the source then duplicates the socket and then sends the
>>>>WSAPROTOCOL_INFO structure to the target process. How is this done,
>>>>exactly? Is this done with signals? Is it done with shared memory?
>>>>What form of IPC is utilized in Windows? If there are more than one
>>>>mechanism which is preferred.
>
>>>There are about a dozen forms of IPC available. Perhaps the simplest,
>>>appropriate only if the receiving side runs a message pump, is
>>>SendMessage(hwnd, WM_COPYDATA, ....), where the required destinationn HWND
>>>can be obtained from FindWindow(). This copies a structure you pass from ...
Show full article (2.39Kb)
no comments
  Button         


Author: arumuthu
Date: Jan 29, 2008 22:54

hi,
i have to Add button to simple application,i draw button in
bitmap but i want to add own design button to simple application

Thanks & Regards
Muthukkumaran.S.A
2 Comments
  FlushViewOfFile UnderHood         


Author: savage54321
Date: Jan 29, 2008 17:48

Guys,

I've seen bunch of articles about the behavior of the FlashViewOfFile,
including the description within MSDN. No one can exactly say its
really behavior . Some said, FlashViewOfFile writes the dirty pages
back into the physical memory then return TRUE, then File Cache
Manager would take care the rest job which is writing the memory back
to the disk file, while some said, FlashViewOfFile can write the
memory back to the disk file.

Well, that's all guess without prove. The best test would be that,
before work flow routes to FlashViewOfFile, force to delete the
mapping file then we can see what happen.

The result of test is:
FlashViewOfFile always returns TRUE, regardless of the existence of
mapping file. Thing becomes easy which's, *FlashViewOfFile just writes
the dirty pages back into the physical memory then return TRUE, File
Cache Manager would take care the rest job which writes the memory
back to the disk file*
Show full article (1.25Kb)
no comments
  How to write an appbar on the top of desktop ?         


Author: Aman JIANG
Date: Jan 29, 2008 06:19

i like the appbar of gnome just like:
http://www.ubuntu.com/files/GutsyImages/Places-Menu.jpg

and I cannot find a nice software which could do this on win32.

so, maybe I can write a nice one for myself :-)

i have no idea where i can start,
any suggestion?
3 Comments
  Please help me debug these BSODs - thank you         


Author: Jake
Date: Jan 29, 2008 04:27

Hello,

I have had several BSOD's on my Zepto 6615WD since I bought it.
So I have done a clean install (again) of Windows XP SP2. I have installed
the drivers
Zepto has provided and I have installed the drivers in the
order that they have recommended. The drivers have been
installed in this order:

Audio: Realtek HD Audio 1.64
BisonCam: 2.6.0.20
Cardreader: 2.0.0.4
Infrared: 5.1.3600.7
Modem: 6.10.3.0
Touchpad: 8.3.4.0
Chipset: Intel 8.1.1.1010
LAN: Realtek 664
VGA: Nvidia 9.7.4.4
WLAN Intel 54Mbit: Intel 10.5.1.72
WLAN Wpro 300Mbit: Atheros 6.0.3.62

I have uploaded a zip file which you can download from:
Show full article (3.84Kb)
2 Comments
Your Ad Here
  IE Toolbar: edit control interferes with browser         


Author: Francis
Date: Jan 29, 2008 02:38

Hello,

I am developing an Internet Explorer toolbar that also contains a
combo box. The problem is that pressing backspace in the edit field of
the combo box has the effect of pressing the Internet Explorer "Back"
button. So IE browses to the previous page every time I press the
backspace in my edit control.

My toolbar plugin is modeled after the kbbar example provided by
Microsoft. The TranslateAcceleratorIO, HasFocusIO and UIActivateIO
methods are implemented.

Can anyone hint me towards a solution of this problem? I would greatly
appreciate your help on this.

Francis
7 Comments
1 2 3 4 5 6 7 8 9