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. WTSSendMessage Failing

WTSSendMessage Failing

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminjsonhelp
2 Posts 2 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.
  • A Offline
    A Offline
    Arun Parthasarathy
    wrote on last edited by
    #1

    Hi all, I want to post a message to a specific server from windows 7 os. Iam using WTSSendMessage api to post the message. 1. this api takes the handle to the opened server. 2. if i open the handle to my own machine and use that handle to the WTSSEndMessage api, i get the message in my machine. 3. Whereas if i open the handle to anyother machine and if i use the same handle in WTSSendMessage api, the function failing with error message, "Acess is denied.". 4. Also even the firewall is off in the machine where i try to send the message. If anyone know the solution, pls let me know! thanks, Arun P.

    Arun P.

    C 1 Reply Last reply
    0
    • A Arun Parthasarathy

      Hi all, I want to post a message to a specific server from windows 7 os. Iam using WTSSendMessage api to post the message. 1. this api takes the handle to the opened server. 2. if i open the handle to my own machine and use that handle to the WTSSEndMessage api, i get the message in my machine. 3. Whereas if i open the handle to anyother machine and if i use the same handle in WTSSendMessage api, the function failing with error message, "Acess is denied.". 4. Also even the firewall is off in the machine where i try to send the message. If anyone know the solution, pls let me know! thanks, Arun P.

      Arun P.

      C Offline
      C Offline
      Code o mat
      wrote on last edited by
      #2

      On the MSDN site for WTSSendMessage[^] look for this text: "WTSSendMessage to a remote computer is denied by default" and read what it says. Could this be your problem?

      > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

      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