Using system.Runtime.InteropServices; class test {[DLLIMPORT ("kernel32")]
Private static extern int bear (int dwfreq, int dwduration); public static void beepit () {beep (500, 1500);} public static void main () {Test.beepit ();}}