Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

cpuuidll.c File Reference


Detailed Description

Menues and toolbar buttons for controlling cpu

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

Go to the source code of this file.

Functions

void SetStatusRunning ()
 enables/disables accordant toolbar buttons and menu entries

void SetStatusStopped ()
 enables/disables accordant toolbar buttons and menu entries

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)
 Inits dll data structures.

DLLEXPORT void __cdecl OnMessage (MESSAGEDLLSTRUCT *mds)
 Recieves registered messages from emu6502 application.

DLLEXPORT void __cdecl IOFunc (UINT adr, unsigned char *data, iomode mode)
 IO function mapped into some adress in memory.


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.

HMENU hMenu
 Handle to the main menu bar.

HMENU hCpuMenu
 Handle to the CPU menu.

BOOL Running


Function Documentation

BOOL APIENTRY DllMain HANDLE    hModule,
DWORD    ul_reason_for_call,
LPVOID    lpReserved
 

Entry point of this dll.

Definition at line 36 of file cpuuidll.c.

DLLEXPORT void __cdecl InitDll INITDLLSTRUCT   ids,
INITDLLINFO   idf
 

Inits dll data structures.

This function is called after dll is loaded. You have to implement this function. Useful informations are passed in its parameter. Also create, fill with messages to be catched and return MSGLIST structure.

Parameters:
ids  An INITDLLSTRUCT structure containig informations about calling emu6502 application.
idf  An INITDLLINFO structure which should be filled in this function
Note: if io memory boundaries to be reserved for this plugin are in conflict with some other plugin, previous settings will be overwritten!
Returns :
Filled MSGLIST of messages to be catched and forwarded to this plugin
See also:
OnMessage(MESSAGEDLLSTRUCT* mds) , INITDLLSTRUCT , INITDLLINFO

Definition at line 51 of file cpuuidll.c.

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

IO function mapped into some adress in memory.

Called directly when accesing adress to which is this function bound. Always write this function.

Parameters:
adr  Adress being accessed
data  Byte being read/written
mode  see iomode

Definition at line 214 of file cpuuidll.c.

DLLEXPORT void __cdecl OnMessage MESSAGEDLLSTRUCT   mds
 

Recieves registered messages from emu6502 application.

This function is called by emu6502 when some message event registered by InitDll occures. Implement this function even when you don't want to catch any messages.

Parameters:
mds  A MESSAGEDLLSTRUCT structure contaning informations about incoming message.
See also:
InitDll , MESSAGEDLLSTRUCT

Definition at line 126 of file cpuuidll.c.

void SetStatusRunning  
 

enables/disables accordant toolbar buttons and menu entries

Definition at line 174 of file cpuuidll.c.

void SetStatusStopped  
 

enables/disables accordant toolbar buttons and menu entries

Definition at line 194 of file cpuuidll.c.


Variable Documentation

HMENU hCpuMenu
 

Handle to the CPU menu.

Definition at line 24 of file cpuuidll.c.

HMENU hMenu
 

Handle to the main menu bar.

Definition at line 22 of file cpuuidll.c.

HANDLE hThisModule
 

Handle to instance of this module.

Definition at line 14 of file cpuuidll.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 19 of file cpuuidll.c.

MSGLIST Msgs
 

Contains list of messages to be forwarded to this plugin.

Definition at line 16 of file cpuuidll.c.


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