title: How to understand PlaySound function API document and implement it in MASM?
body: <p>I know that putting 20001h in PlaySound function as the last parameter can make the music play synchronously. But why is 20001h? I also wanted the music played in the background &quot;repeatedly&quot; but I couldn't understand the API document since it does not mention 20001h stands for SND_SYNC nor show what stands for SND_LOOP.
  Need some enlightenment, big thank!</p>
  <p>This is my code:</p>
  <pre><code>includelib Winmm.lib
  PlaySound PROTO,
          pszSound:PTR BYTE, 
          hmod:DWORD, 
          fdwSound:DWORD
  
  file BYTE &quot;test.wav&quot;,0
  SND_SYNC DWORD 0
  
  main proc
      mov SND_SYNC, 20001H 
      INVOKE PlaySound, OFFSET file, NULL, SND_SYNC
  
  .......
  
  </code></pre>