Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: john satellite
  Where is john satellite?
 zj
 China
 john satellite
 Tags
Subject: How to shutdown Windows Media Player by API ?
Thread ID: 34034 Message ID: 34034 # Views: 1 # Ratings: 0
Version: Visual FoxPro 8 Category: Win32API programming
Date: Sunday, December 07, 2003 10:37:23 AM         
   


Hi,

One of my friend gave me the code below to open Windows Media Player, but I don't know how to shutdown it by API code when it is running . who can help me ? Thanks.
*********************************
DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin
cFileName = "c:\Program Files\Windows Media Player\Wmplayer.exe"
cAction = "open"
ShellExecute(0,cAction,cFileName,"","",1)
*********************************

John Satellite

ENTIRE THREAD

How to shutdown Windows Media Player by API ? Posted by john satellite @ 12/7/2003 10:37:23 AM
RE: How to shutdown Windows Media Player by API ? Posted by Eric den Doop @ 12/7/2003 12:15:36 PM
RE: How to shutdown Windows Media Player by API ? Posted by john satellite @ 12/7/2003 2:47:14 PM
RE: How to shutdown Windows Media Player by API ? Posted by Eric den Doop @ 12/7/2003 3:55:55 PM
To:Eric Posted by john satellite @ 12/7/2003 6:11:30 PM
RE: To:Eric Posted by Eric den Doop @ 12/8/2003 7:58:24 AM
RE: To:Eric Posted by john satellite @ 12/8/2003 9:33:16 AM
RE: To:Eric Posted by Eric den Doop @ 12/8/2003 9:37:49 AM