Sha256: da73c91fe1999cd929230d5548d571141a9a95b38ce8a58f53dbfa86a18b02bb

Contents?: true

Size: 1.51 KB

Versions: 14

Compression:

Stored size: 1.51 KB

Contents

//  DCC (28/03/2013): This code is lifted without significant modification from RhoElements 1

#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

14 entries across 14 versions & 1 rubygems

Version Path
rhodes-7.6.0 lib/commonAPI/indicators/ext/platform/wm/src/RCMLoader.h
rhodes-7.5.1 lib/commonAPI/indicators/ext/platform/wm/src/RCMLoader.h
rhodes-7.4.1 lib/commonAPI/indicators/ext/platform/wm/src/RCMLoader.h
rhodes-7.1.17 lib/commonAPI/indicators/ext/platform/wm/src/RCMLoader.h
rhodes-6.2.0 lib/commonAPI/indicators/ext/platform/wm/src/RCMLoader.h
rhodes-6.0.11 lib/commonAPI/indicators/ext/platform/wm/src/RCMLoader.h
rhodes-5.5.18 lib/commonAPI/indicators/ext/platform/wm/src/RCMLoader.h
rhodes-5.5.17 lib/commonAPI/indicators/ext/platform/wm/src/RCMLoader.h
rhodes-5.5.15 lib/commonAPI/indicators/ext/platform/wm/src/RCMLoader.h
rhodes-5.5.0.22 lib/commonAPI/indicators/ext/platform/wm/src/RCMLoader.h
rhodes-5.5.2 lib/commonAPI/indicators/ext/platform/wm/src/RCMLoader.h
rhodes-5.5.0.7 lib/commonAPI/indicators/ext/platform/wm/src/RCMLoader.h
rhodes-5.5.0.3 lib/commonAPI/indicators/ext/platform/wm/src/RCMLoader.h
rhodes-5.5.0 lib/commonAPI/indicators/ext/platform/wm/src/RCMLoader.h