from internet i got this code but it's not compiling in my compiler

Code:
#include <iostream>
#include <fstream>
#include <string>
#include <windows.h>
using namespace std;
int main()
{
PlaySound("windowsding.wav", NULL, SND_FILENAME|SND_LOOP);
  return 0;
}
PlaySound function does not exist in my compiler