View Single Post
  #3 (permalink)  
Old 24th September 2003
smorrowatwork smorrowatwork is offline
Junior Member
BS.Player Newbie
 
Join Date: Sep 2003
Posts: 2
Rep Power: 0
smorrowatwork is an unknown quantity at this point
Default

Yes, and it works.

According to the API the return value is the version number.

// BSPlayer API v 1.0
//
// To get BSPlayer window handle use:
// bsp_hand = FindWindow("BSPlayer",vbNullString)
//
// then you can send messages, for ex. to get current version:
// bsp_ver = SendMessage(bsp_hand,WM_BSP_CMD,BSP_GETVERSION,0)

' Return player version
' format will be XX.YY.ZZZZ -> &HXXYYZZZZ
' for 0.84.484 -> &H00840484

However the BSP_GetFilename message uses a pointer to a buffer to contain the filename. The buffer gets filled with a few '?' instead of the filename.

-smorrowatwork
Reply With Quote
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20