Data Structures | Functions

mCtrl/version.h File Reference

Retrieving mCtrl version. More...

Go to the source code of this file.

Data Structures

struct  MC_VERSION
 Structure describing MCTRL.DLL version. More...

Functions

void MCTRL_API mcVersion (MC_VERSION *lpVersion)
 Retrieve MCTRL.DLL version.

Detailed Description

Retrieving mCtrl version.

This header provides a functions to retrieve mCtrl version.

A simpler and very straightforward way is to call the function mcVersion.

More generic way is to use a de-facto standard way by calling the function DllGetVersion. MCTRL.DLL exports this function, as a lot of standard DLLs distributed by Microsoft does. Note this function has no declaration in any mCtrl public header, as it is inteded to be used with LoadLibrary only. Prototype of the function looks like this:

 HRESULT MCTRL_API DllGetVersion(DLLVERSIONINFO* pdvi);

The function supports DLLVERSIONINFO as well as DLLVERSIONINFO2 structure. See documentation of the function on MSDN for further info about the function:
http://msdn.microsoft.com/en-us/library/bb776404%28VS.85%29.aspx


Function Documentation

void MCTRL_API mcVersion ( MC_VERSION lpVersion  ) 

Retrieve MCTRL.DLL version.

Parameters:
[out] lpVersion Pointer to the version structure.