Official BS.Player forums  

Go Back   Official BS.Player forums > Main forum > General Talk And Support
Register FAQ Calendar Today's Posts Search

General Talk And Support General talk and peer-to-peer support about BS.Player and other video and audio multimedia players.

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8 (permalink)  
Old 31st July 2004
bst's Avatar
bst bst is offline
BS.Developer
BS.Player Power User
 
Join Date: Jun 2002
Posts: 181
Rep Power: 10
bst will become famous soon enoughbst will become famous soon enough
Default

This should work.
You can call it
$dll(DLLNAME.dll, GetBSPMovieName, 0) and you will get full path
or
$dll(DLLNAME.dll, GetBSPMovieName, 1) for filename without path.

Code:
int __stdcall GetBSPMovieName(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause)
{

	HWND bsp_hand;
	if ( (bsp_hand = FindWindow("BSPlayer",NULL)) !=0 ) {
		COPYDATASTRUCT cds;

		char buf[MAX_PATH];
		void *adr;
		adr=&buf;

		cds.dwData=BSP_GetFileName;
		cds.lpData=&adr;
		cds.cbData=4;
		SendMessage(bsp_hand,WM_COPYDATA,(WPARAM)aWnd,(LPARAM)&cds);

		if (strcmp(data,"0")==0) 
			strcpy(data, buf);
		else
		{
			char *p=strrchr(buf,'\\');
			strcpy(data, ++p);
		}

		return 3;
	}

	return 1;

}
Reply With Quote
 

Tags
bspgetfilename, osd


Posting Rules


All times are GMT +1. The time now is 03:08 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
Ad Management plugin by RedTyger

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