Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
WIN32Util.cpp File Reference
#include "WIN32Util.h"
#include "CompileInfo.h"
#include "ServiceBroker.h"
#include "Util.h"
#include "WinRtUtil.h"
#include "WindowHelper.h"
#include "guilib/LocalizeStrings.h"
#include "my_ntddscsi.h"
#include "rendering/dx/DirectXHelper.h"
#include "storage/MediaManager.h"
#include "storage/cdioSupport.h"
#include "utils/CharsetConverter.h"
#include "utils/StringUtils.h"
#include "utils/SystemInfo.h"
#include "utils/URIUtils.h"
#include "utils/log.h"
#include "platform/win32/CharsetConverter.h"
#include <PowrProf.h>
#include <array>
#include <locale.h>
#include <sstream>
#include <shellapi.h>
#include <shlobj.h>
#include <winioctl.h>
#include <ctype.h>
#include <string.h>
#include <time.h>

Macros

#define _ctloc(x)
 
#define TM_YEAR_BASE   1900
 
#define __UNCONST(x)
 
#define ALT_E   0x01
 
#define ALT_O   0x02
 
#define LEGAL_ALT(x)
 
#define SS_DEFLANGID   MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT)
 

Typedefs

typedef unsigned char u_char
 
typedef unsigned int uint
 
using SETTHREADDESCRIPTION = HRESULT(WINAPI*)(HANDLE hThread, PCWSTR lpThreadDescription)
 

Functions

FILE * fopen_utf8 (const char *_Filename, const char *_Mode)
 
char * strptime (const char *buf, const char *fmt, struct tm *tm)
 

Variables

const char * abday []
 
const char * day []
 
const char * abmon []
 
const char * mon []
 
const char * am_pm []
 
const char * d_t_fmt = "%a %Ef %T %Y"
 
const char * t_fmt_ampm = "%I:%M:%S %p"
 
const char * t_fmt = "%H:%M:%S"
 
const char * d_fmt = "%m/%d/%y"
 

Macro Definition Documentation

◆ __UNCONST

#define __UNCONST ( x)
Value:
((char*)(((const char*)(x) - (const char*)0) + (char*)0))

◆ _ctloc

#define _ctloc ( x)
Value:
(x)

◆ ALT_E

#define ALT_E   0x01

◆ ALT_O

#define ALT_O   0x02

◆ LEGAL_ALT

#define LEGAL_ALT ( x)
Value:
{ \
if (alt_format & ~(x)) \
return NULL; \
}

◆ SS_DEFLANGID

#define SS_DEFLANGID   MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT)

◆ TM_YEAR_BASE

#define TM_YEAR_BASE   1900

Typedef Documentation

◆ SETTHREADDESCRIPTION

using SETTHREADDESCRIPTION = HRESULT(WINAPI*)(HANDLE hThread, PCWSTR lpThreadDescription)

◆ u_char

typedef unsigned char u_char

◆ uint

typedef unsigned int uint

Function Documentation

◆ fopen_utf8()

FILE * fopen_utf8 ( const char * _Filename,
const char * _Mode )

◆ strptime()

char * strptime ( const char * buf,
const char * fmt,
struct tm * tm )

Variable Documentation

◆ abday

const char* abday[]
Initial value:
= {
"Sun", "Mon", "Tue", "Wed",
"Thu", "Fri", "Sat"
}

◆ abmon

const char* abmon[]
Initial value:
= {
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
}

◆ am_pm

const char* am_pm[]
Initial value:
= {
"AM", "PM"
}

◆ d_fmt

const char* d_fmt = "%m/%d/%y"

◆ d_t_fmt

const char* d_t_fmt = "%a %Ef %T %Y"

◆ day

const char* day[]
Initial value:
= {
"Sunday", "Monday", "Tuesday", "Wednesday",
"Thursday", "Friday", "Saturday"
}

◆ mon

const char* mon[]
Initial value:
= {
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
}

◆ t_fmt

const char* t_fmt = "%H:%M:%S"

◆ t_fmt_ampm

const char* t_fmt_ampm = "%I:%M:%S %p"