title: C++ How to Sendmessage volume up?
body: <p>How can I send message volume up? I tried the code bellow but it doesnt work. Please help me. Thank you very much!</p>
  
  <pre><code>void main()
  {
      HWND hwnd = GetConsoleWindow();
      SendMessage(hwnd, WM_APPCOMMAND, 0, APPCOMMAND_VOLUME_UP);
  }
  </code></pre>