|Microsoft DirectX 9.0|
The GetMasterClock method retrieves the GUID and a pointer to the IReferenceClock interface for the clock that is currently set as the DirectMusic master clock.
HRESULT GetMasterClock( LPGUID pguidClock, IReferenceClock** ppReferenceClock );
Address of a variable that receives the GUID of the master clock. The application can pass NULL if this value is not desired.
Address of a variable that receives the IReferenceClock interface pointer for this clock. The application can pass NULL if this value is not desired.
If the method succeeds, the return value is S_OK.
If it fails, the method can return one of the error values shown in the following table.
The IReferenceClock interface pointer must be released after the application has finished using the interface.
Header: Declared in dmusicc.h.