From: Rampf on
Hello

How can I get the Free Space of a Storage Card in .NET?

I tried to call GetDiskFreeSpaceEx with "\Storage Card" as path, but
sometimes it is returning a negative value?!

Thanks

Rampf

From: "Paul G. Tobey [eMVP]" p space tobey no spam AT no instrument no spam DOT on
Are you sure it's a negative number? Maybe you're just interpreting it as a
signed value, when it's really unsigned. The PULARGE_INTEGER values should
be 'ref unsigned long' in C#...

Paul T.

"Rampf" <rampf(a)rampf.com> wrote in message
news:%23gbUJkPlIHA.1208(a)TK2MSFTNGP03.phx.gbl...
> Hello
>
> How can I get the Free Space of a Storage Card in .NET?
>
> I tried to call GetDiskFreeSpaceEx with "\Storage Card" as path, but
> sometimes it is returning a negative value?!
>
> Thanks
>
> Rampf
>


From: Hilton on
Hi,

A negative value means that the Storage Card had no space left and started
'borrowing' from device RAM. Just kidding, see this link, especially the
part about not converting to a 32-bit value.

http://msdn2.microsoft.com/en-us/library/aa364937(VS.85).aspx

Hilton



"Rampf" <rampf(a)rampf.com> wrote in message
news:%23gbUJkPlIHA.1208(a)TK2MSFTNGP03.phx.gbl...
> Hello
>
> How can I get the Free Space of a Storage Card in .NET?
>
> I tried to call GetDiskFreeSpaceEx with "\Storage Card" as path, but
> sometimes it is returning a negative value?!
>
> Thanks
>
> Rampf
>


From: Rampf on
Thanks

"Hilton" <nospam(a)nospam.com> schrieb im Newsbeitrag
news:zmSIj.11631$qS5.2901(a)nlpi069.nbdc.sbc.com...
> Hi,
>
> A negative value means that the Storage Card had no space left and started
> 'borrowing' from device RAM. Just kidding, see this link, especially the
> part about not converting to a 32-bit value.
>
> http://msdn2.microsoft.com/en-us/library/aa364937(VS.85).aspx
>
> Hilton
>
>
>
> "Rampf" <rampf(a)rampf.com> wrote in message
> news:%23gbUJkPlIHA.1208(a)TK2MSFTNGP03.phx.gbl...
>> Hello
>>
>> How can I get the Free Space of a Storage Card in .NET?
>>
>> I tried to call GetDiskFreeSpaceEx with "\Storage Card" as path, but
>> sometimes it is returning a negative value?!
>>
>> Thanks
>>
>> Rampf
>>
>
>

 | 
Pages: 1
Prev: RIL C# Again and Again...
Next: iemobile for WM6.1