CreateProcess to invoke Media Player

  • Thread starter Thread starter Robert
  • Start date Start date
R

Robert

I am trying to use the API function to invoke the Player and play a .wmv
file. The player runs but shows a message saying 'can not play the file, the
file either corrupt or wrong format' or something similar. However, if I
browse to the folder and click the .wmv file, it plays it with no error at
all. I am sure the function is declared right since the player is invoked.
and I double checked the file path is correct.

The call is listed below

Create("wmplayer.exe,"\Program Files\MyAppFolder\MySampleVideoFile.wmv", pi)

Any ideas?
 
Back
Top