Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. InterProcess Communication

InterProcess Communication

Scheduled Pinned Locked Moved C / C++ / MFC
helpcom
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Identity Undisclosed
    wrote on last edited by
    #1

    Hello, I am trying to send a message across processes. However, the message is not successfully sent. Here is what happens: a) If the process (from which message is to be sent) is not elevated, then GetLastError returns 5 which means access error. b) If the process (from which message is to sent) is elevated, then the message is sucessfully sent. Now the problem is I cannot elevate the process. Is there any work around or possible solution. Thanks.

    Top 10, Top ten, Top 10 lists, Top ten lists Top 10 about everything

    G S M 3 Replies Last reply
    0
    • I Identity Undisclosed

      Hello, I am trying to send a message across processes. However, the message is not successfully sent. Here is what happens: a) If the process (from which message is to be sent) is not elevated, then GetLastError returns 5 which means access error. b) If the process (from which message is to sent) is elevated, then the message is sucessfully sent. Now the problem is I cannot elevate the process. Is there any work around or possible solution. Thanks.

      Top 10, Top ten, Top 10 lists, Top ten lists Top 10 about everything

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      I think you need to indicate what o/s, what version of c++, and how you are sending the message - eg postmessage, sendmessage, carrier-pidgeon for others to help/make sense of your request 'g'

      I 1 Reply Last reply
      0
      • G Garth J Lancaster

        I think you need to indicate what o/s, what version of c++, and how you are sending the message - eg postmessage, sendmessage, carrier-pidgeon for others to help/make sense of your request 'g'

        I Offline
        I Offline
        Identity Undisclosed
        wrote on last edited by
        #3

        OK. Here are the details: I am using Windows Vista. I am developing the application using VS 2005 (C++). I have tried PostMessage & SendMessage. Both have same behavior in both cases. Thanks.

        Top 10, Top ten, Top 10 lists, Top ten lists Top 10 about everything

        P 1 Reply Last reply
        0
        • I Identity Undisclosed

          Hello, I am trying to send a message across processes. However, the message is not successfully sent. Here is what happens: a) If the process (from which message is to be sent) is not elevated, then GetLastError returns 5 which means access error. b) If the process (from which message is to sent) is elevated, then the message is sucessfully sent. Now the problem is I cannot elevate the process. Is there any work around or possible solution. Thanks.

          Top 10, Top ten, Top 10 lists, Top ten lists Top 10 about everything

          S Offline
          S Offline
          Stuart Dootson
          wrote on last edited by
          #4

          Identity Undisclosed wrote:

          Is there any work around or possible solution

          Use a different IPC mechanism (named pipe, shared memory + mutex or event or something)?

          Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

          1 Reply Last reply
          0
          • I Identity Undisclosed

            Hello, I am trying to send a message across processes. However, the message is not successfully sent. Here is what happens: a) If the process (from which message is to be sent) is not elevated, then GetLastError returns 5 which means access error. b) If the process (from which message is to sent) is elevated, then the message is sucessfully sent. Now the problem is I cannot elevate the process. Is there any work around or possible solution. Thanks.

            Top 10, Top ten, Top 10 lists, Top ten lists Top 10 about everything

            M Offline
            M Offline
            Michael Dunn
            wrote on last edited by
            #5

            You're seeing the correct behavior. UIPI blocks messages sent from a lower-integrity process to a higher-integrity process. If you control the receiving process, you can call ChangeWindowMessageFilter() to allow the message through.

            --Mike--

            1 Reply Last reply
            0
            • I Identity Undisclosed

              OK. Here are the details: I am using Windows Vista. I am developing the application using VS 2005 (C++). I have tried PostMessage & SendMessage. Both have same behavior in both cases. Thanks.

              Top 10, Top ten, Top 10 lists, Top ten lists Top 10 about everything

              P Offline
              P Offline
              Peter Weyzen
              wrote on last edited by
              #6

              Look at the WM_COPYDATA message. See: Inter-Process Communication using WM_COPYDATA[^]

              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Peter Weyzen Staff Engineer [SoonR Inc -- PC Power delivered to your phone](http://www.soonr.com)

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups