Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

genericdll.c File Reference


Detailed Description

Template for creating plugins

Definition in file genericdll.c.#include "../dllkit/dllkit.h"
#include "../usrmsgs.h"
#include <stdio.h>
#include <tchar.h>

Go to the source code of this file.

Defines

#define IOSETGET(GVAR, SVAR)

Functions

BOOL APIENTRY DllMain (HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
 Entry point of this dll.

DLLEXPORT void __cdecl InitDll (INITDLLSTRUCT *ids, INITDLLINFO *idi)
DLLEXPORT void __cdecl OnMessage (MESSAGEDLLSTRUCT *mds)
DLLEXPORT void __cdecl IOFunc (UINT adr, unsigned char *data, iomode mode)

Variables

HANDLE hThisModule
 Handle to instance of this module.

MSGLIST Msgs
 Contains list of messages to be forwarded to this plugin.

INITDLLSTRUCT info
 Local copy of a structure passed to this plugin containging various info on the main emu6502 window and application.


Define Documentation

#define IOSETGET GVAR,
SVAR   
 

Value:

if (mode == IOREAD) {   \
                *data = GVAR;   \
        }       \
        else {  \
                SVAR = *data;   \
        }
Maybe useful macro for IOFunc

Definition at line 90 of file genericdll.c.


Function Documentation

BOOL APIENTRY DllMain HANDLE    hModule,
DWORD    ul_reason_for_call,
LPVOID    lpReserved
 

Entry point of this dll.

Definition at line 20 of file genericdll.c.

DLLEXPORT void __cdecl InitDll INITDLLSTRUCT   ids,
INITDLLINFO   idi
 

See also:
InitDll in the dllkit.h

Definition at line 41 of file genericdll.c.

DLLEXPORT void __cdecl IOFunc UINT    adr,
unsigned char *    data,
iomode    mode
 

See also:
InitDll in the dllkit.h

Definition at line 102 of file genericdll.c.

DLLEXPORT void __cdecl OnMessage MESSAGEDLLSTRUCT   mds
 

See also:
OnMessage in the dllkit.h

Definition at line 68 of file genericdll.c.


Variable Documentation

HANDLE hThisModule
 

Handle to instance of this module.

Definition at line 12 of file genericdll.c.

INITDLLSTRUCT info
 

Local copy of a structure passed to this plugin containging various info on the main emu6502 window and application.

Definition at line 17 of file genericdll.c.

MSGLIST Msgs
 

Contains list of messages to be forwarded to this plugin.

Definition at line 14 of file genericdll.c.


Generated on Fri Sep 6 18:32:15 2002 for Emu6502 by doxygen1.2.17