memory card

  • Thread starter Thread starter msnews.microsoft.com
  • Start date Start date
M

msnews.microsoft.com

Hello,

i try to find out if a pda have a memory card.
i could search the directory but i think it is a bad way.

each card create a different directory-name and i want it independant from
language.

is there a way to find out if a memory card is inside.
and how do i find out the folder.

maybe there is a event that a can usw from the coredll or something like
that.


thanks a lot !
Martin
 
i tried the FindFirstStorageCard() method but when i ran my application my
pocket pc crashed.
i had to make a hardware-reset.

i don´t know why.
i import the note_prj.dll und call FindFirstStorageCard()

i use visual studio 2005 and c# language.

i hope i can fix it...
... or someone help me :)



"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> schrieb im Newsbeitrag news:%[email protected]...
 
hi,

when i use a return parameter with type int, my application hang up.
i don´t know why.

and when i use the type long (from msdn), i get a "notsupportedexception"

what else can i do ?


Martin said:
i tried the FindFirstStorageCard() method but when i ran my application my
pocket pc crashed.
i had to make a hardware-reset.

i don´t know why.
i import the note_prj.dll und call FindFirstStorageCard()

i use visual studio 2005 and c# language.

i hope i can fix it...
.. or someone help me :)



"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> schrieb im Newsbeitrag
Depending on what you mean by "a pda", you can try the
FindFirstStorageCard() native code API. You'll have to P/Invoke it. A
quick search on that term using GoogleGroups leads to some interesting
pointers:

http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=432

http://blogs.msdn.com/windowsmobile/archive/2006/07/26/678742.aspx

Paul T.
 
You could show us your code and we might be able to tell where it's wrong.


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


Martin said:
hi,

when i use a return parameter with type int, my application hang up.
i don´t know why.

and when i use the type long (from msdn), i get a "notsupportedexception"

what else can i do ?


Martin said:
i tried the FindFirstStorageCard() method but when i ran my application my
pocket pc crashed.
i had to make a hardware-reset.

i don´t know why.
i import the note_prj.dll und call FindFirstStorageCard()

i use visual studio 2005 and c# language.

i hope i can fix it...
.. or someone help me :)



"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> schrieb im Newsbeitrag
Depending on what you mean by "a pda", you can try the
FindFirstStorageCard() native code API. You'll have to P/Invoke it. A
quick search on that term using GoogleGroups leads to some interesting
pointers:

http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=432

http://blogs.msdn.com/windowsmobile/archive/2006/07/26/678742.aspx

Paul T.

Hello,

i try to find out if a pda have a memory card.
i could search the directory but i think it is a bad way.

each card create a different directory-name and i want it independant
from language.

is there a way to find out if a memory card is inside.
and how do i find out the folder.

maybe there is a event that a can usw from the coredll or something
like that.


thanks a lot !
Martin
 
Here is my code:

[DllImport("note_prj.dll")]
public static extern int FindFirstFlashCard();


private void FindFlash()
{
try
{
int i = FindFirstFlashCard();
MessageBox.Show(i.ToString());
}
catch ...
}




You could show us your code and we might be able to tell where it's wrong.


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


Martin said:
hi,

when i use a return parameter with type int, my application hang up.
i don´t know why.

and when i use the type long (from msdn), i get a "notsupportedexception"

what else can i do ?


Martin said:
i tried the FindFirstStorageCard() method but when i ran my application
my pocket pc crashed.
i had to make a hardware-reset.

i don´t know why.
i import the note_prj.dll und call FindFirstStorageCard()

i use visual studio 2005 and c# language.

i hope i can fix it...
.. or someone help me :)



"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> schrieb im Newsbeitrag
Depending on what you mean by "a pda", you can try the
FindFirstStorageCard() native code API. You'll have to P/Invoke it. A
quick search on that term using GoogleGroups leads to some interesting
pointers:

http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=432

http://blogs.msdn.com/windowsmobile/archive/2006/07/26/678742.aspx

Paul T.

Hello,

i try to find out if a pda have a memory card.
i could search the directory but i think it is a bad way.

each card create a different directory-name and i want it independant
from language.

is there a way to find out if a memory card is inside.
and how do i find out the folder.

maybe there is a event that a can usw from the coredll or something
like that.


thanks a lot !
Martin
 
i tried "CeRunAppAtEvent".
That works !! An Event that gives me the time I insert or remove a memory
card.

But i don´t want to call a Application.

May be i´m totally on a wrong way !



Martin said:
Here is my code:

[DllImport("note_prj.dll")]
public static extern int FindFirstFlashCard();


private void FindFlash()
{
try
{
int i = FindFirstFlashCard();
MessageBox.Show(i.ToString());
}
catch ...
}




You could show us your code and we might be able to tell where it's
wrong.


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


Martin said:
hi,

when i use a return parameter with type int, my application hang up.
i don´t know why.

and when i use the type long (from msdn), i get a
"notsupportedexception"

what else can i do ?


i tried the FindFirstStorageCard() method but when i ran my application
my pocket pc crashed.
i had to make a hardware-reset.

i don´t know why.
i import the note_prj.dll und call FindFirstStorageCard()

i use visual studio 2005 and c# language.

i hope i can fix it...
.. or someone help me :)



"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> schrieb im Newsbeitrag
Depending on what you mean by "a pda", you can try the
FindFirstStorageCard() native code API. You'll have to P/Invoke it.
A quick search on that term using GoogleGroups leads to some
interesting pointers:

http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=432

http://blogs.msdn.com/windowsmobile/archive/2006/07/26/678742.aspx

Paul T.

Hello,

i try to find out if a pda have a memory card.
i could search the directory but i think it is a bad way.

each card create a different directory-name and i want it independant
from language.

is there a way to find out if a memory card is inside.
and how do i find out the folder.

maybe there is a event that a can usw from the coredll or something
like that.


thanks a lot !
Martin
 
CeRunAppAtEvent was a bad idea.
the program i choose also called when my application is not running.
i had to reset my pocket pc.



Martin said:
i tried "CeRunAppAtEvent".
That works !! An Event that gives me the time I insert or remove a memory
card.

But i don´t want to call a Application.

May be i´m totally on a wrong way !



Martin said:
Here is my code:

[DllImport("note_prj.dll")]
public static extern int FindFirstFlashCard();


private void FindFlash()
{
try
{
int i = FindFirstFlashCard();
MessageBox.Show(i.ToString());
}
catch ...
}




You could show us your code and we might be able to tell where it's
wrong.


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


hi,

when i use a return parameter with type int, my application hang up.
i don´t know why.

and when i use the type long (from msdn), i get a
"notsupportedexception"

what else can i do ?


i tried the FindFirstStorageCard() method but when i ran my application
my pocket pc crashed.
i had to make a hardware-reset.

i don´t know why.
i import the note_prj.dll und call FindFirstStorageCard()

i use visual studio 2005 and c# language.

i hope i can fix it...
.. or someone help me :)



"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> schrieb im Newsbeitrag
Depending on what you mean by "a pda", you can try the
FindFirstStorageCard() native code API. You'll have to P/Invoke it.
A quick search on that term using GoogleGroups leads to some
interesting pointers:

http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=432

http://blogs.msdn.com/windowsmobile/archive/2006/07/26/678742.aspx

Paul T.

Hello,

i try to find out if a pda have a memory card.
i could search the directory but i think it is a bad way.

each card create a different directory-name and i want it
independant from language.

is there a way to find out if a memory card is inside.
and how do i find out the folder.

maybe there is a event that a can usw from the coredll or something
like that.


thanks a lot !
Martin
 
What kind of device is this? Sounds like a platform bug to me.


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


Martin said:
CeRunAppAtEvent was a bad idea.
the program i choose also called when my application is not running.
i had to reset my pocket pc.



Martin said:
i tried "CeRunAppAtEvent".
That works !! An Event that gives me the time I insert or remove a memory
card.

But i don´t want to call a Application.

May be i´m totally on a wrong way !



Martin said:
Here is my code:

[DllImport("note_prj.dll")]
public static extern int FindFirstFlashCard();


private void FindFlash()
{
try
{
int i = FindFirstFlashCard();
MessageBox.Show(i.ToString());
}
catch ...
}




You could show us your code and we might be able to tell where it's
wrong.


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


hi,

when i use a return parameter with type int, my application hang up.
i don´t know why.

and when i use the type long (from msdn), i get a
"notsupportedexception"

what else can i do ?


i tried the FindFirstStorageCard() method but when i ran my
application my pocket pc crashed.
i had to make a hardware-reset.

i don´t know why.
i import the note_prj.dll und call FindFirstStorageCard()

i use visual studio 2005 and c# language.

i hope i can fix it...
.. or someone help me :)



"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no
spam DOT com> schrieb im Newsbeitrag
Depending on what you mean by "a pda", you can try the
FindFirstStorageCard() native code API. You'll have to P/Invoke it.
A quick search on that term using GoogleGroups leads to some
interesting pointers:

http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=432

http://blogs.msdn.com/windowsmobile/archive/2006/07/26/678742.aspx

Paul T.

Hello,

i try to find out if a pda have a memory card.
i could search the directory but i think it is a bad way.

each card create a different directory-name and i want it
independant from language.

is there a way to find out if a memory card is inside.
and how do i find out the folder.

maybe there is a event that a can usw from the coredll or something
like that.


thanks a lot !
Martin
 
i have a Typhoon 7000 XL with a Intel PXA270 CPU.
i try to start it on a different device.


What kind of device is this? Sounds like a platform bug to me.


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


Martin said:
CeRunAppAtEvent was a bad idea.
the program i choose also called when my application is not running.
i had to reset my pocket pc.



Martin said:
i tried "CeRunAppAtEvent".
That works !! An Event that gives me the time I insert or remove a
memory card.

But i don´t want to call a Application.

May be i´m totally on a wrong way !



Here is my code:

[DllImport("note_prj.dll")]
public static extern int FindFirstFlashCard();


private void FindFlash()
{
try
{
int i = FindFirstFlashCard();
MessageBox.Show(i.ToString());
}
catch ...
}




You could show us your code and we might be able to tell where it's
wrong.


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


hi,

when i use a return parameter with type int, my application hang up.
i don´t know why.

and when i use the type long (from msdn), i get a
"notsupportedexception"

what else can i do ?


i tried the FindFirstStorageCard() method but when i ran my
application my pocket pc crashed.
i had to make a hardware-reset.

i don´t know why.
i import the note_prj.dll und call FindFirstStorageCard()

i use visual studio 2005 and c# language.

i hope i can fix it...
.. or someone help me :)



"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no
spam DOT com> schrieb im Newsbeitrag
Depending on what you mean by "a pda", you can try the
FindFirstStorageCard() native code API. You'll have to P/Invoke
it. A quick search on that term using GoogleGroups leads to some
interesting pointers:

http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=432

http://blogs.msdn.com/windowsmobile/archive/2006/07/26/678742.aspx

Paul T.

Hello,

i try to find out if a pda have a memory card.
i could search the directory but i think it is a bad way.

each card create a different directory-name and i want it
independant from language.

is there a way to find out if a memory card is inside.
and how do i find out the folder.

maybe there is a event that a can usw from the coredll or
something like that.


thanks a lot !
Martin
 
ok, i got a new idea. i think a good idea !!!!!

registry !

"HKLM/Driver/Active" have folders which store all active drivers.
i could search in all these folders for the name "DSK2:" or for the Key that
begins with "Driver/SDCard"
(if there is no key that begins with that - break)

than i could take this key value (name of the class) and go to this folder
in "Drivers/SDCard/Class".
("Drivers/SDCard/Class" have folders for all possible memory cards.)

now i read the value of "profile".
then i could go to the profiles "System/StorageManager/Profiles" and search
the profile.
in this folder a read the value of "folder" and i got the Folder name !!!!


Is that a possibility ?

Could anyone verify this ?
 
Back
Top