unit AudioSessionControl;
interface
uses
Windows, Messages, Classes, AudioSessionEvents;
const
IID_IAudioSessionControl: TGUID = '
{F4B1A599-7266-4319-A8CA-E70ACB11E8CD}';
type
IAudioSessionControl =
interface(IUnknown)
['
{F4B1A599-7266-4319-A8CA-E70ACB11E8CD}']
function GetState(
out pRetVal: uint): HResult;
stdcall;
function GetDisplayName(
out pRetVal: LPWSTR): HResult;
stdcall;
function SetDisplayName(Value: LPCWSTR; EventContext: pGuid): HResult;
stdcall;
function GetIconPath(
out pRetVal: LPWSTR): HResult;
stdcall;
function SetIconPath(Value: LPCWSTR; EventContext: pGuid): HResult;
stdcall;
function GetGroupingParam(pRetVal: pGuid): HResult;
stdcall;
function SetGroupingParam(OverrideValue, EventContext: pGuid): HResult;
stdcall;
function RegisterAudioSessionNotification(
const NewNotifications: IAudioSessionEvents)
: HResult;
stdcall;
function UnregisterAudioSessionNotification(
const NewNotifications: IAudioSessionEvents)
: HResult;
stdcall;
end;
implementation
end.