From 9f5253d004f6e8557186fce9a4bf2144c9b7285e Mon Sep 17 00:00:00 2001 From: galaxyhaxz Date: Sat, 9 Jun 2018 05:25:18 -0500 Subject: [PATCH] Update DiabloUI.h --- DiabloUI/DiabloUI.h | 61 ++++++++++++++++++++++++++++++--------------- 1 file changed, 41 insertions(+), 20 deletions(-) diff --git a/DiabloUI/DiabloUI.h b/DiabloUI/DiabloUI.h index c1ba02b..86228f7 100644 --- a/DiabloUI/DiabloUI.h +++ b/DiabloUI/DiabloUI.h @@ -1,24 +1,45 @@ +/* + * Diablo(TM) + * + * Copyright (C) 1996 Blizzard Entertainment + * All Rights Reserved. + * + * DiabloUI.h + * definitions for DiabloUI + */ -// The following ifdef block is the standard way of creating macros which make exporting -// from a DLL simpler. All files within this DLL are compiled with the DIABLOUI_EXPORTS -// symbol defined on the command line. this symbol should not be defined on any project -// that uses this DLL. This way any other project whose source files include this file see -// DIABLOUI_API functions as being imported from a DLL, wheras this DLL sees symbols -// defined with this macro as being exported. -#ifdef DIABLOUI_EXPORTS -#define DIABLOUI_API __declspec(dllexport) -#else -#define DIABLOUI_API __declspec(dllimport) + +#ifdef __GNUC__ +extern "C" { #endif -// This class is exported from the DiabloUI.dll -class DIABLOUI_API CDiabloUI { -public: - CDiabloUI(void); - // TODO: add your methods here. -}; - -extern DIABLOUI_API int nDiabloUI; - -DIABLOUI_API int fnDiabloUI(void); +void __cdecl UiDestroy(); // { return; } +void __stdcall UiTitleDialog(int a1); // { return; } +void __cdecl UiInitialize(); // { return; } +void __stdcall UiCopyProtError(int a1); // { return; } +void __stdcall UiAppActivate(int a1); // { return; } +int __stdcall UiValidPlayerName(char *a1); // { return 0; } +int __stdcall UiSelHeroMultDialog(void *fninfo, void *fncreate, void *fnremove, void *fnstats, int *a5, int *a6, char *name); // { return 0; } +int __stdcall UiSelHeroSingDialog(void *fninfo, void *fncreate, void *fnremove, void *fnstats, int *a5, char *name, int *difficulty); // { return 0; } +void __stdcall UiCreditsDialog(int a1); // { return; } +int __stdcall UiMainMenuDialog(char *name, int *a2, void *fnSound, int a4); // { return 0; } +int __stdcall UiProgressDialog(HWND window, char *msg, int a3, void *fnfunc, int a5); // { return 0; } +int __cdecl UiProfileGetString(); // { return; } +void __cdecl UiProfileCallback(); // { return; } +void __cdecl UiProfileDraw(); // { return; } +void __cdecl UiCategoryCallback(); // { return; } +void __cdecl UiGetDataCallback(); // { return; } +void __cdecl UiAuthCallback(); // { return; } +void __cdecl UiSoundCallback(); // { return; } +void __cdecl UiMessageBoxCallback(); // { return; } +void __cdecl UiDrawDescCallback(); // { return; } +void __cdecl UiCreateGameCallback(); // { return; } +void __cdecl UiArtCallback(); // { return; } +int __stdcall UiSelectGame(int a1, _SNETPROGRAMDATA *client_info, _SNETPLAYERDATA *user_info, _SNETUIDATA *ui_info, _SNETVERSIONDATA *file_info, int *a6); // { return 0; } +int __stdcall UiSelectProvider(int a1, _SNETPROGRAMDATA *client_info, _SNETPLAYERDATA *user_info, _SNETUIDATA *ui_info, _SNETVERSIONDATA *file_info, int *type); // { return 0; } +int __stdcall UiCreatePlayerDescription(_uiheroinfo *info, int mode, char *desc); // { return 0; } +int __stdcall UiSetupPlayerInfo(char *str, _uiheroinfo *info, int mode); // { return 0; } +#ifdef __GNUC__ +} +#endif