Quote: "
// All of the DBPro Commands
//------------------------------------------------------------------------------------------------------------------------------
// Global Variables/Types
// --Instances
HINSTANCE DBProCoreDll;
HINSTANCE DBProTextDll;
HINSTANCE DBProInputDll;
HINSTANCE DBProFileDll;
// --Types
typedef void (__cdecl* voidFunc) (void);
typedef LPSTR (__cdecl* stringVoidFunc) (void);
typedef GlobStruct* (__cdecl* globstructVoidFunc) (void);
typedef DWORD (__cdecl* dwordIntFunc) (void);
typedef float (__cdecl* float4Func) (float, float, float);
typedef DWORD (__cdecl* dwordVoidFunc) (void);
typedef void (__cdecl* voidStringFunc) (LPSTR);
typedef void (__cdecl* voidInt2Func) (int, int);
typedef void (__cdecl* voidIntFunc) (int);
typedef void (__cdecl* voidDwordFunc) (DWORD);
typedef int (__cdecl* intVoidFunc) (void);
typedef float (__cdecl* float2Func) (float);
typedef int (__cdecl* intStringFunc) (LPSTR);
typedef LPSTR (__cdecl* stringIntFunc) (int);
typedef void (__cdecl* voidInt2StringFunc) (int, int, LPSTR);
typedef LPSTR (__cdecl* string2IntFunc) (LPSTR, int);
typedef LPSTR (__cdecl* string2Func) (LPSTR);
typedef LPSTR (__cdecl* stringFloatFunc) (float);
typedef int (__cdecl* intString2Func) (LPSTR, LPSTR);
typedef LPSTR (__cdecl* string3Func) (LPSTR, LPSTR);
typedef void (__cdecl* voidIntFloatIntFunc) (int, float, int);
typedef void (__cdecl* voidFloat2Func) (float, float);
typedef void (__cdecl* voidFloatFunc) (float);
typedef int (__cdecl* int2Func) (int);
typedef void (__cdecl* voidStringIntFunc) (LPSTR, int);
typedef void (__cdecl* voidString2Func) (LPSTR, LPSTR);
typedef void (__cdecl* voidString3Func) (LPSTR, LPSTR, LPSTR);
typedef void (__cdecl* voidIntStringFunc) (int, LPSTR);
// --Variables
// core
voidFunc dbAlwaysActiveOff; // Always Active Off
voidFunc dbAlwaysActiveOn; // Always Active On
stringVoidFunc dbCl; // string$ = Cl$()
voidFunc dbCls; // Cls
voidFunc dbDrawSpritesFirst; // Draw Sprites First
voidFunc dbDrawSpritesLast; // Draw Sprites Last
voidFunc dbDrawToBack; // Draw To Back
voidFunc dbDrawToFront; // Draw To Front
voidFunc dbFastsync; // Fastsync
stringVoidFunc dbGetDate; // string$ = Get Date$()
stringVoidFunc dbGetDxVer; // string$ = Get Dx Ver$()
globstructVoidFunc dbGetGlobPtr; // GlobStruct* = GetGlobPtr <- Not a DBP Command
stringVoidFunc dbGetTime; // string$ = Get Time$()
stringVoidFunc dbInkey; // string$ = Inkey$()
dwordIntFunc dbMakeMemory; // DWORD = Make Memory(sizeInBytes as integer)
float4Func dbNewXValue; // float = NewXValue(CurrentXValue as float, angleValue as float, stepValue as float)
float4Func dbNewYValue; // float = NewYValue(CurrentYValue as float, angleValue as float, stepValue as float)
float4Func dbNewZValue; // float = NewZValue(CurrentZValue as float, angleValue as float, stepValue as float)
dwordVoidFunc dbPassBreakOutPtr; // dword = PassBreakOutPtr() <- Not a DBP Command
dwordVoidFunc dbPassCmdLineHandlerPtr; // dword = PassCmdLineHandlerPtr() <- Not a DBP Command
dwordVoidFunc dbPassDataStatementPtr; // dword = PassDataStatementPtr() <- Not a DBP Command
dwordVoidFunc dbPassErrorHandlerPtr; // dword = PassErrorHandlerPtr() <- Not a DBP Command
dwordVoidFunc dbPassEscapePtr; // dword = PassEscapePtr() <- Not a DBP Command
voidStringFunc dbPrint; // Print string$
voidFunc dbEnd; // End
voidInt2Func dbSetCursor; // Set Cursor x as integer, y as integer
voidIntFunc dbSleep; // Sleep length as integer
voidFunc dbSync; // Sync
voidDwordFunc dbSyncMask; // Sync Mask mask as DWORD
voidFunc dbSyncOff; // Sync Off
voidFunc dbSyncOn; // Sync On
voidIntFunc dbSyncRate; // Sync Rate syncRate as integer
voidIntFunc dbSyncSleep; // Sync Sleep syncSleepFlag as integer
intVoidFunc dbTimer; // time = Timer()
voidFunc dbWaitKey; // Wait Key
voidFunc dbWaitMouse; // Wait Mouse
voidIntFunc dbWait; // Wait length as integer
float2Func dbWrapValue; // float = WrapValue(val as float)
// text
intStringFunc dbAsc; // integer = Asc(string$)
stringIntFunc dbBin; // string$ = Bin$(val as integer)
voidInt2StringFunc dbCenterText; // Center Text x as integer, y as integer, text$ as string
stringIntFunc dbChr; // string$ = Chr$(val as integer)
intStringFunc dbGetTextHeight; // integer = Get Text Height(string$ as string)
intStringFunc dbGetTextWidth; // integer = Get Text Width(string$ as string)
stringIntFunc dbHex; // string$ = Hex$(val as integer)
string2IntFunc dbLeft; // string$ = Left$(string$ as string, val as integer)
intStringFunc dbLen; // integer = Len(string$ as string)
string2Func dbLower; // string$ = Lower$(string$ as string)
string2IntFunc dbMid; // string$ = Mid$(string$ as string, val as integer)
voidFunc dbPerformChecklistForFonts; // Perform Checklist For Fonts
string2IntFunc dbRight; // string$ = Right$(string$ as string, val as integer)
voidStringFunc dbSetTextFont; // Set Text Font string$ as string
voidIntFunc dbSetTextSize; // Set Text Size size as integer
voidFunc dbSetTextToBold; // Set Text To Bold
voidFunc dbSetTextToBoldItalic; // Set Text To Bolditalic
voidFunc dbSetTextToItalic; // Set Text To Italic
voidFunc dbSetTextToNormal; // Set Text To Normal
voidFunc dbSetTextToOpaque; // Set Text To Opaque
voidFunc dbSetTextToTransparent; // Set Text To Transparent
stringFloatFunc dbStr; // string$ = Str$(float# as float)
voidInt2StringFunc dbText; // Text x as integer, y as integer, text$ as string
intVoidFunc dbTextBackgroundType; // integer = Text Background Type()
stringVoidFunc dbTextFont; // string$ = Text Font$()
intStringFunc dbTextHeight; // integer = Text Height(text$ as string)
intVoidFunc dbTextStyle; // integer = Text Style()
intStringFunc dbTextWidth; // integer = Text Width(text$ as string)
string2Func dbUpper; // string$ = Upper$(string$ as string)
// input
voidIntFunc dbChangeMouse; // Change Mouse mouseNumber as integer
voidFunc dbClearEntryBuffer; // Clear Entry Buffer
intVoidFunc dbControlDeviceX; // integer = Control Device X()
intVoidFunc dbControlDeviceY; // integer = Control Device Y()
intVoidFunc dbControlDeviceZ; // integer = Control Device Z()
intVoidFunc dbControlKey; // integer = ControlKey()
string3Func dbGetRegistryString; // string$ = Get Registry$(folderName$ as string, keyName$ as string)
string3Func dbWriteStringToRegistry; // Write String To Registry folderName$ as string, keyName$ as string, string$ as string
intVoidFunc dbDownKey; // integer = DownKey()
intVoidFunc dbEscapeKey; // integer = EscapeKey()
voidIntFloatIntFunc dbForceAngle; // Force Angle magnitudeValue as integer, angleValue# as float, delayValue as integer
voidFunc dbForceAutoCenterOff; // Force Auto Center Off
voidFunc dbForceAutoCenterOn; // Force Auto Center On
voidFloat2Func dbForceChainsaw; // Force Chainsaw magnitudeValue# as float, delayValue# as float
voidFloatFunc dbForceDown; // Force Down magnitudeValue# as float
voidFloat2Func dbForceImpact; // Force Impact magnitudeValue# as float, delayValue# as float
voidFloatFunc dbForceLeft; // Force Left magnitudeValue# as float
voidFunc dbForceNoEffect; // Force No Effect
voidFloatFunc dbForceRight; // Force Right
voidFloat2Func dbForceShoot; // Force Shoot magnitudeValue# as float, delayValue# as float
voidFloatFunc dbForceUp; // Force Up magnitudeValue# as float
voidFloat2Func dbForceWaterEffect; // Force Water Effect magnitudeValue# as float, delayValue# as float
stringVoidFunc dbGetClipboard; // string$ = Get Clipboard$()
stringVoidFunc dbControlDeviceName; // string$ = Control Device Name$()
stringVoidFunc dbEntry; // string$ = Entry$()
stringIntFunc dbEntryEx; // string$ = Entry$(useBackspace as integer)
intVoidFunc dbMouseClick; // integer = MouseClick()
intVoidFunc dbMouseMoveX; // integer = MouseMoveX()
intVoidFunc dbMouseMoveY; // integer = MouseMoveY()
intVoidFunc dbMouseMoveZ; // integer = MouseMoveZ()
intVoidFunc dbMouseX; // integer = MouseX()
intVoidFunc dbMouseY; // integer = MouseY()
intVoidFunc dbMouseZ; // integer = MouseZ()
intString2Func dbGetRegistry; // integer = Get Registry(folderName$ as string, keyName$ as string)
voidFunc dbHideMouse; // Hide Mouse
//stringVoidFunc dbInkey; // string$ = Inkey$() // Redefinition, my bad
intVoidFunc dbJoystickDown; // integer = Joystick Down()
intVoidFunc dbJoystickFireA; // integer = Joystick Fire A()
intVoidFunc dbJoystickFireB; // integer = Joystick Fire B()
intVoidFunc dbJoystickFireC; // integer = Joystick Fire C()
intVoidFunc dbJoystickFireD; // integer = Joystick Fire D()
int2Func dbJoystickFireX; // integer = Joystick Fire X(buttonNumber as integer)
int2Func dbJoystickHatAngle; // integer = Joystick HAT Angle(hatNumber as integer)
intVoidFunc dbJoystickLeft; // integer = Joystick Left()
intVoidFunc dbJoystickRight; // integer = Joystick Right()
intVoidFunc dbJoystickSliderA; // integer = Joystick Slider A()
intVoidFunc dbJoystickSliderB; // integer = Joystick Slider B()
intVoidFunc dbJoystickSliderC; // integer = Joystick Slider C()
intVoidFunc dbJoystickSliderD; // integer = Joystick Slider D()
intVoidFunc dbJoystickTwistX; // integer = Joystick Twist X()
intVoidFunc dbJoystickTwistY; // integer = Joystick Twist Y()
intVoidFunc dbJoystickTwistZ; // integer = Joystick Twist Z()
intVoidFunc dbJoystickUp; // integer = Joystick Up()
intVoidFunc dbJoystickX; // integer = Joystick X()
intVoidFunc dbJoystickY; // integer = Joystick Y()
intVoidFunc dbJoystickZ; // integer = Joystick Z()
int2Func dbKeyState; // integer = KeyState(keynum as integer)
intVoidFunc dbLeftKey; // integer = Leftkey()
voidFunc dbPerformChecklistForControlDevices; // Perform Checklist For Control Devices
voidInt2Func dbPositionMouse; // Position Mouse x as integer, y as integer
intVoidFunc dbReturnKey; // integer = ReturnKey()
intVoidFunc dbRightKey; // integer = RightKey()
intVoidFunc dbScanCode; // integer = ScanCode()
voidStringFunc dbSetControlDevice; // Set Control Device deviceName$ as string
voidStringIntFunc dbSetControlDeviceEx; // Set Control Device deviceName$ as string, duplicateIndex as integer
intVoidFunc dbShiftKey; // integer = ShiftKey()
voidFunc dbShowMouse; // Show Mouse
intVoidFunc dbSpaceKey; // integer = SpaceKey()
intVoidFunc dbUpKey; // integer = UpKey()
voidStringFunc dbWriteToClipboard; // Write To Clipboard string$ as string
// file
stringVoidFunc dbAppName; // string$ = Appname$()
voidFunc dbPerformChecklistForDrives;// Drivelist
voidFunc dbPerformChecklistForFiles; // Filelist
voidIntFunc dbCloseFile; // Close File num
voidString2Func dbCopyFile; // Copy File source$, dest$
voidStringFunc dbDeleteDir; // Delete Directory dir$
voidFunc dbDir; // Dir
voidFunc dbDriveList; // Drive List
voidString3 dbExecuteFile; // Execute File file$, commandline$, directory$
int2Func dbFileEnd; // endOfFile = File End(fileNum)
intStringFunc dbFileExist; // fileExists = File Exist(fileName$)
int2Func dbFileOpen; // fileIsOpen = File Open(fileNum)
intStringFunc dbFileSize; // sizeOfFile = File Size(fileName$)
voidFunc dbFindFirst; // Find First
voidFunc dbFindNext; // Find Next
stringVoidFunc dbGetDir; // dir$ = Get Dir$()
stringVoidFunc dbGetFileCreation; // creationDate$ = Get File Creation$()
stringVoidFunc dbGetFileDate; // date$ = Get File Date$()
stringVoidFunc dbGetFileName; // name$ = Get File Name$()
intVoidFunc dbGetFileType; // fileType = Get File Type()
voidStringFunc dbMakeDir; // Make Directory dirName$
voidStringFunc dbMakeFile; // Make File fileName$
voidInt2Func dbMakeFileFromMemblock; // Make File From Memblock filenum, memblocknum
voidInt2Func dbMakeMemblockFromFile; // Make Memblock From File filenum, memblocknum
voidString2Func dbMoveFile; // Move File source$, dest$
voidIntStringFunc dbOpenToRead; // Open To Read fileNum,name$
voidIntStringFunc dbOpenToWrite; // Open To Write fileNum,name$
intStringFunc dbPathExist; // pathExists = Path Exist(name$)
int2Func dbReadByte; // Read Byte fileNum, byteValueVariable
// Initialize this system
void initDBCommandSystem(void)
{
// -- DBProCoreDll --
DBProCoreDll = LoadLibrary("DBProCore.dll");
dbAlwaysActiveOff = (voidFunc)GetProcAddress(DBProCoreDll,"?AlwaysActiveOff@@YAXXZ");
dbAlwaysActiveOn = (voidFunc)GetProcAddress(DBProCoreDll,"?AlwaysActiveOn@@YAXXZ");
dbCl = (stringVoidFunc)GetProcAddress(DBProCoreDll,"?Cl$@@YAKK@Z");
dbCls = (voidFunc)GetProcAddress(DBProCoreDll,"?Cls@@YAXXZ");
dbDrawSpritesFirst = (voidFunc)GetProcAddress(DBProCoreDll,"?DrawSpritesFirst@@YAXXZ");
dbDrawSpritesLast = (voidFunc)GetProcAddress(DBProCoreDll,"?DrawSpritesLast@@YAXXZ");
dbDrawToBack = (voidFunc)GetProcAddress(DBProCoreDll,"?DrawToBack@@YAXXZ");
dbDrawToFront = (voidFunc)GetProcAddress(DBProCoreDll,"?DrawToFront@@YAXXZ");
dbFastsync = (voidFunc)GetProcAddress(DBProCoreDll,"?FastSync@@YAXXZ");
dbGetDate = (stringVoidFunc)GetProcAddress(DBProCoreDll,"?GetDate$@@YAKK@Z");
dbGetDxVer = (stringVoidFunc)GetProcAddress(DBProCoreDll,"?GetDXVer$@@YAKK@Z");
dbGetGlobPtr = (globstructVoidFunc)GetProcAddress(DBProCoreDll,"?GetGlobPtr@@YAKXZ");
dbGetTime = (stringVoidFunc)GetProcAddress(DBProCoreDll,"?GetTime$@@YAKK@Z");
dbInkey = (stringVoidFunc)GetProcAddress(DBProCoreDll,"?InkeyS@@YAKK@Z");
dbMakeMemory = (dwordIntFunc)GetProcAddress(DBProCoreDll,"?MakeByteMemory@@YAKH@Z");
dbNewXValue = (float4Func)GetProcAddress(DBProCoreDll,"?NewXValueFFFF@@YAKMMM@Z");
dbNewYValue = (float4Func)GetProcAddress(DBProCoreDll,"?NewYValueFFFF@@YAKMMM@Z");
dbNewZValue = (float4Func)GetProcAddress(DBProCoreDll,"?NewZValueFFFF@@YAKMMM@Z");
dbPassBreakOutPtr = (dwordVoidFunc)GetProcAddress(DBProCoreDll,"?PassBreakOutPtr@@YAXPAX@Z");
dbPassCmdLineHandlerPtr = (dwordVoidFunc)GetProcAddress(DBProCoreDll,"?PassCmdLineHandlerPtr@@YAXPAX@Z");
dbPassErrorHandlerPtr = (dwordVoidFunc)GetProcAddress(DBProCoreDll,"?PassErrorHandlerPtr@@YAXPAX@Z");
dbPassEscapePtr = (dwordVoidFunc)GetProcAddress(DBProCoreDll,"?PassEscapePtr@@YAXPAX@Z");
dbPrint = (voidStringFunc)GetProcAddress(DBProCoreDll,"?PrintString@@YAXPAD_N@Z");
dbEnd = (voidFunc)GetProcAddress(DBProCoreDll,"?Quit@@YAKXZ");
dbSetCursor = (voidInt2Func)GetProcAddress(DBProCoreDll,"?SetPrintCursor@@YAXHH@Z");
dbSleep = (voidIntFunc)GetProcAddress(DBProCoreDll,"?SleepL@@YAXH@Z");
dbSync = (voidFunc)GetProcAddress(DBProCoreDll,"?Sync@@YAXXZ");
dbSyncMask = (voidDwordFunc)GetProcAddress(DBProCoreDll,"?SyncMask@@YAXK@Z");
dbSyncOff = (voidFunc)GetProcAddress(DBProCoreDll,"?SyncOff@@YAXXZ");
dbSyncOn = (voidFunc)GetProcAddress(DBProCoreDll,"?SyncOn@@YAXXZ");
dbSyncRate = (voidIntFunc)GetProcAddress(DBProCoreDll,"?SyncRate@@YAXH@Z");
dbSyncSleep = (voidIntFunc)GetProcAddress(DBProCoreDll,"?SyncSleep@@YAXH@Z");
dbTimer = (intVoidFunc)GetProcAddress(DBProCoreDll,"?TimerL@@YAHXZ");
dbWaitKey = (voidFunc)GetProcAddress(DBProCoreDll,"?WaitForKey@@YAXXZ");
dbWaitMouse = (voidFunc)GetProcAddress(DBProCoreDll,"?WaitForMouse@@YAXXZ");
dbWait = (voidIntFunc)GetProcAddress(DBProCoreDll,"?WaitL@@YAXH@Z");
dbWrapValue = (float2Func)GetProcAddress(DBProCoreDll,"?WrapValueFF@@YAKM@Z");
// -- DBProTextDll --
if (gCore->g_Textmade==true)
{
DBProTextDll = gCore->g_Text;
dbAsc = (intStringFunc)GetProcAddress(DBProTextDll,"?Asc@@YAHK@Z");
dbBin = (stringIntFunc)GetProcAddress(DBProTextDll,"?Bin@@YAKKH@Z");
dbCenterText = (voidInt2StringFunc)GetProcAddress(DBProTextDll,"?CenterText@@YAXHHK@Z");
dbChr = (stringIntFunc)GetProcAddress(DBProTextDll,"?Chr@@YAKKH@Z");
dbGetTextHeight = (intStringFunc)GetProcAddress(DBProTextDll,"?GetTextHeight@@YAHPAD@Z");
dbGetTextWidth = (intStringFunc)GetProcAddress(DBProTextDll,"?GetTextWidth@@YAHPAD@Z");
dbHex = (stringIntFunc)GetProcAddress(DBProTextDll,"?Hex@@YAKKH@Z");
dbLeft = (string2IntFunc)GetProcAddress(DBProTextDll,"?Left@@YAKKKH@Z");
dbLen = (intStringFunc)GetProcAddress(DBProTextDll,"?Len@@YAHK@Z");
dbLower = (string2Func)GetProcAddress(DBProTextDll,"?Lower@@YAKKK@Z");
dbMid = (string2IntFunc)GetProcAddress(DBProTextDll,"?Mid@@YAKKKH@Z");
dbPerformChecklistForFonts = (voidFunc)GetProcAddress(DBProTextDll,"?PerformChecklistForFonts@@YAXXZ");
dbRight = (string2IntFunc)GetProcAddress(DBProTextDll,"?Right@@YAKKKH@Z");
dbSetTextFont = (voidStringFunc)GetProcAddress(DBProTextDll,"?SetTextFont@@YAXPADH@Z");
dbSetTextSize = (voidIntFunc)GetProcAddress(DBProTextDll,"?SetTextSize@@YAXH@Z");
dbSetTextToBold = (voidFunc)GetProcAddress(DBProTextDll,"?SetTextToBold@@YAXXZ");
dbSetTextToBoldItalic = (voidFunc)GetProcAddress(DBProTextDll,"?SetTextToBoldItalic@@YAXXZ");
dbSetTextToItalic = (voidFunc)GetProcAddress(DBProTextDll,"?SetTextToItalic@@YAXXZ");
dbSetTextToNormal = (voidFunc)GetProcAddress(DBProTextDll,"?SetTextToNormal@@YAXXZ");
dbSetTextToOpaque = (voidFunc)GetProcAddress(DBProTextDll,"?SetTextToOpaque@@YAXXZ");
dbSetTextToTransparent = (voidFunc)GetProcAddress(DBProTextDll,"?SetTextToTransparent@@YAXXZ");
dbStr = (stringFloatFunc)GetProcAddress(DBProTextDll,"?Str@@YAKKH@Z");
dbText = (voidInt2StringFunc)GetProcAddress(DBProTextDll,"?Text@@YAXHHPAD@Z");
dbTextBackgroundType = (intVoidFunc)GetProcAddress(DBProTextDll,"?TextBackgroundType@@YAHXZ");
dbTextFont = (stringVoidFunc)GetProcAddress(DBProTextDll,"?TextFont@@YAKK@Z");
dbTextHeight = (intStringFunc)GetProcAddress(DBProTextDll,"?TextHeight@@YAHK@Z");
dbTextStyle = (intVoidFunc)GetProcAddress(DBProTextDll,"?TextStyle@@YAHXZ");
dbTextWidth = (intStringFunc)GetProcAddress(DBProTextDll,"?TextWidth@@YAHK@Z");
dbUpper = (string2Func)GetProcAddress(DBProTextDll,"?Upper@@YAKKK@Z");
}
// -- DBProInputDll --
if (gCore->g_Inputmade==true)
{
DBProInputDll = gCore->g_Input;
dbChangeMouse = (voidIntFunc)GetProcAddress(DBProInputDll,"?ChangeMouse@@YAXH@Z");
dbClearEntryBuffer = (voidFunc)GetProcAddress(DBProInputDll,"?ClearEntryBuffer@@YAXXZ");
dbControlDeviceX = (intVoidFunc)GetProcAddress(DBProInputDll,"?ControlDeviceX@@YAHXZ");
dbControlDeviceY = (intVoidFunc)GetProcAddress(DBProInputDll,"?ControlDeviceY@@YAHXZ");
dbControlDeviceZ = (intVoidFunc)GetProcAddress(DBProInputDll,"?ControlDeviceZ@@YAHXZ");
dbControlKey = (intVoidFunc)GetProcAddress(DBProInputDll,"?ControlKey@@YAHXZ");
dbGetRegistryString = (string3Func)GetProcAddress(DBProInputDll,"?CoreReadStringFromRegistry@@YAXPAD00@Z"); // <- Woops
dbWriteStringToRegistry = (string3Func)GetProcAddress(DBProInputDll,"?CoreWriteStringToRegistry@@YA_NPAD00@Z"); // <- Woops
dbDownKey = (intVoidFunc)GetProcAddress(DBProInputDll,"?DownKey@@YAHXZ");
dbEscapeKey = (intVoidFunc)GetProcAddress(DBProInputDll,"?EscapeKey@@YAHXZ");
dbForceAngle = (voidIntFloatIntFunc)GetProcAddress(DBProInputDll,"?ForceAngle@@YAXHHH@Z");
dbForceAutoCenterOff = (voidFunc)GetProcAddress(DBProInputDll,"?ForceAutoCenterOff@@YAXXZ");
dbForceAutoCenterOn = (voidFunc)GetProcAddress(DBProInputDll,"?ForceAutoCenterOn@@YAXXZ");
dbForceChainsaw = (voidFloat2Func)GetProcAddress(DBProInputDll,"?ForceChainsaw@@YAXHH@Z");
dbForceDown = (voidFloatFunc)GetProcAddress(DBProInputDll,"?ForceDown@@YAXH@Z");
dbForceImpact = (voidFloat2Func)GetProcAddress(DBProInputDll,"?ForceImpact@@YAXHH@Z");
dbForceLeft = (voidFloatFunc)GetProcAddress(DBProInputDll,"?ForceLeft@@YAXH@Z");
dbForceNoEffect = (voidFunc)GetProcAddress(DBProInputDll,"?ForceNoEffect@@YAXXZ");
dbForceRight = (voidFloatFunc)GetProcAddress(DBProInputDll,"?ForceRight@@YAXH@Z");
dbForceShoot = (voidFloat2Func)GetProcAddress(DBProInputDll,"?ForceShoot@@YAXHH@Z");
dbForceUp = (voidFloatFunc)GetProcAddress(DBProInputDll,"?ForceUp@@YAXH@Z");
dbForceWaterEffect = (voidFloat2Func)GetProcAddress(DBProInputDll,"?ForceWaterEffect@@YAXHH@Z");
dbGetClipboard = (stringVoidFunc)GetProcAddress(DBProInputDll,"?GetClipboard@@YAKK@Z");
dbControlDeviceName = (stringVoidFunc)GetProcAddress(DBProInputDll,"?GetControlDevice@@YAKK@Z");
dbEntry = (stringVoidFunc)GetProcAddress(DBProInputDll,"?GetEntry@@YAKK@Z");
dbEntryEx = (stringIntFunc)GetProcAddress(DBProInputDll,"?GetEntryEx@@YAKKH@Z");
dbMouseClick = (intVoidFunc)GetProcAddress(DBProInputDll,"?GetMouseClick@@YAHXZ");
dbMouseMoveX = (intVoidFunc)GetProcAddress(DBProInputDll,"?GetMouseMoveX@@YAHXZ");
dbMouseMoveY = (intVoidFunc)GetProcAddress(DBProInputDll,"?GetMouseMoveY@@YAHXZ");
dbMouseMoveZ = (intVoidFunc)GetProcAddress(DBProInputDll,"?GetMouseMoveZ@@YAHXZ");
dbMouseX = (intVoidFunc)GetProcAddress(DBProInputDll,"?GetMouseX@@YAHXZ");
dbMouseY = (intVoidFunc)GetProcAddress(DBProInputDll,"?GetMouseY@@YAHXZ");
dbMouseZ = (intVoidFunc)GetProcAddress(DBProInputDll,"?GetMouseZ@@YAHXZ");
dbGetRegistry = (intString2Func)GetProcAddress(DBProInputDll,"?GetRegistry@@YAHPAD0@Z");
//?GetRegistryS@@YAKKPAD0@Z <- Woops :( I perhaps used the wrong functions to write and read from the registry.. Uncommon functions for a plugin though
dbHideMouse = (voidFunc)GetProcAddress(DBProInputDll,"?HideMouse@@YAXXZ");
//dbInkey = (stringVoidFunc)GetProcAddress(DBProInputDll,"?InKey@@YADXZ");
dbJoystickDown = (intVoidFunc)GetProcAddress(DBProInputDll,"?JoystickDown@@YAHXZ");
dbJoystickFireA = (intVoidFunc)GetProcAddress(DBProInputDll,"?JoystickFireA@@YAHXZ");
dbJoystickFireB = (intVoidFunc)GetProcAddress(DBProInputDll,"?JoystickFireB@@YAHXZ");
dbJoystickFireC = (intVoidFunc)GetProcAddress(DBProInputDll,"?JoystickFireC@@YAHXZ");
dbJoystickFireD = (intVoidFunc)GetProcAddress(DBProInputDll,"?JoystickFireD@@YAHXZ");
dbJoystickFireX = (int2Func)GetProcAddress(DBProInputDll,"?JoystickFireXL@@YAHH@Z");
dbJoystickHatAngle = (int2Func)GetProcAddress(DBProInputDll,"?JoystickHatAngle@@YAHH@Z");
dbJoystickLeft = (intVoidFunc)GetProcAddress(DBProInputDll,"?JoystickLeft@@YAHXZ");
dbJoystickRight = (intVoidFunc)GetProcAddress(DBProInputDll,"?JoystickRight@@YAHXZ");
dbJoystickSliderA = (intVoidFunc)GetProcAddress(DBProInputDll,"?JoystickSliderA@@YAHXZ");
dbJoystickSliderB = (intVoidFunc)GetProcAddress(DBProInputDll,"?JoystickSliderB@@YAHXZ");
dbJoystickSliderC = (intVoidFunc)GetProcAddress(DBProInputDll,"?JoystickSliderC@@YAHXZ");
dbJoystickSliderD = (intVoidFunc)GetProcAddress(DBProInputDll,"?JoystickSliderD@@YAHXZ");
dbJoystickTwistX = (intVoidFunc)GetProcAddress(DBProInputDll,"?JoystickTwistX@@YAHXZ");
dbJoystickTwistY = (intVoidFunc)GetProcAddress(DBProInputDll,"?JoystickTwistY@@YAHXZ");
dbJoystickTwistZ = (intVoidFunc)GetProcAddress(DBProInputDll,"?JoystickTwistZ@@YAHXZ");
dbJoystickDown = (intVoidFunc)GetProcAddress(DBProInputDll,"?JoystickUp@@YAHXZ");
dbJoystickX = (intVoidFunc)GetProcAddress(DBProInputDll,"?JoystickX@@YAHXZ");
dbJoystickY = (intVoidFunc)GetProcAddress(DBProInputDll,"?JoystickY@@YAHXZ");
dbJoystickZ = (intVoidFunc)GetProcAddress(DBProInputDll,"?JoystickZ@@YAHXZ");
dbKeyState = (int2Func)GetProcAddress(DBProInputDll,"?KeyState@@YAHH@Z");
dbLeftKey = (intVoidFunc)GetProcAddress(DBProInputDll,"?LeftKey@@YAHXZ");
dbPerformChecklistForControlDevices = (voidFunc)GetProcAddress(DBProInputDll,"?PerformChecklistControlDevices@@YAXXZ");
dbPositionMouse = (voidInt2Func)GetProcAddress(DBProInputDll,"?PositionMouse@@YAXHH@Z");
dbReturnKey = (intVoidFunc)GetProcAddress(DBProInputDll,"?ReturnKey@@YAHXZ");
dbRightKey = (intVoidFunc)GetProcAddress(DBProInputDll,"?RightKey@@YAHXZ");
dbScanCode = (intVoidFunc)GetProcAddress(DBProInputDll,"?ScanCode@@YAHXZ");
dbSetControlDevice = (voidStringFunc)GetProcAddress(DBProInputDll,"?SetControlDevice@@YAXK@Z");
dbSetControlDeviceEx = (voidStringIntFunc)GetProcAddress(DBProInputDll,"?SetControlDeviceEx@@YAXKH@Z");
dbShiftKey = (intVoidFunc)GetProcAddress(DBProInputDll,"?ShiftKey@@YAHXZ");
dbShowMouse = (voidFunc)GetProcAddress(DBProInputDll,"?ShowMouse@@YAXXZ");
dbSpaceKey = (intVoidFunc)GetProcAddress(DBProInputDll,"?SpaceKey@@YAHXZ");
dbUpKey = (intVoidFunc)GetProcAddress(DBProInputDll,"?UpKey@@YAHXZ");
dbWriteToClipboard = (voidStringFunc)GetProcAddress(DBProInputDll,"?WriteToClipboard@@YAXPAD@Z");
}
// -- DBProFileDll --
if (gCore->g_Filemade==true)
{
DBProFileDll = gCore->g_File;
dbAppName = (stringVoidFunc)GetProcAddress(DBProFileDll,"?Appname@@YAKK@Z");
dbPerformChecklistForDrives = (voidFunc)GetProcAddress(DBProFileDll,"?ChecklistForDrives@@YAXXZ");
dbPerformChecklistForFiles = (voidFunc)GetProcAddress(DBProFileDll,"?ChecklistForFiles@@YAXXZ");
dbCloseFile = (voidIntFunc)GetProcAddress(DBProFileDll,"?CloseFile@@YAXH@Z");
dbCopyFile = (voidString2Func)GetProcAddress(DBProFileDll,"?CopyFileA@@YAXKK@Z");
dbDeleteDir = (voidStringFunc)GetProcAddress(DBProFileDll,"?DeleteDir@@YAXK@Z");
dbDir = (voidFunc)GetProcAddress(DBProFileDll,"?Dir@@YAXXZ");
dbDriveList = (voidFunc)GetProcAddress(DBProFileDll,"?DriveList@@YAXXZ");
dbExecuteFile = (voidString3Func)GetProcAddress(DBProFileDll,"?ExecuteFile@@YAXKKK@Z");
dbFileEnd = (int2Func)GetProcAddress(DBProFileDll,"?FileEnd@@YAHH@Z");
dbFileExist = (intStringFunc)GetProcAddress(DBProFileDll,"?FileExist@@YAHK@Z");
dbFileOpen = (int2Func)GetProcAddress(DBProFileDll,"?FileOpen@@YAHH@Z");
dbFileSize = (intStringFunc)GetProcAddress(DBProFileDll,"?FileSize@@YAHK@Z");
dbFindFirst = (voidFunc)GetProcAddress(DBProFileDll,"?FindFirst@@YAXXZ");
dbFindNext = (voidFunc)GetProcAddress(DBProFileDll,"?FindNext@@YAXXZ");
dbGetDir = (stringVoidFunc)GetProcAddress(DBProFileDll,"?GetDir@@YAKK@Z");
dbGetFileCreation = (stringVoidFunc)GetProcAddress(DBProFileDll,"?GetFileCreation@@YAKK@Z");
dbGetFileDate = (stringVoidFunc)GetProcAddress(DBProFileDll,"?GetFileDate@@YAKK@Z");
dbGetFileName = (stringVoidFunc)GetProcAddress(DBProFileDll,"?GetFileName@@YAKK@Z");
dbGetFileType = (intVoidFunc)GetProcAddress(DBProFileDll,"?GetFileType@@YAHXZ");
dbMakeDir = (voidStringFunc)GetProcAddress(DBProFileDll,"?MakeDir@@YAXK@Z");
dbMakeFile = (voidStringFunc)GetProcAddress(DBProFileDll,"?MakeFile@@YAXK@Z");
dbMakeFileFromMemblock = (voidInt2Func)GetProcAddress(DBProFileDll,"?MakeFileFromMemblock@@YAXHH@Z");
dbMakeMemblockFromFile = (voidInt2Func)GetProcAddress(DBProFileDll,"?MakeMemblockFromFile@@YAXHH@Z");
dbMoveFile = (voidString2Func)GetProcAddress(DBProFileDll,"?MoveFileA@@YAXKK@Z");
dbOpenToRead = (voidIntStringFunc)GetProcAddress(DBProFileDll,"?OpenToRead@@YAXHK@Z");
dbOpenToWrite = (voidIntStringFunc)GetProcAddress(DBProFileDll,"?OpenToWrite@@YAXHK@Z");
dbPathExist = (intStringFunc)GetProcAddress(DBProFileDll,"?PathExist@@YAHK@Z");
dbReadByte = (int2Func)GetProcAddress(DBProFileDll,"?ReadByte@@YAHH@Z");
}
}
"
I tried to create some myself. I go some to work, but some didn't work.