|Microsoft DirectX 9.0|
The GetMotif method creates a segment containing a motif specified by name.
HRESULT GetMotif( WCHAR* pwszName, IDirectMusicSegment** ppSegment );
Name of the motif.
Address of a variable that receives a pointer to a segment containing the named motif.
If the method succeeds, the return value is S_OK or S_FALSE.
If it fails, the method can return E_POINTER.
The method searches the style's list of motifs for one whose name matches pwszName. If one is found, a segment is created containing a motif track. The track references the style as its associated style and the motif as its
If there is no motif with the name, the method returns S_FALSE.
Header: Declared in dmusici.h.