{* Microsoft Flight Simulator 2004 Module Example.
 *
 * Copyright (c) 2004, Cyril Hruscak.
 * You may freely redistribute and/or modify this code provided this copyright
 * notice remains unchanged. Usage of the code is at your own risk. I accept
 * no liability for any possible damage using this code.
 *
 * It shows how to create a module dll ("Modules" directory of the main
 * FS directory) that can be loaded by the FS2004. It also shows how to add
 * a new menu entry to the main flight simulator menu.
 *}

unit module;

interface

{**
 * This is the module's import table definition.
 *}
type
  TIMPORTSentry = packed record
    fnID: Integer;
    fnptr: Pointer;
  end;

  MODULE_IMPORT = packed record
    IMPORTSentry: TIMPORTSentry;
    nullentry: TIMPORTSentry;
  end;

{**
 * This is the module's export table definition
 *}
  TModuleInit = procedure; stdcall;
  TModuleDeinit = procedure; stdcall;

  MODULE_LINKAGE = packed record
    ModuleID: Integer;
    ModuleInit: TModuleInit;
    ModuleDeinit: TModuleDeinit;
    ModuleFlags: Cardinal;
    ModulePriority: Cardinal;
    ModuleVersion: Cardinal;
    ModuleTable: Pointer
  end;

implementation

end.