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. Disable sounds

Disable sounds

Scheduled Pinned Locked Moved C / C++ / MFC
windows-admintutorialquestion
8 Posts 4 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.
  • R Offline
    R Offline
    rrrado
    wrote on last edited by
    #1

    Is there some way how to disable playing of the system sounds (stored in registry) or any sounds for some process only? I need to turn off sounds in webbrowser hosted in my application but I don't want to turn them off for IE globally. Thank you!


    rrrado

    H Z 2 Replies Last reply
    0
    • R rrrado

      Is there some way how to disable playing of the system sounds (stored in registry) or any sounds for some process only? I need to turn off sounds in webbrowser hosted in my application but I don't want to turn them off for IE globally. Thank you!


      rrrado

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      See

      HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating\.Current

      and see http://www.codeproject.com/audio/mixerSetControlDetails.asp[^] of DavidCrow is helpfuls for you.


      WhiteSky


      R D 2 Replies Last reply
      0
      • H Hamid Taebi

        See

        HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating\.Current

        and see http://www.codeproject.com/audio/mixerSetControlDetails.asp[^] of DavidCrow is helpfuls for you.


        WhiteSky


        R Offline
        R Offline
        rrrado
        wrote on last edited by
        #3

        Thank you but this will disable sounds not only for my webbrowser but also for IE


        rrrado

        1 Reply Last reply
        0
        • R rrrado

          Is there some way how to disable playing of the system sounds (stored in registry) or any sounds for some process only? I need to turn off sounds in webbrowser hosted in my application but I don't want to turn them off for IE globally. Thank you!


          rrrado

          Z Offline
          Z Offline
          zhang800605
          wrote on last edited by
          #4

          Sorry for my poor English . There is a way to resolve this issue , but I didn't try it . That is to write a monitor-program hook all playsound funtion and make it(playsound funtion) disabled for the process.

          R 1 Reply Last reply
          0
          • Z zhang800605

            Sorry for my poor English . There is a way to resolve this issue , but I didn't try it . That is to write a monitor-program hook all playsound funtion and make it(playsound funtion) disabled for the process.

            R Offline
            R Offline
            rrrado
            wrote on last edited by
            #5

            But how can I hook to PlaySound calls?


            rrrado

            Z 1 Reply Last reply
            0
            • R rrrado

              But how can I hook to PlaySound calls?


              rrrado

              Z Offline
              Z Offline
              zhang800605
              wrote on last edited by
              #6

              Sorry for my poor English . You should study the hooks . If you search the hook as the keyword in this website, you could find something.

              R 1 Reply Last reply
              0
              • H Hamid Taebi

                See

                HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating\.Current

                and see http://www.codeproject.com/audio/mixerSetControlDetails.asp[^] of DavidCrow is helpfuls for you.


                WhiteSky


                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #7

                WhiteSky wrote:

                and see http://www.codeproject.com/audio/mixerSetControlDetails.asp\[^\] of DavidCrow is helpfuls for you.

                Which would disable all sounds. Not exactly the desired result.


                "A good athlete is the result of a good and worthy opponent." - David Crow

                "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                1 Reply Last reply
                0
                • Z zhang800605

                  Sorry for my poor English . You should study the hooks . If you search the hook as the keyword in this website, you could find something.

                  R Offline
                  R Offline
                  rrrado
                  wrote on last edited by
                  #8

                  Thank you!


                  rrrado

                  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