Re: Adding a menu item into the system menu of a console mode program



Sorry for letting you wait

No problem. It happend that I had too much work anyway...

The console window is created by CSRSS; not a Win32 application
and it is not a normal Win32 window. Attempts to treat it as a Win32
window might not always work as expected.

I have to support W2K, W2K3 and XP with only one console window for the
application. I don't need a general solution working in all situations. The
target is only my current specific situation.

I finally got the responses from the CSRSS team. Below is their comment:
This isn't really console-specific (conceptually) so you shouldn't try to
find a console-specific solution (since the only possible console-specific
solution can't work, as you know). I would suggest looking at winevents
(SetWinEventHook). It will tell you when certain events happen, such as
menu items being selected.

I will try to explore this.
Thanks.

--
Francois PIETTE
http://www.overbyte.be



""Jeffrey Tan[MSFT]"" <jetan@xxxxxxxxxxxxxxxxxxxx> a écrit dans le message
de news:EGTd3J$HHHA.2024@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi Francois,

I finally got the responses from the CSRSS team. Below is their comment:

This isn't really console-specific (conceptually) so you shouldn't try to
find a console-specific solution (since the only possible console-specific
solution can't work, as you know). I would suggest looking at winevents
(SetWinEventHook). It will tell you when certain events happen, such as
menu items being selected.

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.



.



Relevant Pages

  • Re: wpf: Trap keyup event in canvas
    ... you can do it in the window level. ... currentElement = e.OriginalSource; ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: windows vista mouse cursor goes bezerk
    ... other than 0 or 1) for the timer is a generally good idea. ... If the timers are window based, check what window they are going to. ... be seen by our internal newsgroup support tool. ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.win32.programmer.ui)
  • RE: Cannot see modules window when debugging
    ... find any known records regarding "Modules" window disappear filed. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ... project analysis and dump analysis issues. ...
    (microsoft.public.vsnet.debugging)
  • RE: How to activate an existing program
    ... Get the main window of the process. ... Shared Function ShowWindow(ByVal hwnd As IntPtr, ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework)
  • Re: How to activate an existing program
    ... Get the main window of the process. ... Shared Function ShowWindow(ByVal hwnd As IntPtr, ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework)