Click here to Skip to main content
16,006,341 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: Playing AVI on Windows Mobile using C# Pin
Joel Ivory Johnson29-Apr-09 6:38
professionalJoel Ivory Johnson29-Apr-09 6:38 
GeneralRe: Playing AVI on Windows Mobile using C# Pin
BosGaurus29-Apr-09 7:33
BosGaurus29-Apr-09 7:33 
Questionc# : How can i control Send/Receive event ? Pin
Idandush26-Apr-09 23:03
Idandush26-Apr-09 23:03 
QuestionHow Should I start Pin
ashish8patil25-Apr-09 3:33
ashish8patil25-Apr-09 3:33 
AnswerRe: How Should I start Pin
PavanPareta25-Apr-09 21:30
PavanPareta25-Apr-09 21:30 
GeneralRe: How Should I start Pin
ashish8patil26-Apr-09 22:15
ashish8patil26-Apr-09 22:15 
GeneralRe: How Should I start Pin
Jabbar_espania30-Apr-09 23:37
Jabbar_espania30-Apr-09 23:37 
QuestionHost USB in Windows Mobile 5.0 Pin
mkohns24-Apr-09 5:40
mkohns24-Apr-09 5:40 
Hello!

I try to access a HID USB device with my PocketPC LOOX with integrated USB Host.

I already figured out - that I can get an handle to the device with -> FindFirstDevice, FindNextDevice
I am quite sure I got the _right_ device, because I looked at the enumeration before an after I plugged it in.
The device name in the DEVMGR_DEVICE_INFORMATION is HID1.
I assume this also means the HID driver was loaded.

To make sure opening is made with the correct options - I do a

HANDLE hFile = CreateFileW(di.szDeviceName,
GENERIC_WRITE | GENERIC_READ,
FILE_SHARE_READ|FILE_SHARE_WRITE,
(LPSECURITY_ATTRIBUTES)NULL,
OPEN_EXISTING,
0,
NULL);

No error occurs, and I see a value for hFile.

Now I try to write and read from the handle with

...
Result = WriteFile(handle, &WriteBuffer, 10, &BytesWritten, NULL);
...
or
ReadFile(handle, &ReadBuffer, 10, &NumberOfBytesRead, NULL);

of cource with the right Buffer / Bufferlenght handling.

WriteFile and ReadFile does not work an come with error 50 (ERROR_NOT_SUPPORTED).

Does not seem right

So I tried to deal with DeviceIoControl .. and got no luck.

On Windows XP everythink work fine (HidD_GetPreparsedData, HidP_GetCaps, SetupDiGetClassDevsW, SetupDiEnumDeviceInterfaces, SetupDiGetDeviceInterfaceDetailW, CreateFile, ReadFile, WriteFile) but this functions does not seem to be available in Windows Mobile 5.0 (hid.dll, hidsdi.h, setupapi.h ...)

If you wonder which device I want to control ... here you go .. JoyWarrior 24F8 from www.codemercs.com

Can anyone point me to the right function to access / read / write an HID USB Device in Windows Mobile 5.0.
It does not matter if VB, VC++,C or C#
QuestionWM_KEYUP event while button VK_TTALK button still held down Pin
SteveKier23-Apr-09 8:26
SteveKier23-Apr-09 8:26 
AnswerRe: WM_KEYUP event while button VK_TTALK button still held down Pin
killabyte1-May-09 2:59
killabyte1-May-09 2:59 
GeneralRe: WM_KEYUP event while button VK_TTALK button still held down Pin
SteveKier1-May-09 6:58
SteveKier1-May-09 6:58 
GeneralRe: WM_KEYUP event while button VK_TTALK button still held down Pin
killabyte1-May-09 14:19
killabyte1-May-09 14:19 
QuestionGSM Modem alternative Pin
tatchung22-Apr-09 21:28
tatchung22-Apr-09 21:28 
AnswerRe: GSM Modem alternative Pin
killabyte1-May-09 19:11
killabyte1-May-09 19:11 
QuestionSQLCE Connection Problems Pin
vafo22-Apr-09 5:02
vafo22-Apr-09 5:02 
AnswerRe: SQLCE Connection Problems [modified] Pin
PavanPareta22-Apr-09 9:13
PavanPareta22-Apr-09 9:13 
GeneralRe: SQLCE Connection Problems [modified] Pin
vafo23-Apr-09 0:42
vafo23-Apr-09 0:42 
AnswerRe: SQLCE Connection Problems Pin
~Khatri Mitesh~28-Apr-09 0:23
~Khatri Mitesh~28-Apr-09 0:23 
AnswerRe: SQLCE Connection Problems Pin
Jabbar_espania30-Apr-09 2:05
Jabbar_espania30-Apr-09 2:05 
GeneralRe: SQLCE Connection Problems Pin
Don Fizachi14-Sep-09 12:16
Don Fizachi14-Sep-09 12:16 
QuestionRadio Buttons Styling (Windows Mobile 6) Pin
vafo21-Apr-09 3:36
vafo21-Apr-09 3:36 
AnswerRe: Radio Buttons Styling (Windows Mobile 6) Pin
Joel Ivory Johnson21-Apr-09 12:22
professionalJoel Ivory Johnson21-Apr-09 12:22 
GeneralRe: Radio Buttons Styling (Windows Mobile 6) Pin
vafo22-Apr-09 4:56
vafo22-Apr-09 4:56 
QuestionHow to convert (string -> xml) with window mobile? Pin
YochangSong20-Apr-09 18:57
YochangSong20-Apr-09 18:57 
AnswerRe: How to convert (string -> xml) with window mobile? Pin
Joel Ivory Johnson21-Apr-09 12:11
professionalJoel Ivory Johnson21-Apr-09 12:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.