SDL  2.0
SDL_winrt_main_NonXAML.cpp File Reference
#include "SDL_main.h"
#include <wrl.h>
+ Include dependency graph for SDL_winrt_main_NonXAML.cpp:

Go to the source code of this file.

Functions

int CALLBACK WinMain (HINSTANCE, HINSTANCE, LPSTR, int)
 

Function Documentation

◆ WinMain()

int CALLBACK WinMain ( HINSTANCE  ,
HINSTANCE  ,
LPSTR  ,
int   
)

Definition at line 51 of file SDL_winrt_main_NonXAML.cpp.

References FAILED, NULL, SDL_main(), and SDL_WinRTRunApp().

52 {
53  if (FAILED(Windows::Foundation::Initialize(RO_INIT_MULTITHREADED))) {
54  return 1;
55  }
56 
58  return 0;
59 }
#define FAILED(x)
Definition: SDL_directx.h:54
#define NULL
Definition: begin_code.h:143
C_LINKAGE int SDL_main(int argc, char *argv[])
int SDL_WinRTRunApp(int(*mainFunction)(int, char **), void *xamlBackgroundPanel)