RetroArch
|
#include "discord_rpc.h"
#include "discord_register.h"
#include <windows.h>
#include <psapi.h>
#include <cwchar>
#include <cstdio>
#include <strsafe.h>
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) |
#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
#define NOIME |
#define NOMCX |
#define NOSERVICE |
#define RegSetKeyValueW regset |
#define WIN32_LEAN_AND_MEAN |
DISCORD_EXPORT void Discord_Register | ( | const char * | applicationId, |
const char * | command | ||
) |
DISCORD_EXPORT void Discord_RegisterSteamGame | ( | const char * | applicationId, |
const char * | steamId | ||
) |