⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 skeleton.c

📁 ASM编写调用VxD。 以及VxD编写的科普 源代码
💻 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( "DeviceOpen\n");

	return &Device1;
}

int FAR PASCAL _export DeviceClose( HDEVICE hDevice )
{
	OutputDebugString( "DeviceClose\n");

	return 0;
}

int FAR PASCAL _export DeviceGetWriteStatus( HDEVICE hDevice, LPWORD pusStatus )
{
	OutputDebugString( "DeviceGetWriteStatus\n");

	return 0;
}

int FAR PASCAL _export DeviceGetReadStatus( HDEVICE hDevice, LPWORD pusStatus )
{
	OutputDebugString( "DeviceGetReadStatus\n");

	return 0;
}

int FAR PASCAL _export DeviceWrite( HDEVICE hDevice, LPBYTE lpData, LPWORD pcBytes )
{
	OutputDebugString( "DeviceWrite\n");

	return 0;
}

int FAR PASCAL _export DeviceRead( HDEVICE hDevice, LPBYTE lpData, LPWORD pcBytes )
{
	OutputDebugString( "DeviceRead\n");

	return 0;
}

int FAR PASCAL _export DeviceSetDriverParams( HDEVICE hDevice, PDRIVERPARAMS pParms )
{
	OutputDebugString( "DeviceSetDriverParams\n");

	return 0;
}

int FAR PASCAL _export DeviceGetDriverParams( HDEVICE hDevice, PDRIVERPARAMS pParms )
{
	OutputDebugString( "DeviceGetDriverParams\n");

	return 0;
}

int FAR PASCAL _export DeviceGetDriverCapabilities( HDEVICE hDevice, PPDRIVERCAPS ppDriverCaps )
{
	OutputDebugString( "DeviceGetDriverCapabilities\n");

	return 0;
}




⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -