Playing a Wav sound in a D3D
This is for menu's in D3D hacks 
Snippet for playing music in the background while hack is in use
Add that to top of source file
[highlight=c++]#pragma comment( lib, "Winmm.lib" )[/highlight]
[highlight=c++]#include <Windows.h>[/highlight]
Include that in the header file
Code:
PlaySound((LPCTSTR)L"C:\\Windows\\Media\\chimes.wav",nullptr,SND_SYNC);
Sound code ^
------------------------------------
Playing wav sound when a selected key is in play (Hotkey-ish)
Code:
void Music() // could be beep also
{
if(CH_Music)
{
{
if(GetAsyncKeyState(VK_RIGHT))
{
PlaySound("C:\\Windows\\Media\\chime.wav",NULL,SND_SYNC); // to add a song/ audio file just change the destination in the location.
}
}
}
}
Each game has different, structures so when using it for your desired game you might have to change a word or something.
Credits :
Hassan ( Source code for nonhotkey snippet)
Shunnai writing the hotkey snippet
Good luck, will post some more useful stuff 