Hello here is the API written in C++:

c++ Code:
  1. #define BMSAPI_WINDOWCAPTION "BMS Business Music System"
  2. #define WM_BMSAPI_COMMAND 0x7fff
  3.  
  4. int BMSAPISendCommand(int iBMSCommand, LPARAM ExtraData)
  5. {
  6.    HWND hwndBMS = FindWindowEx(NULL, NULL, NULL, BMSAPI_WINDOWCAPTION);
  7.    if (hwndBMS == NULL) {
  8.      // BMS not running.
  9.      // Either attempt to run BMS
  10.      // or spit out error message here...
  11.      return 0;
  12.    }
  13.    return SendMessage(hwndBMS, WM_BMSAPI_COMMAND, iBMSCommand, ExtraData);
  14. }

I need it converted to Visual Basic .NET. I ran it through a converter but it wasn't very succesfull.