|
|
1.1 ! root 1: //*************************************************************************** ! 2: // ! 3: // Microsoft NT Remote Access Service ! 4: // ! 5: // Copyright (C) 1992-93 Microsft Corporation. All rights reserved. ! 6: // ! 7: // Filename: device.h ! 8: // ! 9: // Revision History: ! 10: // ! 11: // Aug 11, 1992 J. Perry Hannah Created ! 12: // ! 13: // ! 14: // Description: This file contains function prototypes and typedefs ! 15: // used by the interface between RAS Manager and the ! 16: // device DLLs, such as RASMXS.DLL. This header file ! 17: // will be used by RASMAN. ! 18: // ! 19: //**************************************************************************** ! 20: ! 21: ! 22: #ifndef _RASDEVICEDLL_ ! 23: #define _RASDEVICEDLL_ ! 24: ! 25: ! 26: //* RASMXS API Prototypes ************************************************** ! 27: // ! 28: // Apps should define RASMXS_STATIC_LINK to get the appropriate function ! 29: // prototypes for linking statically with the RASMXS DLL. ! 30: // ! 31: // Apps should define RASMXS_DYNAMIC_LINK to get the appropriate function ! 32: // typedefs for linking dynamically with the RASMXS DLL. ! 33: // ! 34: ! 35: #ifdef RASMXS_STATIC_LINK ! 36: ! 37: DWORD APIENTRY DeviceEnum(char *pszDeviceType, ! 38: WORD *pcEntries, ! 39: BYTE *pBuffer, ! 40: WORD *pwSize); ! 41: ! 42: ! 43: DWORD APIENTRY DeviceGetInfo(HANDLE hIOPort, ! 44: char *pszDeviceType, ! 45: char *pszDeviceName, ! 46: BYTE *pInfo, ! 47: WORD *pwSize); ! 48: ! 49: ! 50: DWORD APIENTRY DeviceSetInfo(HANDLE hIOPort, ! 51: char *pszDeviceType, ! 52: char *pszDeviceName, ! 53: DEVICEINFO *pInfo); ! 54: ! 55: ! 56: DWORD APIENTRY DeviceConnect(HANDLE hIOPort, ! 57: char *pszDeviceType, ! 58: char *pszDeviceName, ! 59: HANDLE hNotifier); ! 60: ! 61: ! 62: DWORD APIENTRY DeviceListen(HANDLE hIOPort, ! 63: char *pszDeviceType, ! 64: char *pszDeviceName, ! 65: HANDLE hNotifier); ! 66: ! 67: ! 68: VOID APIENTRY DeviceDone(HANDLE hIOPort); ! 69: ! 70: ! 71: DWORD APIENTRY DeviceWork(HANDLE hIOPort, ! 72: HANDLE hNotifier); ! 73: ! 74: #endif // RASMXS_STATIC_LINK ! 75: ! 76: ! 77: ! 78: ! 79: #ifdef RASMXS_DYNAMIC_LINK ! 80: ! 81: typedef DWORD (APIENTRY * DeviceEnum_t)(char*, WORD*, BYTE*, WORD*); ! 82: ! 83: typedef DWORD (APIENTRY * DeviceGetInfo_t)(HANDLE, char*, char*, BYTE*, WORD*); ! 84: ! 85: typedef DWORD (APIENTRY * DeviceSetInfo_t)(HANDLE, char*, char*, ! 86: RASMAN_DEVICEINFO*); ! 87: ! 88: typedef DWORD (APIENTRY * DeviceConnect_t)(HANDLE, char*, char*, HANDLE); ! 89: ! 90: typedef DWORD (APIENTRY * DeviceListen_t)(HANDLE, char*, char*, HANDLE); ! 91: ! 92: typedef DWORD (APIENTRY * DeviceDone_t)(HANDLE); ! 93: ! 94: typedef DWORD (APIENTRY * DeviceWork_t)(HANDLE, HANDLE); ! 95: ! 96: #endif // RASMXS_DYNAMIC_LINK ! 97: ! 98: ! 99: ! 100: ! 101: #endif // _RASDEVICEDLL_
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.