Versions in this module Expand all Collapse all v0 v0.2.0 Dec 28, 2025 Changes in this version + type AsyncOperationCompletedHandler struct — windows/amd64 + IID ole.GUID + func NewAsyncOperationCompletedHandler(iid *ole.GUID, callback AsyncOperationCompletedHandlerCallback) *AsyncOperationCompletedHandler + func (h *AsyncOperationCompletedHandler) AddRef() uint64 + func (h *AsyncOperationCompletedHandler) GetIID() *ole.GUID + func (h *AsyncOperationCompletedHandler) Invoke(...) uintptr + func (h *AsyncOperationCompletedHandler) Release() uint64 + type AsyncOperationCompletedHandlerCallback func(instance *AsyncOperationCompletedHandler, asyncInfo *IAsyncOperation[any], ...) — windows/amd64 + type AsyncOperationCompletedHandlerVtbl struct — windows/amd64 + Invoke uintptr + type AsyncStatus int32 — windows/amd64 + const AsyncStatusCanceled + const AsyncStatusCompleted + const AsyncStatusError + const AsyncStatusStarted + type Callbacks struct — windows/amd64 + AddRef uintptr + Invoke uintptr + QueryInterface uintptr + Release uintptr + func RegisterCallbacks(ptr unsafe.Pointer, inst Delegate) *Callbacks + type Delegate interface — windows/amd64 + AddRef func() uint64 + GetIID func() *ole.GUID + Invoke func(...) uintptr + Release func() uint64 + type IAsyncOperation struct — windows/amd64 + func (v *IAsyncOperation[V]) GetCompleted() (*AsyncOperationCompletedHandler, error) + func (v *IAsyncOperation[V]) GetResults() (*V, error) + func (v *IAsyncOperation[V]) PutCompleted(handler *AsyncOperationCompletedHandler) error + func (v *IAsyncOperation[V]) VTable() *IAsyncOperationVtbl + func (v *IAsyncOperation[V]) WaitResult(guid string) (*V, error) + type IAsyncOperationVtbl struct — windows/amd64 + GetCompleted uintptr + GetResults uintptr + PutCompleted uintptr + type IGlobalSystemMediaTransportControlsSession struct — windows/amd64 + func (v *IGlobalSystemMediaTransportControlsSession) TryGetMediaPropertiesAsync() (*IAsyncOperation[IGlobalSystemMediaTransportControlsSessionMediaProperties], ...) + func (v *IGlobalSystemMediaTransportControlsSession) VTable() *IGlobalSystemMediaTransportControlsSessionVtbl + type IGlobalSystemMediaTransportControlsSessionManager struct — windows/amd64 + func (v *IGlobalSystemMediaTransportControlsSessionManager) GetCurrentSession() (*IGlobalSystemMediaTransportControlsSession, error) + func (v *IGlobalSystemMediaTransportControlsSessionManager) VTable() *IGlobalSystemMediaTransportControlsSessionManagerVtbl + type IGlobalSystemMediaTransportControlsSessionManagerStatics struct — windows/amd64 + func (v *IGlobalSystemMediaTransportControlsSessionManagerStatics) RequestAsync() (*IAsyncOperation[IGlobalSystemMediaTransportControlsSessionManager], error) + func (v *IGlobalSystemMediaTransportControlsSessionManagerStatics) VTable() *IGlobalSystemMediaTransportControlsSessionManagerStaticsVtbl + type IGlobalSystemMediaTransportControlsSessionManagerStaticsVtbl struct — windows/amd64 + RequestAsync uintptr + type IGlobalSystemMediaTransportControlsSessionManagerVtbl struct — windows/amd64 + AddCurrentSessionChanged uintptr + AddSessionsChanged uintptr + GetCurrentSession uintptr + GetSessions uintptr + RemoveCurrentSessionChanged uintptr + RemoveSessionsChanged uintptr + type IGlobalSystemMediaTransportControlsSessionMediaProperties struct — windows/amd64 + func (v *IGlobalSystemMediaTransportControlsSessionMediaProperties) GetAlbumArtist() (string, error) + func (v *IGlobalSystemMediaTransportControlsSessionMediaProperties) GetAlbumTitle() (string, error) + func (v *IGlobalSystemMediaTransportControlsSessionMediaProperties) GetAlbumTrackCount() (int, error) + func (v *IGlobalSystemMediaTransportControlsSessionMediaProperties) GetArtist() (string, error) + func (v *IGlobalSystemMediaTransportControlsSessionMediaProperties) GetGenres() ([]string, error) + func (v *IGlobalSystemMediaTransportControlsSessionMediaProperties) GetPlaybackType() (PlaybackType, error) + func (v *IGlobalSystemMediaTransportControlsSessionMediaProperties) GetSubtitle() (string, error) + func (v *IGlobalSystemMediaTransportControlsSessionMediaProperties) GetTitle() (string, error) + func (v *IGlobalSystemMediaTransportControlsSessionMediaProperties) GetTrackNumber() (int, error) + func (v *IGlobalSystemMediaTransportControlsSessionMediaProperties) VTable() *IGlobalSystemMediaTransportControlsSessionMediaPropertiesVtbl + type IGlobalSystemMediaTransportControlsSessionMediaPropertiesVtbl struct — windows/amd64 + GetAlbumArtist uintptr + GetAlbumTitle uintptr + GetAlbumTrackCount uintptr + GetArtist uintptr + GetGenres uintptr + GetPlaybackType uintptr + GetSubtitle uintptr + GetThumbnail uintptr + GetTitle uintptr + GetTrackNumber uintptr + type IGlobalSystemMediaTransportControlsSessionVtbl struct — windows/amd64 + AddMediaPropertiesChanged uintptr + AddPlaybackInfoChanged uintptr + AddTimelinePropertiesChanged uintptr + GetPlaybackInfo uintptr + GetSourceAppUserModelId uintptr + GetTimelineProperties uintptr + RemoveMediaPropertiesChanged uintptr + RemovePlaybackInfoChanged uintptr + RemoveTimelinePropertiesChanged uintptr + TryChangeAutoRepeatModeAsync uintptr + TryChangeChannelDownAsync uintptr + TryChangeChannelUpAsync uintptr + TryChangePlaybackPositionAsync uintptr + TryChangePlaybackRateAsync uintptr + TryChangeShuffleActiveAsync uintptr + TryFastForwardAsync uintptr + TryGetMediaPropertiesAsync uintptr + TryPauseAsync uintptr + TryRecordAsync uintptr + TryRewindAsync uintptr + TrySkipNextAsync uintptr + TrySkipPreviousAsync uintptr + TryStopAsync uintptr + TryTogglePlayPauseAsync uintptr + type IMediaPlaybackType struct — windows/amd64 + func (v *IMediaPlaybackType) GetValue() (int, error) + func (v *IMediaPlaybackType) VTable() *IMediaPlaybackTypeVtbl + type IMediaPlaybackTypeVtbl struct — windows/amd64 + GetValue uintptr + type IVectorView struct — windows/amd64 + func (v *IVectorView) GetAt(index uint32) (unsafe.Pointer, error) + func (v *IVectorView) GetMany(startIndex uint32, itemsSize uint32) ([]unsafe.Pointer, uint32, error) + func (v *IVectorView) GetSize() (uint32, error) + func (v *IVectorView) IndexOf(value unsafe.Pointer) (uint32, bool, error) + func (v *IVectorView) VTable() *IVectorViewVtbl + type IVectorViewVtbl struct — windows/amd64 + GetAt uintptr + GetMany uintptr + GetSize uintptr + IndexOf uintptr v0.1.0 Jan 5, 2025 Changes in this version + type Info struct + Album string + AlbumArtists []string + AlbumTrackCount int + ArtURL string + Artists []string + BPM int + Composers []string + Created time.Time + DiscNumber int + FirstPlayed time.Time + Genres []string + LastPlayed time.Time + Length time.Duration + Lyricists []string + PlayCount int + PlaybackType PlaybackType + Subtitle string + Title string + TrackNumber int + URL string + func GetInfo(ctx context.Context) (*Info, error) + type PlaybackType int + const PlaybackTypeImage + const PlaybackTypeMusic + const PlaybackTypeUnknown + const PlaybackTypeVideo + func (p PlaybackType) String() string