<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>&nbsp; <BR>add documentation for exported functions of the win32 batmeter library...<BR>
&nbsp;<BR>
BOOL BatMeterCapabilities(<BR>&nbsp;&nbsp;&nbsp; PUINT&nbsp;&nbsp; *ppuiBatCount<BR>)<BR>
*\ description:<BR>&nbsp;&nbsp;&nbsp; is used to determine if the batmeter lib can run on the host machine. return true on success <BR>
(battery meter can run).<BR>&nbsp;&nbsp;&nbsp; params:<BR>&nbsp;&nbsp;&nbsp; out -&gt; ppuiBatCount - points to a pointer which will be filled in with a pointer to the global battery count.*\<BR>
&nbsp;<BR>
HWND CreateBatMeter(<BR>&nbsp;&nbsp;&nbsp; HWND&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hWndParent,<BR>&nbsp;&nbsp;&nbsp; HWND&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hWndFrame,<BR>&nbsp;&nbsp;&nbsp; BOOL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bShowMulti,<BR>&nbsp;&nbsp;&nbsp; PBATTERY_STATE&nbsp; pbsComposite<BR>)<BR>
*\&nbsp; description:<BR>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; param:<BR>&nbsp;&nbsp;&nbsp; hWndParent&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - parent of the battery meter dialog.<BR>&nbsp;&nbsp;&nbsp; hWndFrame&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - frame to locate the battery meter dialog.<BR>&nbsp;&nbsp;&nbsp; bShowMulti&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp; display mode (true -&gt; multiple battery).<BR>&nbsp;&nbsp;&nbsp; opt -&gt; pbsComposite&nbsp;&nbsp;&nbsp; - pointer to composite battery state.*\<BR>
&nbsp;<BR>
HWND DestroyBatMeter(HWND hWnd)<BR>
*\ description:<BR>&nbsp;&nbsp; destroy the batmeter window created with CreateBatMeter function. returns the handle of the <BR>
batmeter parent window.<BR>&nbsp;&nbsp; params:<BR>&nbsp;&nbsp; hWnd&nbsp;&nbsp; - handle to the window to be destroyed. *\<BR>
&nbsp;<BR>
BOOL PowerCapabilities()<BR>
*\&nbsp; description:<BR>&nbsp;&nbsp;&nbsp; is used to determine if the system has any power<BR>&nbsp;&nbsp;&nbsp; management capabilities which require ui support. return true if power management ui should be displayed. *\<BR>
&nbsp;<BR>
BOOL UpdateBatMeter(<BR>&nbsp;&nbsp;&nbsp; HWND&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hWnd,<BR>&nbsp;&nbsp;&nbsp; BOOL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bShowMulti,<BR>&nbsp;&nbsp;&nbsp; BOOL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bForceUpdate,<BR>&nbsp;&nbsp;&nbsp; PBATTERY_STATE&nbsp; pbsComposite<BR>)<BR>
*\&nbsp; description:<BR>&nbsp;&nbsp;&nbsp; this function should be called when the battery meter parent window<BR>&nbsp;&nbsp;&nbsp; receives a WM_POWERBROADCAST, PBT_APMPOWERSTATUSCHANGE message, it will<BR>&nbsp;&nbsp;&nbsp; update the data in the global battery state list. if needed the display<BR>&nbsp;&nbsp;&nbsp; will also be updated.<BR>&nbsp; PARAMETERS:<BR>&nbsp;&nbsp;&nbsp; hWndBatMeter,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hwnd of the battery meter dialog<BR>&nbsp;&nbsp;&nbsp; bShowMulti,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; display mode<BR>&nbsp;&nbsp;&nbsp; bForceUpdate,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; forces a ui update<BR>&nbsp;&nbsp;&nbsp; opt -&gt; pbsComposite,&nbsp;&nbsp;&nbsp; pointer to composite battery state.&nbsp; *\<BR>
&nbsp;<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>