RetroArch
Macros | Functions
discord_register_win.cpp File Reference
#include "discord_rpc.h"
#include "discord_register.h"
#include <windows.h>
#include <psapi.h>
#include <cwchar>
#include <cstdio>
#include <strsafe.h>
Include dependency graph for discord_register_win.cpp:

Macros

#define WIN32_LEAN_AND_MEAN
 
#define NOMCX
 
#define NOSERVICE
 
#define NOIME
 
#define LSTATUS   LONG
 winreg.h fixes More...
 
#define RegSetKeyValueW   regset
 

Functions

static LSTATUS regset (HKEY hkey, LPCWSTR subkey, LPCWSTR name, DWORD type, const void *data, DWORD len)
 
static void Discord_RegisterW (const wchar_t *applicationId, const wchar_t *command)
 
DISCORD_EXPORT void Discord_Register (const char *applicationId, const char *command)
 
DISCORD_EXPORT void Discord_RegisterSteamGame (const char *applicationId, const char *steamId)
 

Macro Definition Documentation

◆ LSTATUS

#define LSTATUS   LONG

winreg.h fixes

Updated fixes for MinGW and WinXP This block is written the way it does not involve changing the rest of the code Checked to be compiling 1) strsafe.h belongs to Windows SDK and cannot be added to MinGW #include guarded, functions redirected to <string.h> substitutes 2) RegSetKeyValueW and LSTATUS are not declared in <winreg.h> The entire function is rewritten

◆ NOIME

#define NOIME

◆ NOMCX

#define NOMCX

◆ NOSERVICE

#define NOSERVICE

◆ RegSetKeyValueW

#define RegSetKeyValueW   regset

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Function Documentation

◆ Discord_Register()

DISCORD_EXPORT void Discord_Register ( const char *  applicationId,
const char *  command 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Discord_RegisterSteamGame()

DISCORD_EXPORT void Discord_RegisterSteamGame ( const char *  applicationId,
const char *  steamId 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Discord_RegisterW()

static void Discord_RegisterW ( const wchar_t *  applicationId,
const wchar_t *  command 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ regset()

static LSTATUS regset ( HKEY  hkey,
LPCWSTR  subkey,
LPCWSTR  name,
DWORD  type,
const void data,
DWORD  len 
)
static