Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1018147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:48:56+00:00 2026-05-16T10:48:56+00:00

Regarding: PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) If hWnd is NULL, PeekMessage retrieves messages for

  • 0

Regarding:

PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)

If hWnd is NULL, PeekMessage retrieves
messages for any window that belongs
to the current thread, and any
messages on the current thread’s
message queue whose hwnd value is NULL
(see the MSG structure). Therefore if
hWnd is NULL, both window messages and
thread messages are processed.

Are messages received via a named pipe included in window messages and thread messages?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T10:48:56+00:00Added an answer on May 16, 2026 at 10:48 am

    Definitely not. Named pipes do not send window messages.

    The thread messages in this context are special and have nothing to do with named pipes.

    Use MsgWaitForMultipleObjects instead.

    CODE SAMPLE:

    void MessageLoop(HANDLE hNamedPipe)
    {
        do {
            DWORD res = MsgWaitForMultipleObjects(1, &hNamedPipe, INFINITE, QS_ALLEVENTS, MWMO_INPUTAVAILABLE);
            if (res == WAIT_OBJECT_0) {
               /* Handle named pipe -- at this point ReadFile will not block */
            } else if (res == WAIT_OBJECT_0 + 1) {
               MSG msg;
               if (!GetMessage(&msg, NULL, 0, 0))
                  break; /* WM_QUIT */
               TranslateMessage(&msg);
               DispatchMessage(&msg);
            }
        } while (1);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Regarding: http://code.google.com/chrome/extensions/idle.html Is thresholdSeconds : 1) insisting that the callback is only called if
Regarding Django & Python: The Error: Exception Type: DatabaseError Exception Value: column objects_thing.name_id does
Regarding setting Django's USE_I18N = False in settings.py the documentation say: A boolean that
Regarding pointers (in structs for this case), I understand that if 'a' were a
Regarding my use of a DataGridView with BindingList, I was to disable editing current
regarding the different posts I read I would have expected that the following code
Regarding performance, is there any difference between doing: $message = The request $request has
Regarding to my other question: XML deserialize null elements? I've got elements like these
Regarding the code below, how does the interpreter know that event has attribute .keyCode.
Regarding my previous problem that is now fixed, I got another problem with the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.