hi all,
This is srikanth. I am writing application to test USB driver in the
wince 5.0
and I am using intel PXA27x platform (Mainstone II board).
I am having very basic doubt in the wince:
In the right side catalog items these are the main components:
1. BSP's 2. CORE O.S 3. DEVICE DRIVERS 4. PLATFORM MANAGER.
In the BSP's/ INTEL PXA27x Dev Platform: ARMV4, there is a usb
host is
there,
In the CORE O.S/Wince Devices, USB Host Support is there,
and in the DEVICE DRIVERS, there is USB Host is there.
What is the difference between these three USB Hosts?
Any body having idea please differentiate clearly.
If I want to test the USB Driver (Let suppose PEN Drive (usb
Mass-storage
device) by adding componets to the O.S design view.
Which host I need to add to the o.s design. and at the same time
for
client
driver: which componet I need to add to the o.s design.
i.e I want to test usb driver by using the pen-driver by opening
the
pendrive and
creating a files in that, or open a file in the pen-drive by
using
application
program.
I am not getting any icon or any indication in the desktop when
I
attatch a USB
device(pen drive) to the usb port of the intel board.
In our board touch screen is not working, only display we can
able to
see.
In my application I used create file function. The code snippet
is
shown below:
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
HANDLE hFile;
hFile = CreateFile((LPCTSTR)"\\USB Disk", GENERIC_WRITE|
GENERIC_READ, 0, 0,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if( hFile == INVALID_HANDLE_VALUE )
{
DEBUGMSG(1, (L"File not Copied
successfully*************"));
}
else
{
DEBUGMSG(1, (L"File Copied successfully*************"));
}
return 0;
}
The createfile was giving invalid handle, because of path
was not
correct.
what path I need to mention in the createfile function.
Any body who is having idea on this please reply me.
Thanks and regards,
srikanth