Sha256: e028b16e74fef1bcad82b1f15e2412e5c435880f440585428dc2d703c2941f61

Contents?: true

Size: 1.42 KB

Versions: 28

Compression:

Stored size: 1.42 KB

Contents

#pragma once
#include <windows.h>
#include "RcmCAPI.h"

//  Dynamically Loading the RCM DLL
//  Definitions of Methods exported from the EMDK RCM
#define RCM_DLL L"Rcm2Api32.dll"	///<  Name of the RCM Library
typedef DWORD (WINAPI* LPFN_RCM_OPEN_T)	(void);
typedef DWORD (WINAPI* LPFN_RCM_GETSMARTBATTERYSTATUS_T)(PSMART_BATTERY_STATUS pStatus);
typedef DWORD (WINAPI* LPFN_RCM_REGISTERTRIGGEREVENT_T)	(DWORD dwTriggerMask, BOOL bExclusive, LPTSTR lpszEventName, LPHANDLE lphHandle);
typedef DWORD (WINAPI* LPFN_RCM_DEREGISTERTRIGGER_T)	(HANDLE);
typedef DWORD (WINAPI* LPFN_RCM_GETTRIGGERSTATUS_T)		(LPDWORD);
typedef DWORD (WINAPI* LPFN_RCM_GETUNIQUEUNITIDEX_T)	(LPUNITID_EX lpUnitIdEx);

class CRcmLoader
{
public:

	HMODULE	m_hRcmDLL;													///<  HMODULE of the loaded EMDK RCM DLL
	LPFN_RCM_OPEN_T						lpfn_RCM_Open;					///<  Function pointer to EMDK Rcm API
	LPFN_RCM_GETSMARTBATTERYSTATUS_T	lpfn_RCM_GetSmartBatteryStatus;	///<  Function pointer to EMDK Rcm API
	LPFN_RCM_REGISTERTRIGGEREVENT_T		lpfn_RCM_RegisterTriggerEvent;	///<  Function pointer to EMDK Rcm API
	LPFN_RCM_DEREGISTERTRIGGER_T		lpfn_RCM_DeregisterTrigger;		///<  Function pointer to EMDK Rcm API
	LPFN_RCM_GETTRIGGERSTATUS_T			lpfn_RCM_GetTriggerStatus;		///<  Function pointer to EMDK Rcm API
	LPFN_RCM_GETUNIQUEUNITIDEX_T		lpfn_RCM_GetUniqueUnitIdEx;		///<  Function pointer to EMDK Rcm API

	CRcmLoader();
	~CRcmLoader();
	
	BOOL LoadRcmDLL();
	BOOL UnloadRcmDLL();

};

Version data entries

28 entries across 14 versions & 1 rubygems

Version Path
rhodes-7.6.0 neon/Helium/HeliumForWindows/Implementation/Common/Private/RCMLoader.h
rhodes-7.6.0 lib/commonAPI/hardwarekeys/ext/platform/wm/src/RCMLoader.h
rhodes-7.5.1 lib/commonAPI/hardwarekeys/ext/platform/wm/src/RCMLoader.h
rhodes-7.5.1 neon/Helium/HeliumForWindows/Implementation/Common/Private/RCMLoader.h
rhodes-7.4.1 neon/Helium/HeliumForWindows/Implementation/Common/Private/RCMLoader.h
rhodes-7.4.1 lib/commonAPI/hardwarekeys/ext/platform/wm/src/RCMLoader.h
rhodes-7.1.17 lib/commonAPI/hardwarekeys/ext/platform/wm/src/RCMLoader.h
rhodes-7.1.17 neon/Helium/HeliumForWindows/Implementation/Common/Private/RCMLoader.h
rhodes-6.2.0 neon/Helium/HeliumForWindows/Implementation/Common/Private/RCMLoader.h
rhodes-6.2.0 lib/commonAPI/hardwarekeys/ext/platform/wm/src/RCMLoader.h
rhodes-6.0.11 lib/commonAPI/hardwarekeys/ext/platform/wm/src/RCMLoader.h
rhodes-6.0.11 neon/Helium/HeliumForWindows/Implementation/Common/Private/RCMLoader.h
rhodes-5.5.18 neon/Helium/HeliumForWindows/Implementation/Common/Private/RCMLoader.h
rhodes-5.5.18 lib/commonAPI/hardwarekeys/ext/platform/wm/src/RCMLoader.h
rhodes-5.5.17 lib/commonAPI/hardwarekeys/ext/platform/wm/src/RCMLoader.h
rhodes-5.5.17 neon/Helium/HeliumForWindows/Implementation/Common/Private/RCMLoader.h
rhodes-5.5.15 neon/Helium/HeliumForWindows/Implementation/Common/Private/RCMLoader.h
rhodes-5.5.15 lib/commonAPI/hardwarekeys/ext/platform/wm/src/RCMLoader.h
rhodes-5.5.0.22 neon/Helium/HeliumForWindows/Implementation/Common/Private/RCMLoader.h
rhodes-5.5.0.22 lib/commonAPI/hardwarekeys/ext/platform/wm/src/RCMLoader.h