<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
André Renato Furtado, <A href="mailto:talk2cod@hotmail.com">talk2cod@hotmail.com</A> <BR>add documentation for exported functions of the win32 batmeter library...<BR>
<BR>
BOOL BatMeterCapabilities(<BR> PUINT *ppuiBatCount<BR>)<BR>
*\ description:<BR> is used to determine if the batmeter lib can run on the host machine. return true on success <BR>
(battery meter can run).<BR> params:<BR> out -> ppuiBatCount - points to a pointer which will be filled in with a pointer to the global battery count.*\<BR>
<BR>
HWND CreateBatMeter(<BR> HWND hWndParent,<BR> HWND hWndFrame,<BR> BOOL bShowMulti,<BR> PBATTERY_STATE pbsComposite<BR>)<BR>
*\ description:<BR> create, fetch data for and draw the batmeter window. returns a handle to the newly created battery meter window on success, null on failure.<BR> param:<BR> hWndParent - parent of the battery meter dialog.<BR> hWndFrame - frame to locate the battery meter dialog.<BR> bShowMulti - display mode (true -> multiple battery).<BR> opt -> pbsComposite - pointer to composite battery state.*\<BR>
<BR>
HWND DestroyBatMeter(HWND hWnd)<BR>
*\ description:<BR> destroy the batmeter window created with CreateBatMeter function. returns the handle of the <BR>
batmeter parent window.<BR> params:<BR> hWnd - handle to the window to be destroyed. *\<BR>
<BR>
BOOL PowerCapabilities()<BR>
*\ description:<BR> is used to determine if the system has any power<BR> management capabilities which require ui support. return true if power management ui should be displayed. *\<BR>
<BR>
BOOL UpdateBatMeter(<BR> HWND hWnd,<BR> BOOL bShowMulti,<BR> BOOL bForceUpdate,<BR> PBATTERY_STATE pbsComposite<BR>)<BR>
*\ description:<BR> this function should be called when the battery meter parent window<BR> receives a WM_POWERBROADCAST, PBT_APMPOWERSTATUSCHANGE message, it will<BR> update the data in the global battery state list. if needed the display<BR> will also be updated.<BR> PARAMETERS:<BR> hWndBatMeter, hwnd of the battery meter dialog<BR> bShowMulti, display mode<BR> bForceUpdate, forces a ui update<BR> opt -> pbsComposite, pointer to composite battery state. *\<BR>
<BR>
WM_POWERBROADCAST == 0x218<BR>
PBT_APMPOWERSTATUSCHANGE == 0xa<BR><br /><hr />Veja mapas e encontre as melhores rotas para fugir do trânsito com o Live Search Maps! <a href='http://www.livemaps.com.br/index.aspx?tr=true' target='_new'>Experimente já!</a></body>
</html>