RE: Kernel32.dll Beep Function 04-06-2013, 10:42 AM
#4
Wow great info.But in the code
I think there is an extra L, within the braces, its misprinted, it should be GetModuleHandle("kernel32.dll")
and have you compiled the asm code to get the beep sound.I think there is a functon in C sound(anynumber); that does the same job, though Beep() allows us to adjust the delay time as well.
Code:
GetProcAddress(
GetModuleHandle(L"kernel32.dll"),
"Beep"
);I think there is an extra L, within the braces, its misprinted, it should be GetModuleHandle("kernel32.dll")
and have you compiled the asm code to get the beep sound.I think there is a functon in C sound(anynumber); that does the same job, though Beep() allows us to adjust the delay time as well.
![[Image: OilyCostlyEwe.gif]](http://fat.gfycat.com/OilyCostlyEwe.gif)

![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)