|
|
#1 |
|
Junior Member
Join Date: Mar 2008
Posts: 1
|
Add file to library
I write program and i need add files from some directory add to winamp library. How using SDK add files?
Please help. |
|
|
|
|
|
#2 |
|
Ben Allison
Lead Developer Winamp Dev Team Join Date: Jan 2005
Location: Ashburn, VA
Posts: 1,018
|
Like most parts of the SDK, this only works "in-process", i.e. inside a plugin.
this code snippet should work code: Newer versions of Winamp with Unicode media library support also allow the following: code: |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Dec 2006
Posts: 5
|
Hi Benski,
I tried this piece of code and things didn't work for me -- meaning the new entries are not added to the ML view or the ML Database is updated. Any idea as to what could be going wrong ? HWND hwndSomeHelper3 = ::FindWindow("Winamp Gen", "Winamp Library"); LMDB_FILE_ADD_INFOW fi = {const_cast<wchar_t *>(L"C:\\ws\\test.mp3"), 0, 0}; LRESULT lr1 = ::SendMessage(hwndSomeHelper3, WM_ML_IPC, (WPARAM)&fi, ML_IPC_DB_ADDORUPDATEFILEW); // ML_IPC_DB_SYNCDB should be sent when you are done adding files BOOL Br= ::PostMessage(hwndSomeHelper3, WM_ML_IPC, 0, ML_IPC_DB_SYNCDB); |
|
|
|
|
|
#4 |
|
-
Join Date: Sep 2003
Location: UK
Posts: 22,237
|
that won't work as stated in your original thread due to it being sent out of process. either change to a native plugin and ipc between it and your app or look at the winampmagic/readprocessmemory examples to 'hack' around the issue.
-daz |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|