Source

doom / src / win32 / win_dll.h

// Emacs style mode select   -*- C++ -*- 
//-----------------------------------------------------------------------------
//
// $Id: win_dll.h 538 2009-09-23 23:24:07Z smite-meister $
//
// Copyright (C) 1998-2000 by DooM Legacy Team.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
//
// $Log: win_dll.h,v $
// Revision 1.3  2001/04/04 20:19:07  judgecutor
// Added support for the 3D Sound
//
// Revision 1.2  2000/02/27 00:42:12  hurdler
// fix CR+LF problem
//
// Revision 1.1.1.1  2000/02/22 20:32:33  hurdler
// Initial import into CVS (v1.29 pr3)
//
//
// DESCRIPTION:
//      load/unload a DLL at run-time
//
//-----------------------------------------------------------------------------


#include <windows.h>

// this is made extern so win_dbg.c can log the load address
// of the dynamically loaded DLL functions
typedef struct loadfunc_s {
    char*   fnName;
    void*   fnPointer;
} loadfunc_t;
extern HINSTANCE  hwdInstance;
extern loadfunc_t hwdFuncTable[];

//for win_dbg.c
extern HINSTANCE hwdInstance;
extern loadfunc_t hwdFuncTable[];

#ifdef HW3SOUND
extern HINSTANCE hwsInstance;
extern loadfunc_t hwsFuncTable[];
#endif

    
HINSTANCE LoadDLL (char* dllName, loadfunc_t* funcTable);
void UnloadDLL (HINSTANCE* pInstance);

BOOL Init3DDriver (char* dllName);
void Shutdown3DDriver (void);

#ifdef HW3SOUND
BOOL Init3DSDriver(char *dllName);
void Shutdown3DSDriver(void);
#endif
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.