Hi group,

When opening "Storage Management" in control panel, we can see all
available storage info in the drop down list, such as
"DSK1: NAND FLASH"
"DSK2: ATA Hard Disk"

Is there a function to retrieve such information? I used function
"FindFirstStore" but always return a invalid handle. Don't know what's
wrong with it.

Re: How to retrieve the information in Storage Management by Valter

Valter
Tue Aug 21 02:11:58 CDT 2007

Singer <whereareyou_s@163.com> wrote in
news:1187664570.803225.204140@z24g2000prh.googlegroups.com:

[...]
> Is there a function to retrieve such information? I used function
> "FindFirstStore" but always return a invalid handle. Don't know
> what's wrong with it.

Calling GetLastError just after the functions returns is a good way
to know what's going wrong.
I suppose that you forget to set the cbSize field of the structure
that is passed to FindFirstStore to sizeof(STOREINFO). Many windows CE
(and Win32) APIs require that you set the size of the sructures you
pass as parameter.

--
Valter Minute
(the reply address of this message is invalid)
(l'indirizzo di reply di questo messaggio non è valido)

Re: How to retrieve the information in Storage Management by Singer

Singer
Tue Aug 21 22:00:08 CDT 2007

On Aug 21, 3:11 pm, Valter Minute
<v_a_l_t_e_r.m_i_n_u_t_e@g_m_a_i_l.com> wrote:
> Singer <whereareyo...@163.com> wrote innews:1187664570.803225.204140@z24g=
2000prh.googlegroups.com:
>
> [...]
>
> > Is there a function to retrieve such information? I used function
> > "FindFirstStore" but always return a invalid handle. Don't know
> > what's wrong with it.
>
> Calling GetLastError just after the functions returns is a good way
> to know what's going wrong.
> I suppose that you forget to set the cbSize field of the structure
> that is passed to FindFirstStore to sizeof(STOREINFO). Many windows CE
> (and Win32) APIs require that you set the size of the sructures you
> pass as parameter.
>
> --
> Valter Minute
> (the reply address of this message is invalid)
> (l'indirizzo di reply di questo messaggio non =E8 valido)

Yeah, this works, thanks for help!


Re: How to retrieve the information in Storage Management by Anthony

Anthony
Fri Aug 24 17:46:39 CDT 2007

So that's good news.
In case of any problem, you could have a look at
WINCE500\PUBLIC\WCESHELLFE\OAK\CTLPNL\STGUI\ where all the source code of
the "storage management" applet is available.

HTH

--
--
--
----------------------------------------------------------------
Anthony Pellerin (eMVP)
ADENEO (ADESET)
Windows Embedded Consultant
<apellerin AT adeneo DOT adetelgroup DOT com>
http://www.adeneo.adetelgroup.com
Tél : +33 (0)4.72.18.57.77
Fax : +33 (0)4.72.18.57.78
----------------------------------------------------------------
"Singer" <whereareyou_s@163.com> a écrit dans le message de news:
1187751608.948607.309010@i38g2000prf.googlegroups.com...
On Aug 21, 3:11 pm, Valter Minute
<v_a_l_t_e_r.m_i_n_u_t_e@g_m_a_i_l.com> wrote:
> Singer <whereareyo...@163.com> wrote
> innews:1187664570.803225.204140@z24g2000prh.googlegroups.com:
>
> [...]
>
> > Is there a function to retrieve such information? I used function
> > "FindFirstStore" but always return a invalid handle. Don't know
> > what's wrong with it.
>
> Calling GetLastError just after the functions returns is a good way
> to know what's going wrong.
> I suppose that you forget to set the cbSize field of the structure
> that is passed to FindFirstStore to sizeof(STOREINFO). Many windows CE
> (and Win32) APIs require that you set the size of the sructures you
> pass as parameter.
>
> --
> Valter Minute
> (the reply address of this message is invalid)
> (l'indirizzo di reply di questo messaggio non è valido)

Yeah, this works, thanks for help!