@dilettante

Still crashes.

As I said in post #17 it worked - no problem....but

...when I put the exact same code in the waveInProc the app crashed. This was the only code I used as I commented out everything else in the proc and only the code I used in post #17 was in the proc.

Also, The CopyMemory API was commented out