keygendr32/Keygender32/Keygender32.c

43 lines
885 B
C
Raw Permalink Normal View History

2024-03-21 06:09:10 +00:00
// 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;
}