Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
SKELETON.C
Package: vxdsrc.zip [view]
Upload User: lx1888888
Upload Date: 2007-01-04
Package Size: 136k
Code Size: 2k
Category:
Driver Develop
Development Platform:
Visual C++
- #include <windows.h>
- #include "skeleton.h"
- DEVICECONTEXT Device1 = { 0 };
- DRIVERPARAMS DefaultParams = { 1024 };
- BOOL FAR PASCAL __export SKELETON_ThunkConnect16(LPSTR pszDll16,
- LPSTR pszDll32, WORD hInst, DWORD dwReason);
- BOOL FAR PASCAL __export DllEntryPoint(DWORD dwReason, WORD hInst,
- WORD wDS, WORD wHeapSize, DWORD dwReserved1,
- WORD wReserved2) {
- if (!(SKELETON_ThunkConnect16("SKELETON.DLL", // name of 16-bit DLL
- "SKEL32.DLL", // name of 32-bit DLL
- hInst, dwReason))) {
- return FALSE;
- }
- return TRUE;
- }
- HDEVICE FAR PASCAL _export DeviceOpen( void )
- {
- OutputDebugString( "DeviceOpenn");
- return &Device1;
- }
- int FAR PASCAL _export DeviceClose( HDEVICE hDevice )
- {
- OutputDebugString( "DeviceClosen");
- return 0;
- }
- int FAR PASCAL _export DeviceGetWriteStatus( HDEVICE hDevice, LPWORD pusStatus )
- {
- OutputDebugString( "DeviceGetWriteStatusn");
- return 0;
- }
- int FAR PASCAL _export DeviceGetReadStatus( HDEVICE hDevice, LPWORD pusStatus )
- {
- OutputDebugString( "DeviceGetReadStatusn");
- return 0;
- }
- int FAR PASCAL _export DeviceWrite( HDEVICE hDevice, LPBYTE lpData, LPWORD pcBytes )
- {
- OutputDebugString( "DeviceWriten");
- return 0;
- }
- int FAR PASCAL _export DeviceRead( HDEVICE hDevice, LPBYTE lpData, LPWORD pcBytes )
- {
- OutputDebugString( "DeviceReadn");
- return 0;
- }
- int FAR PASCAL _export DeviceSetDriverParams( HDEVICE hDevice, PDRIVERPARAMS pParms )
- {
- OutputDebugString( "DeviceSetDriverParamsn");
- return 0;
- }
- int FAR PASCAL _export DeviceGetDriverParams( HDEVICE hDevice, PDRIVERPARAMS pParms )
- {
- OutputDebugString( "DeviceGetDriverParamsn");
- return 0;
- }
- int FAR PASCAL _export DeviceGetDriverCapabilities( HDEVICE hDevice, PPDRIVERCAPS ppDriverCaps )
- {
- OutputDebugString( "DeviceGetDriverCapabilitiesn");
- return 0;
- }