WMPTSE API: Difference between revisions

From Hydrogenaudio Knowledgebase
Line 7: Line 7:
Every WMPTSE API application must export two function (c standard call):
Every WMPTSE API application must export two function (c standard call):
   
   
  BOOL Read<TagFormat>Tag( LPTSTR lpstrFileFullPath, METATAG * pMetaTag )
  BOOL Read<font style="color:green"><TagFormat></font>Tag( LPTSTR lpstrFileFullPath, METATAG * pMetaTag )
   
   
  BOOL Write<TagFormat>Tag( LPTSTR lpstrFileFullPath, TAGITEM tagiChangedItem )
  BOOL Write<font style="color:green"><TagFormat></font>Tag( LPTSTR lpstrFileFullPath, TAGITEM tagiChangedItem )


<TagFormat> will be the name of the corresponding tag format (APE, Vorbis, MPEG4).  
<font style="color:green"><TagFormat></font> will be the name of the corresponding tag format (APE, Vorbis, MPEG4).  
It will be search by WMPTSE during the load process.
It will be search by WMPTSE during the load process.



Revision as of 11:38, 9 November 2006

The WMPTSE API is the interface between the WMPTSE plug-in and its "tag support dll".

A tag support dll give WMPTSE the ability to add support of a tag format in Windows Media Player. With the this "tag support dll" properly installed, files tagged with its format are readable inside WMP.

API

Every WMPTSE API application must export two function (c standard call):

BOOL Read<TagFormat>Tag( LPTSTR lpstrFileFullPath, METATAG * pMetaTag )

BOOL Write<TagFormat>Tag( LPTSTR lpstrFileFullPath, TAGITEM tagiChangedItem )

<TagFormat> will be the name of the corresponding tag format (APE, Vorbis, MPEG4). It will be search by WMPTSE during the load process.

Definition

All types and definition are declared in WMPTSE.h. It is simple to developper to just include it at first.