|
|
1.1 ! root 1: /**************************************************************************** ! 2: * ! 3: * sndblst.h ! 4: * ! 5: * Copyright (c) 1991-1992 Microsoft Corporation. All Rights Reserved. ! 6: * ! 7: ***************************************************************************/ ! 8: ! 9: #include <soundcfg.h> ! 10: ! 11: #define DRIVER_VERSION 0x0101 ! 12: #define MAX_ERR_STRING 300 /* max length of string table errors */ ! 13: #define DLG_CONFIG 42 /* dialog box resource id */ ! 14: ! 15: #define DSP_VERSION_REQD 0x0100 /* DSP version required for driver */ ! 16: #define DSP_VERSION_PRO 0x0300 /* DSP version for the Pro card */ ! 17: ! 18: #define SOUND_DEF_INT 7 /* Default interrupt */ ! 19: #define SOUND_DEF_PORT 0x220 /* Default port */ ! 20: ! 21: /**************************************************************************** ! 22: ! 23: typedefs ! 24: ! 25: ***************************************************************************/ ! 26: ! 27: typedef struct { ! 28: DWORD Port; // Port ! 29: DWORD Int; // Interrupt ! 30: DWORD DMAChannel; // DMA Channel number ! 31: } SB_CONFIG; ! 32: ! 33: ! 34: /**************************************************************************** ! 35: ! 36: strings - all non-localized strings can be found in initc.c ! 37: ! 38: ***************************************************************************/ ! 39: ! 40: #ifndef NOSTR ! 41: extern TCHAR STR_DRIVERNAME[]; ! 42: extern TCHAR STR_PRODUCTNAME[]; ! 43: #endif /* NOSTR */ ! 44: ! 45: /* Error strings... */ ! 46: #define IDS_ERRTWODRIVERS 1 ! 47: #define IDS_ERRMCANOTSUPPORTED 2 ! 48: #define IDS_ERRBADPORT 4 ! 49: #define IDS_ERRBADVERSION 5 ! 50: #define IDS_ERRBADINT 6 ! 51: #define IDS_ERRINTINUSE 7 ! 52: ! 53: #define IDS_ERRBADCONFIG 16 ! 54: #define IDS_WARNPROCARD 17 ! 55: #define IDS_WARNTHUNDER 18 ! 56: #define IDS_FAILREMOVE 19 ! 57: #define IDS_INSUFFICIENT_PRIVILEGE 20 ! 58: #define IDS_WARNPROSPEC 21 ! 59: ! 60: /**************************************************************************** ! 61: ! 62: globals ! 63: ! 64: ***************************************************************************/ ! 65: ! 66: /* in initc.c */ ! 67: HANDLE ghModule; /* our module handle */ ! 68: REG_ACCESS RegAccess; /* Handles to registry and services */ ! 69: BOOL bInstall; /* Tell config we're on an install */ ! 70: ! 71: /*************************************************************************** ! 72: ! 73: prototypes ! 74: ! 75: ***************************************************************************/ ! 76: ! 77: /* config.c */ ! 78: extern int Config(HWND hWnd, HANDLE hInstance); ! 79: extern LRESULT ConfigRemove(HWND hDlg); ! 80: extern int ConfigDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam); ! 81: extern void ConfigErrorMsgBox(HWND hDlg, UINT StringId); ! 82: ! 83: /* drvproc.c */ ! 84: extern LRESULT DriverProc(DWORD dwDriverID, HDRVR hDriver, UINT uiMessage, LPARAM lParam1, LPARAM lParam2); ! 85: ! 86: /* initc.c */ ! 87: extern DWORD ConfigGetDMAChannel(void); ! 88: extern DWORD ConfigGetIRQ(void); ! 89: extern DWORD ConfigGetPortBase(void); ! 90: ! 91: /**************************************************************************** ! 92: ! 93: Configuration support ! 94: ! 95: ***************************************************************************/ ! 96: ! 97: #define IDC_FIRSTINT 0x100 ! 98: #define IDC_2 0x100 ! 99: #define IDC_3 0x101 ! 100: #define IDC_5 0x102 ! 101: #define IDC_7 0x103 ! 102: #define IDC_10 0x104 ! 103: #define IDC_LASTINT 0x104 ! 104: ! 105: #define IDC_FIRSTPORT 0x201 ! 106: #define IDC_210 0x201 ! 107: #define IDC_220 0x202 ! 108: #define IDC_230 0x203 ! 109: #define IDC_240 0x204 ! 110: #define IDC_250 0x205 ! 111: #define IDC_260 0x206 ! 112: #define IDC_LASTPORT 0x206 ! 113: ! 114: #define IDC_PORTGRP 0x401 ! 115: #define IDC_INTGRP 0x402 ! 116: ! 117: /**************************************************************************** ! 118: ! 119: Debug output ! 120: ! 121: ***************************************************************************/ ! 122: #ifdef DEBUG ! 123: extern WORD wDebugLevel; /* debug level */ ! 124: ! 125: #define D1(sz) if (wDebugLevel >= 1) (OutputDebugStr(STR_CRLF),OutputDebugStr(sz)) ! 126: #define D2(sz) if (wDebugLevel >= 2) (OutputDebugStr(STR_SPACE),OutputDebugStr(sz)) ! 127: #define D3(sz) if (wDebugLevel >= 3) (OutputDebugStr(STR_SPACE),OutputDebugStr(sz)) ! 128: #define D4(sz) if (wDebugLevel >= 4) (OutputDebugStr(STR_SPACE),OutputDebugStr(sz)) ! 129: #else ! 130: #define D1(sz) 0 ! 131: #define D2(sz) 0 ! 132: #define D3(sz) 0 ! 133: #define D4(sz) 0 ! 134: #endif ! 135:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.