⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 splash.c

📁 网页游戏赤壁
💻 C
字号:
#include <windows.h>
#include <windowsx.h>
#include <string.h>
#include "splshapi.h"
#include "errorapi.h"

FARPROC pfnSplashInit;
FARPROC pfnSplashExecute;
HINSTANCE hLibrary;

BOOL WINAPI IntelSplashInit()
{
	int iErr;

	//
	// Dynamically load the SPLASH DLL and execute the
	// two functions SplashInit() and SplashExecute()
	//
#if WIN16
	hLibrary = LoadLibrary( "SPLASH16.DLL" );
#endif
#if WIN32
	hLibrary = LoadLibrary( "SPLASH32.DLL" );
#endif
	if ( (int)hLibrary < HINSTANCE_ERROR )
	{
		//MessageBox( 0, "Could not find Splash DLL", "Error", MB_OK );
		OutputDebugString( "Could not find Splash DLL\n" );
		return FALSE;
	}
#if WIN16
	pfnSplashInit = GetProcAddress( hLibrary, "SplashInit" );
#endif
#if WIN32
	pfnSplashInit = GetProcAddress( hLibrary, "_SplashInit@4" );
#endif
	if ( !pfnSplashInit )
	{
		OutputDebugString( "Invalid Splash DLL\n" );
		return FALSE;
	}
#if WIN16
	pfnSplashExecute = GetProcAddress( hLibrary, "SplashExecute" );
#endif
#if WIN32
	pfnSplashExecute = GetProcAddress( hLibrary, "_SplashExecute@0" );
#endif
	if ( !pfnSplashExecute )
	{
		OutputDebugString( "Invalid Splash DLL\n" );
		return FALSE;
	}

	//
	// Initialize the Splash DLL indicating the language to display
	//
	iErr = pfnSplashInit( (DWORD)SPLASH_LANG_ENGLISH );
	if ( iErr ){
		OutputDebugString( "An error occurred initializing the Splash DLL.\n" );
		return FALSE;
	}

	return TRUE;
}

BOOL WINAPI IntelSplash()
{
int iErr;

	//
	// Execute Splash screen
	//
	iErr = pfnSplashExecute();
	if ( iErr ){
		OutputDebugString( "An error occurred executing the Splash screen." );
		return FALSE;
	}
	return TRUE;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -