keygendr32/Keygender32/Keygender32.c
2024-03-20 23:09:10 -07:00

43 lines
885 B
C

// Keygender32.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "Keygender32.h"
#include <locale.h>
#define MAX_LOADSTRING 100
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
BgmState state = NULL;
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
setlocale( LC_ALL, ".437" );
InitCommonControls();
InitStarfieldControl(hInstance);
if (!PrepareMusic(hInstance, &state)) {
MessageBoxA(
NULL,
MusicStartFailReason,
"Music play failed ;_;",
MB_OK | MB_ICONERROR);
}
DialogBoxParam(hInstance,
MAKEINTRESOURCE(IDD_MAIN),
NULL,
MainDlgProc,
(LPARAM)state);
EndMusic(state);
DeinitStarfieldControl(hInstance);
return 0;
}