Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
IMMNotificationClient.h File Reference
#include "ServiceBroker.h"
#include "cores/AudioEngine/Engines/ActiveAE/ActiveAE.h"
#include "utils/log.h"
#include "platform/win32/CharsetConverter.h"
#include "platform/win32/powermanagement/Win32PowerSyscall.h"
#include <mmdeviceapi.h>
#include <wrl/client.h>

Classes

class  CMMNotificationClient
 

Functions

std::string FromW (const wchar_t *str, size_t length)
 

Function Documentation

◆ FromW()

std::string KODI::PLATFORM::WINDOWS::FromW ( const wchar_t * str,
size_t length )

Convert UTF-16 to UTF-8 strings Windows specific method to avoid initialization issues and locking issues that are unique to Windows as API calls expect UTF-16 strings

Parameters
str[in]string to be converted
length[in]length in characters of the string
Returns
utf8 string, empty string on failure