vmmodulebase.cpp

来自「VideoMan is a very easy image acquisitio」· C++ 代码 · 共 60 行

CPP
60
字号
#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include <windows.h>

#include "VideoManInputFormat.h"
#include "VideoInput.h"

BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
					 )
{
	switch (ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH:
		break;
	case DLL_THREAD_ATTACH:
		break;
	case DLL_THREAD_DETACH:
		break;
	case DLL_PROCESS_DETACH:		
		break;
	}

    return TRUE;
}

extern "C" __declspec(dllexport) VideoInput *initVideoInput( inputIdentification device, VideoManInputFormat *format );

VideoInput *initVideoInput( inputIdentification device, VideoManInputFormat *format )
{
	

 	return NULL;	
}

extern "C" __declspec(dllexport) void getAvailableDevices( std::vector<inputIdentification> &deviceList );

void getAvailableDevices( std::vector<inputIdentification> &deviceList )
{
	
}


extern "C" __declspec(dllexport) void getIdentifiers( std::vector< std::string > &identifierList );
void getIdentifiers( std::vector< std::string > &identifierList )
{
	identifierList.push_back( "MODULENAME_DEVICE_ID" );
}

extern "C" __declspec(dllexport) std::string checkVersion( );
std::string checkVersion( )
{
	#ifdef _DEBUG
		return "DEBUG" ;			
	#endif
	#ifdef NDEBUG
		return "RELEASE";			
	#endif
}

⌨️ 快捷键说明

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