
Programming Manual
3
SDK Functions
When user wants to use SDK to develop their own program, they should link DLL file or LIB file,
and include header file SYSAPIAX.H.
There are two examples to show how to use LIB file and DLL file on their project. We will use
Visual Studio 2005 to explain.
Example 1: Using LIB file.
At first you should include sysapiax.lib in your project.
#include "Sysapiax.h"
main()
{
. . . . .
SetBacklightPWM(100, 100);
. . . . .
}
Example 2: Using DLL file.
HINSTANCE dllHandle = NULL;
typedef DWORD (_stdcall *pfnSetBacklightPWM)(int nACPowerPercent, int
nBatteryPercent);
pfnSetBacklightPWM
m_SetBacklightPWM;
main()
{
dllHandle = LoadLibrary(L"SYSAPIAX.dll");
m_SetBacklightPWM = (pfnSetBacklightPWM) ::GetProcAddress(dllHandle,
_T("SetBacklightPWM"));
m_SetBacklightPWM(0, 0);
FreeLibrary(dllHandle);
}
Summary of Contents for PA-60
Page 1: ...PA 60 Mobile Computer Programming Manual DOC NO UM PA605 02 June 2012 Version 1 0 ...
Page 57: ...Programming Manual 53 Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...
Page 72: ...Programming Manual 68 Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...
Page 91: ...Programming Manual 87 Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...