123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #include "main.h"
- #include "../Winamp/wa_ipc.h"
- #include "resource.h"
- #include "api.h"
- #include "../nu/AutoWide.h"
- #include "../nu/AutoChar.h"
- #include <strsafe.h>
- #include "..\..\General\gen_ml\menu.h"
- #include "..\..\General\gen_ml\ml_ipc_0313.h"
- #define PLUGIN_VERSION L"1.1"
- int Init();
- void Quit();
- UINT_PTR xmlex_treeItem = 0;
- api_service *serviceManager = 0;
- EXTERN_C winampMediaLibraryPlugin plugin =
- {
- MLHDR_VER,
- "Nullsoft XML Reader",
- Init,
- Quit,
- xmlex_pluginMessageProc,
- 0,
- 0,
- 0,
- };
- int Init()
- {
-
- WASABI_API_SVC = (api_service *)SendMessage(plugin.hwndWinampParent, WM_WA_IPC, 0, IPC_GET_API_SERVICE);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MLTREEITEMW newTree;
- newTree.size = sizeof(MLTREEITEMW);
- newTree.parentId = 0;
- newTree.title = L"XML Example";
- newTree.hasChildren = 0;
- newTree.id = 0;
- SendMessage(plugin.hwndLibraryParent, WM_ML_IPC, (WPARAM) &newTree, ML_IPC_TREEITEM_ADDW);
- xmlex_treeItem = newTree.id;
- return 0;
- }
- void Quit()
- {
- }
- extern "C" __declspec(dllexport) winampMediaLibraryPlugin *winampGetMediaLibraryPlugin()
- {
- return &plugin;
- }
|