Confused of LPBYTE lpBuffer - variable error <bad ptr>
Hello all!
I've got a problem with the variable LPBYTE lpBuffer - Debug watch
reports me that this variable has a bad ptr. Then it's the cause that
I'm not able to get success with loading my file which I need to see in
my dialog's edit-box.
This is the problem part of my code:
__________________________________________________________________________
HANDLE hFile;
DWORD dwSize;
DWORD dw;
LPBYTE lpBuffer = NULL;
lstrcpy(szSoubor, TEXT("\\temp\\test.txt"));
hFile = CreateFile(szSoubor, GENERIC_READ, 0, NULL,
OPEN_EXISTING, 0,
NULL);
if(hFile == INVALID_HANDLE_VALUE)
return;
dwSize = GetFileSize(hFile, NULL);
lpBuffer = (LPBYTE)HeapAlloc(GetProcessHeap(),
HEAP_GENERATE_EXCEPTIONS, dwSize+1);
if(!ReadFile(hFile, lpBuffer, dwSize, &dw, NULL)){
CloseHandle(hFile);
HeapFree(GetProcessHeap(), 0, lpBuffer);
return;
}
CloseHandle(hFile);
lpBuffer[dwSize] = 0;
SetDlgItemText(hwndDlg, IDC_EDIT1, (LPCTSTR)lpBuffer);
SetFocus(hwndDlg);
return;
___________________________________________________________
Did I do something wrong or did I forget something?
(I need the command <if(!ReadFile(...))> to get nonzero result.)
Thank you very much for any help! Tag: where can I find the stressutils.lib? Tag: 89047
REPOST: July 06 QFE kb/922439 TCP sequence number
My colleague and I have a question about the July 06 QFE release
regarding" Windows CE 5.0 device may reject TCP packets when the TCP
sequence numbers become too high", as described in this link
http://support.microsoft.com/kb/922439. We are wondering what sequence
number is considered too high that would caused the rejection? If you
don't know the answer, maybe you can redirect our question to someone
who may know? Many thanks for your help.
--Bruce & Chungwen Tag: where can I find the stressutils.lib? Tag: 89046
ExceptionDispatch OAL
hi,
I my kernel code my system is hanging after displaying the message
"ExceptionDispatch: pexi=c201fca4 Pc=00000000"
I searched this msg and found it inthe func ExceptionDispatch(
PCONTEXT pctx ) but could nt find as to who calls this func Can anybode
tell me why and when this func is called
waiting for a favorable reply
--
Thanks
Honey Tag: where can I find the stressutils.lib? Tag: 89044
DaVinci::Exception in KernelInit
hi,
i am currently into OAL development for ARM926 processor and i am suing CCS
verson 3.2 (Code composer studio of Texas Instruments).I am facing a problem
wherein my system HALTS when kernel code reaches the line "KSTKBASE(pTh) =
(DWORD)lpStack;" in MDCreateThread(). I have found many post similar post
concerning this halting when code reaches the above thread but nowhere I am
able to get a workable solution.
i am using a cloned BSP of MAINSTONE2 and during development I
had kept a stub function for OEMDataAbortHandler. But on going through many
messages of these group i made the function (OEMDataAbortHandler)to call
DataAborthandler code whose defination in armstrap.s file.
I also saw in one post where in a problem was faced by an person in the same
line "KSTKBASE(pTh) = (DWORD)lpStack" which he says that maybe due to the
debugger used. So also please let me know if my CCS debugger is created any
problem, and if not how can i further continue please do help me into this as
I am stuck into the code from atleast a week now
thanks in advance
Waiting for a favorable reply
--
Thanks
Honey Tag: where can I find the stressutils.lib? Tag: 89042
audio can NOT work after resume
Dear Sir,
I use PXA27X , WINCE 5.0 and Philips UCB1400 as audio chip to develop
my project.
In the normal usage, audo and touch function work well.
But if user call suspend function when system play a audio or video
file , then resume ,
I can NOT hear audio forever. but touch function work well.
The following is my test.
case-1:
Step-1: press power button to turn on the product.
Step-2: play a audio or video file. ==> it work well.
Step-3: close windows media player
Step-4: press power button to go into suspend.
Step-5: prsss power button to resume system
Step-6: play a audio or video file. ==> it work well.
case-2:
Step-1: press power button to turn on the product.
Step-2: play a audio or video file. ==> it work well.
Step-3: do NOT close windows media player
Step-4: press power button to go into suspend when system still play
audio or video
Step-5: prsss power button to resume system
Step-6: windows media player will play audio or video automatic , but
we do NOT hear any audio.
Do anyone have idea about this issue ?
Beside , can UCB1400 support wavedev2 architecture ?
BR,
dirwdirw.tw Tag: where can I find the stressutils.lib? Tag: 89039
How to make "GetSystemPowerStatusEx" available?
So far, I have made my batter driver, but I still cann't use
"GetSystemPowerStatusEx" function in my application created by eMbedded
Visual C++ 4.0 or Windows CE 5.0. But the compile error was different. In
eVC, the error was as follows( I have include "Winbase.h" ):
D:\My Designs\TestBattery\HelloCE.cpp(182) : error C2065:
'GetSystemPowerStatusEx2' : undeclared identifier
But in Window CE 5.0 the error was:
BUILD: [01:0000000021:ERRORE]
d:\WINCE500\PBWorkspaces\sdk7a404\TestBatteryDriver\HelloCE.cpp(233) : error
C3861: 'BatteryAPIGetSystemPowerStatusEx': identifier not found, even with
argument-dependent lookup
I have tested my battery driver and it worked fine. May be I haven't
tell the system I have made the batter drver. So, can someone tell me how to
make "GetSystemPowerStatusEx" available? Thanks. Tag: where can I find the stressutils.lib? Tag: 89036
AU1200 LCD Controller LG Display
Dear Greats,
We are using DBAu1200 reference platform with LB104S01-TL01 LVDS
display connected. By modifying the display driver settings we are able
to see the display.
In the display we are able to see lot
of flickering. This is due to improper configuration of display
controller
values. We need the specific parameter values from LG to support AMD
Au1200
LCD controller.
Find the below settings, that we configured
(WINCE500\PLATFORM\Db1200\Drivers\Display\Au1200lcd\lcdgpe.cpp file) to
bring up the display.
============================================================================
=================================================
{ TEXT("800x600_TFT"),
800, 600,
/* mode_screen */ LCD_SCREEN_SX_N(800) |
LCD_SCREEN_SY_N(600),
/* mode_horztiming */ LCD_HORZTIMING_HPW_N(12) |
LCD_HORZTIMING_HND1_N(13) | LCD_HORZTIMING_HND2_N(2),
/* mode_verttiming */ LCD_VERTTIMING_VPW_N(2) |
LCD_VERTTIMING_VND1_N(2) | LCD_VERTTIMING_VND2_N(5) ,
/* mode_clkcontrol */ LCD_CLKCONTROL_PCD_N(1),
/* mode_pwmdiv */ 0x8000063f,
/* mode_pwmhi */ 0x03400000,
/* mode_outmask */ 0x00fcfcfc,
/* mode_fifoctrl */ 0x2f2f2f2f,
/* mode_toyclksrc */ 0x00000004,
/* mode_backlight */ 0x00000000,
/* mode_auxpll */ 96/12,
/* mode_bitmask */ &RGB565,
},
============================================================================
=================================================
We have set the below settings, referring LG LCD and Au1200 data sheet.
1. Screen resolution
- 800x600
2. Horizontal Sync Pulse Width in Pixels. - 13
3. Horizontal Non Display Period 1 in Pixels. - 14
4. Horizontal Non Display Period 2 in Pixels. - 3
5. Vertical Sync Pulse Width in Lines
- 3
6. Vertical Non Display Period 1 in Lines. - 3
7. Vertical Non Display Period 2 in Lines. - 6
8. Pixel Clock Divisor (PCD)
- 1
9. Auxiliary PLL multiplier
- 8
The DCLK clock for LG is ranging from 37 to 40 MHz, formula we refer
was
1. Auxiliary PLL clock freq/(2 *(PCD+1) = (37 to 40) MHz
2. Auxiliary PLL clock freq = Auxillary PLL multiplier * 12 MHz (OSC
Freq)
We configured Auxiliary PLL clock freq as 96 MHz (12*8) and PCD as 1 to
get
24 MHz as DCLK (Which is less than the minimum value 37).
To match the 39-40 MHz required we increase the AuxPLL to 156, but this
is
moving display in to VGA mode, no screen is seen in the LVDS display.
Not able to indentify the root cause of this. We are trying to verify
the clocks physically, before that I thought of posting this
information for some help.
Kindly any can help us to solve the problem
avkumar Tag: where can I find the stressutils.lib? Tag: 89035
Why my serial kitl could not connect PB 5.0?
I want to use serial kitl to debug usb. I use ST for debug info and
bt for kitl. But I only one port on board. Now I could not connect to
PB. I can see the info use bus hound. The debug info can input to com1,
and PB has send $EDBG,PPSH info to com1, but kitl could not connect PB?
who can help me?
My setting:
BOOL InitKitlSerialArgs (OAL_KITL_ARGS *pKitlArgs)
{
pKitlArgs->flags = OAL_KITL_FLAGS_ENABLED | OAL_KITL_FLAGS_POLL/*
|OAL_KITL_FLAGS_EXTNAME*/;
//pKitlArgs->flags |= OAL_KITL_FLAGS_PASSIVE;
pKitlArgs->devLoc.LogicalLoc = BULVERDE_BASE_REG_PA_BTUART;
pKitlArgs->devLoc.Pin = OAL_INTR_IRQ_UNDEFINED;
pKitlArgs->baudRate = CBR_115200;
pKitlArgs->dataBits = DATABITS_8;
pKitlArgs->parity = PARITY_NONE;
pKitlArgs->stopBits = STOPBITS_10;
g_kitlDevice.type = OAL_KITL_TYPE_SERIAL;
g_kitlDevice.pDriver = (VOID*) GetPxaKitlSerialDriver();
return TRUE;
}
my pb setting:
download:none
Transport: serial com1 115200
debugger: KdStub Tag: where can I find the stressutils.lib? Tag: 89029
Can't install platform builder on Windows server 2003
Hi,
My work machine uses Windows Server 2003 standard edition (SP1). When I
tried to install Windows CE 5.0 Evaluation Version, from the
Microsoft-supplied DVD, I got the message "Setup requires either Windows
2000 Service Pack 4 or Windows XP Service Pack 1 to be installed..."
I already have (a bought version of) CE 4.2 etc. installed.
Is there any workaround for this?
- Shalom Crown Tag: where can I find the stressutils.lib? Tag: 89025
Missing explorer.exe, missing desktop
Hi All,
I think someone monkeyed with a platform that I haven't touched in a
while. It was once working but now it does not. It boots to a blank
screen. After a while I figured out that the platform isn't actually
hanging, but the shell isn't loading explorer.
What's stranger is that explorer.exe is nowhere to be found! It's not
in \Windows on the device, and it's not in the release directory,
either.
The last part of my debug log looks like this (This is for CE4.2 by the
way):
Loaded symbols for
'C:\DEV\WINCE42\PUBLIC\M5\RELDIR\ADVANTECH_PCM9575DEBUG\COMMCTRL.DLL'
4294781885 PID:a3fb9e2a TID:63f4ca52 0x83ef9a48:
+OpenIFConfig(Comm\VMINI1\Parms\TCPIP Handle 0x617FB44)
4294781885 PID:a3fb9e2a TID:63f4ca52 0x83ef9a48: Opened registry info
for Comm\VMINI1\Parms\TCPIP
4294781885 PID:a3fb9e2a TID:63f4ca52 0x83ef9a48:
-OpenIFConfig(Comm\VMINI1\Parms\TCPIP *Handle 0x617FB44, BOOL Ret: 1)
4294781885 PID:a3fb9e2a TID:63f4ca52 0x83ef9a48: *CloseIFConfig(Handle
0x99900)
4294781885 PID:a3fb9e2a TID:63f4ca52 0x83ef9a48: IPAddAddrComplete: IF
D5FC0 ntecount 1, SAC 0
4294783933 PID:a3fb9e2a TID:e3ee8e82 0x83ee8ad0: DhcpWorkerThread:
loop 1: WaitList is 0x0
4294783933 PID:a3fb9e2a TID:e3ee8e82 0x83ee8ad0: -DhcpWorkerThread:
WaitList is 0x0
Even though the device boots to a blank screen, it's still active. I
can start the command shell, but I just don't have a taskbar and
desktop. Device, GWES, Filesys, Shell, etc. are all running.
Short of turning on all debug zones for the shell, I can't think of
anything else. Maybe there wasn't an explorer.exe in 4.2? Any ideas?
TIA,
Dan. Tag: where can I find the stressutils.lib? Tag: 89023
what is pTOC
Hi all,
I am bit confused on what is pTOC stands for and how it works. In
the eboot source code KernelRelocate (pTOC) directly making use of the pTOC
glaobal variable. But I could not find exactly who is initializing the
variable (default it is set to (ROMHDR*) -1) or where it is down.
Can anybody explain me how this variable is initialized and for what it is
used for?
Thanks in advance
--
Jackson C P Tag: where can I find the stressutils.lib? Tag: 89016
Getting Started with Platform Builder and the Catalog
I am a software developer, not a hardware developer. We are working on
rolling out a new product that will be Windows CE based. I have been tasked
with defining the image we will use. Resources will be tight, and we do not
want the device to look like it is running CE, so I doubt any of the
"standard" images will work. I am wondering what is the best way to become
familiar with the Catalog items and how Plaform Builder works.
Pat O Tag: where can I find the stressutils.lib? Tag: 89002
What is up with CIFS?
Hello all,
Here is a line in the Platorm Builder help for both Windows CE 4.2 &
5.0
"The only network provider currently supported by Windows CE is the
Microsoft Windows Network."
Am I to assume that Windows CE does NOT support connection to UNIX or
Linux boxes via SMB./CIFS?
If that is true then how would anyone expect interoperability over the
internet?
If this is true does anyone know when or if it will be supported in 4.2
or 5.0?
Thanks!
Gary Tag: where can I find the stressutils.lib? Tag: 89001
Can I use PB to build the btscosnd driver and download it onto my SPV C600
Hi,
I'm trying to build the btscosnd driver, I built it using VS2005, but
can seem
to get the SPV to load it at boot-up. I think this is the case because
although I put the dll in \windows directory and appropriate entries in
the
registry HKLM\Drivers\Builtin\BTScoSnd etc I get no entry in
HKLM\Drivers\Active to say that the driver has been loaded.
I'd like to use PB to this work, but I wasn't certain I could use PB if
I was not downloading the complete kernel to the device (in this case
my SPV)
Any advice ?
Cheers
Paul Grant Tag: where can I find the stressutils.lib? Tag: 88995
KITL not Working
Hai Greats,
HW : AMD DBAu1200 (MIPS Platform)
SW : Windows CE 5.0.
Problem:
Windows CE Image built with KITL support and Target Control
(shell.exe). Image is downloaded to the target through Platform builder
with Ethernet transport enabled in the connectivity options. After
download, while booting, the device is not getting connected with the
Platform builder that is KITL Operating in Active mode. And the PB is
waiting to connect with KITL Transport, but it is not occuring.
So, what could be the problem.
Yours,
Arun. Tag: where can I find the stressutils.lib? Tag: 88994
SCardGetStatusChange Problem
Hi everyone, I am having problem with function I cannot get to work properly
when no card are inserted into my reader.
The first call with SCARD_STATE_UNAWARE return immediately with dwEventState
equal to 0x000222. Then I copy this value into CurrentState recall
SCardGetStatusChange. Return without blocking again but this time with
dwEventState equal to 0x000012. If I repeat the process without inserting a
card it will switch of status between 0x000222 and 0x000012 back and forth.
If I insert a card in the reader it will return me that a card is present
and the next call to SCardGetStatusChange will block until I remove the card
which is correct...
Do you have any idea what it could be?
Regards, Tag: where can I find the stressutils.lib? Tag: 88992
How to use one Analog-to-Digital Converter between Two drivers?
I am developing battery driver using Windows CE 5.0 and SHARP's ARM9
microprocessor LH7A404.
The touch panel driver has already used the Analog-to-Digital Converter of
LH7A404, and I don't want to add one more Analog-to-Digital device, so the
LH7A404's Analog-to-Digital Converter was used by two driver at the same
time. It is really a nightmare. The two driver might use the
Analog-to-Digital Converter at the same time and two drivers get the wrong
result!
So I try to make a globe variable. When the touch panel want to use the
Analog-to-Digital Converter, set the variable to "0", and set it to "1" when
finish. The battery driver should read the varible before using the
Analog-to-Digital Converter. Read "1" means it can use. So where should I put
the globle varible or is there a better solution? Tag: where can I find the stressutils.lib? Tag: 88991
READ_PORT_BUFFER_UCHAR usage...
Hi all,
I want to use this function instead of ReadFile in my application because of
performance considerations. The problem is that this function doesn't update
the port address. I tried to get 16 bytes from the COM2 port. The first 4
bytes i get are true but then it repeats the fifth byte.
How can i get around this issue? Do you know of any function other than
ReadFile to read from the port? Or can anyone show me how can i use this
function to read 16 bytes from the port?
Thanks for any help.. Tag: where can I find the stressutils.lib? Tag: 88985
Help needed in Installing the WinCE 5.0 driver on CEPC using .cab files for some device
Query A:
========
I have successfully installed the driver on CEPC. I have copied driver
.dll files in Program files
and in windows directory, the required registry keys for loading the
driver were also created in CEPC.
Now when i connect the Nokia handset with CEPC then it displays a
dialog box prompting a user to enter the name of the appropriate USB
device driver DLL. When i give the driver name then it tries to find
the driver from the host i.e.
"J:\WINCE500\PBWorkspaces\cepc_x86\RelDir\CEPC_x86_Debug". It is not
trying to find from CEPC.
I think as i have already installed the driver then:
1. Why it is not trying to search appropriate registry entries from
CEPC
2. Why it is not trying to search appropriate driver from CEPC for this
device
3. Why it is showing dialogue box to enter the name of the driver from
the host system.
Note: First i booted CEPC using the run time image created by Platform
builder present on the host system and later i attach the Nokia handset
to load the driver for modem device.
Query B:
=======
I have created the cab file for installing the driver on CEPC using inf
file. Now in run time image i provided support for cab installer. I am
able to install it from the cab file when i do double click on cab file
and after the installation of the driver cab file is deleted
automatically.
>From platfrom builder 5.0 help i find the following:
(Snip)
The Wceload tool (Wceload.exe) runs on your target device. You use this
tool to install or remove the cab file from a location that you
specify. If you do not specify a location, the cab file will be
installed in or removed from the default location. The default location
is the Program Files directory on your target device.
wceload Specifies how it removes the cab file after installation.
Value Description
0 Does not remove the cab file.
1 Removes the cab file. This is the default value.
2 Treats the file as chuck blocks of data, and dynamically deletes
them.
........
(Snip end)
Now please suggest how can i use this wceload.exe tool. When i do
double click on this tool it says "Please specify a cab file or
double-tap file to install the application"
Please suggest whether it is used from command prompt? Tag: where can I find the stressutils.lib? Tag: 88979
Help required with PlatBuilder 5.0 on PXA255
Hi !
Others have had this problem before and have posted it in some
newsgroups , but there has been no solution yet.
I'm building a 5.0 BSP for a platform using the PXA255. The bootloader
runs fine and everything is working fine until I try to run the kernel.
The processor gets stuck when starting the MMU. I've checked my test
code, I've checked my Config.bib .... no visible mistake.
Currently I don't have a JTAG debugger (will hopefully have one next
week), so I'm stumbling 'round in the darkness a bit, but I have
working Test code (kind of complex LED blinker) in two versions
(physical and virtual addressing) which works fine before MMU switch,
but not afterwards.
I tried the same thing with SA1110 (after hacking some makefiles to
remove thumb support) and got stuck with the same problem.
I know this problem exists with others and if there is anyone out there
who discovered the same problem and has a remidy, I would be very
thankful for help. Tag: where can I find the stressutils.lib? Tag: 88977
Passthru loading problem in CE 5.0
Hi,
I am porting IM driver passthru in CE 5.0. I have successfully
build the pasthru and loaded in K-Jam(Win CE 5.0). But after
installation of passthru and soft reset there will be two instances of
WiFi adapter. One is TNETWLN1 and other is PASS\TNETWLN1. This happens
everytime. After second reboot instance TNETWLN1 goes away.
I want to know does anyone ever encounter same behavior. Are
there any other things that has to be done in passthru to get rid of
this problem?
Thanks
Rajat Tag: where can I find the stressutils.lib? Tag: 88976
Volume Key and Mobile OS default volume setting bar
Dear All,
I have a button(key) driver including a Volume Up/Down key
controlling. I change the gain value directly by writing register value
of audio codec while the volume is pressed. Although I can change the
volume in this way, the scrolling bar of OS Desktop volume setting did
not act to corresponding volume position. How can I make the volume
scrolling icon move when I press the volume key.
call waveOutMessage( )?? Tag: where can I find the stressutils.lib? Tag: 88974
AYGShell
Does anyone know if AYGShell API set depends on Standard shell? I add
AYGShell API to my headless OS. It builds successfully but would not run. I
wonder it really need a shell or something else to make it work. Thanks. Tag: where can I find the stressutils.lib? Tag: 88965
How to use assembly language for ARM?
Hi All,
From previous postings is looks like Windows CE for ARM processors
does not support in-line assemby and that the __asm command is not
available.
Is there another way to use assembly language in my code for ARM?
Any comments or sample source code would be greatly appreciated.
Thanks,
Richard Tag: where can I find the stressutils.lib? Tag: 88962
USB communications fail after RF radition testing
We are currently testing a Windows CE 5 based system which uses a USB Host
for comms to our custom data collection peripherals. During our RF radiation
testing for European CE mark compliance we found that the USB comms would
fail and not reconnect. We found that this can be replicated by shorting the
data + & - lines on the usb cable with long nose pliers to simulate data
scrambling by the RF interferance. This causes the device to lose its
enumeration and communications. If you try this whilst connected to an XP
based desktop the USB device is lost and then reconnected after the
interference stops. On Windows CE the USB does not reconnect. After testing
on 2 different CE computers we found that on one removing and reinserting the
USB device reestablished the enumeration whereas the other must be rebooted.
You can use a memory stick for this simulation.
To pass the CE mark test the system must self recover from the RF
interferance in the same manner as the XP desktop does.
Has anyone experienced this on Windows CE, and if so what settings in the
Platform need to be added to ensure that the USB Host comms self repair.
Thanks Tag: where can I find the stressutils.lib? Tag: 88961
Debug output message
Hi:
Due to the Serial Debug output commport will be used on the
Application, but the ethernet was connected that moment, at lease had
loop-back connection. How can I programmatic switch the Debug output
message from serial commport to ethernet port, just like KITL switch
from serial to VIMINI?
Thanks
Lu Tag: where can I find the stressutils.lib? Tag: 88960
PCMCIA 4.2 to 5.0
Hi
I am migrating from Windows CE 4.2 to 5.0. I am having some issues with the
PCMCIA driver, I am aware from the help and earlier posts that the pcmcia
driver model has changed, due to time constraints I would like to move the
pcmcia driver from 4.2 to 5.0 without moving to the bus agnostic driver.
cardserv.lib does not exist anymore, so what I have done is copied it from
4.2, my pcmcia driver builds in 5.0 and the pcmcia cards that I have tested
ciscioaironet350 for example work, the only problem that I am having is that
CF memory cards used with a pcmcia adapter are not recognised anymore.
Firstly is what I have done above correct and secondly any ideas why the
compact flash card is not recognised.
Regards Tag: where can I find the stressutils.lib? Tag: 88953
Filter driver
Hi, I just built an emulator and added msfilter and waveui.
I can see ACM1: comes up but how can I activate this filter?
In the wave ui, there seems to be a filter selection UI but that UI
doesn't bring up.
Many thanks in advance,
Jay. Tag: where can I find the stressutils.lib? Tag: 88952
NDIS driver MiniportSend doubt
Hi.
I am trying to write an NDIS driver. I have followed the NDIS sample from
%_WINCEROOT%\Public\Common\Oak\Drivers\Netcard\NE2000.
I manage to receive packets in MiniportSend, but I only receive a packet
with one buffer, no matter the size of the data I am sending (I am sending an
UDP packet). The packet received contains the source ip address and
destination ip address (and a few more things), but I can't find the data I
am sending, the length of the buffer is always 0x2a. Is this normal, is the
data stored somewhere else?
Here is the data I am receiving.
0003EF80 FF FF FF FF FF FF 00 00
0003EF88 AC 10 5A 97 08 06 00 01
0003EF90 08 00 06 04 00 01 00 00
0003EF98 AC 10 5A 97 AC 10 5A 97
0003EFA0 00 00 00 00 00 00 AC 10
0003EFA8 65 2C
Source IP â?? AC 10 5A 97
Destination IP - AC 10 65 2C
Thanks in advanced. Tag: where can I find the stressutils.lib? Tag: 88950
Active sync over Serial
Hi,
What are the steps needed for active sync over serial in Windows Mobile.
Active sync over IR is working fine in Windows Mobile. (In windows mobile,
active sync application has the option to connect over IR).
In windows CE, first we will make a new connection, using Dial up and
Networking from Control panel, over the specified serial port and will make
that connection as default.
Do we have anything similar in Windows Mobile.
Thanks in advance,
San Tag: where can I find the stressutils.lib? Tag: 88943
UART issue
Hi,
I have a hardware which has 5 UARTs and one of them is used for slow IR. In
windows CE, all the UARTs are working. But when I tried in Windows Mobile
with the same hardware, one UART is not working. While debugging I have seen
that driver is writing the data to the FIFO but data is coming to the hyper
terminal. What could be the issue.
Is ther any limitation or known issue with the number of UARTs in Windows
Mobile.
Let me know your comments.
Thanks in Advance,
San Tag: where can I find the stressutils.lib? Tag: 88942
USB 2.0 hub doesn't work on WinCE 5.0
Hi,
I am new to WinCE and have trouble to make USB 2.0 hub working.
My platform is Geode NX, SiS 741/946.
Working USB devices : keyboard, mouse, 2.0 USB diskonkey. 1.1 hub and
devices below it.
Non-working USB devices : USB 2.0 hub (self-powered and bus-powered)
What I found until now is, it takes several seconds in
ExternalHub::GetStatusChangeBitmap.
And dwBytesTransferred is 0.
Where should I begin debugging?
Thanks in advance. Tag: where can I find the stressutils.lib? Tag: 88939
missing 91c111 interrupts
Hello,
I have a CE 4.2 SH3 platform with IRQ0 set as a rising-edge triggered
interrupt that is connected to the INT0 pin on a SMSC91C111 ethernet
chip. Under high traffic conditions the chip is resetting.
I searched this newsgroups and read the postings regarding this issue
on this chip and I plan to implement the fix that involves checking the
status of the interrupt from the OAL prior to re-enabling the interrupt
and setting the IST event so that a "missed" rising edge will be
serviced anyway.
I was thinking this must be done in OEMInterruptEnable(). What API(s)
exist to find out what event handle NDIS has set up to service the IST
so that I can set the event myself when this condition occurs?
Any advice is appreciated.
Cheers,
Ken Tag: where can I find the stressutils.lib? Tag: 88938
(Help)(How to identity WinCE Nand storage as Usb Disk)
Dear Friends:
My WinCE BB has 2G nand flash, but the Code&Data is only 20M, so I
have confige the residual space as a storage disk.
How can I make this space as Usb Mass Storage disk, I analysis WinCE
Usb driver code, and now when device attached to the PC, Usb driver received
"Attach" message , for this message, Usb driver need initialize Store(Call
Store_Init), but it's fail.
Please help me, my good friend, and I believe following the increasing
of nand flash, this need will be more and more earnest.
Best Regards
Mike Han
Best Regards
Mike Han Tag: where can I find the stressutils.lib? Tag: 88930
RAS Server User Credentials
Hiho!
I'm writing an administration tool for the WinCE-RAS-Server.
The RasIOControl-function provides setting and removing user-credentials.
Is it possible to read those information? I just want to get a list of the
allowed usernames. I don't mind the passwords.
Has anybody an idea how to do that?
I already thought about the CredRead-function but I didn't find information
what to enter for the target-string.
Thank for your help!
Regards, DennisB Tag: where can I find the stressutils.lib? Tag: 88929
why I can't install program on device by activesync?
I want to install some program on pocket pc by activesync. but there
exists some problem.
One is that when I excute Add/Remove Programs in ActiveSync tools, this
program is waiting for ever. The other is that this program can
excute, but when installing program,it would show" The mobile device is
no longer connected. please connect the device and run Application
Manager again. On device, It shows that there is a problem on
rapiclnt.exe, please report these to microsoft.
Form debug info , The rapiclnt.exe has aborted. who can help me? Tag: where can I find the stressutils.lib? Tag: 88928
Serial driver- 16 byte FIFO usage!
Hi all,
I am working on serial communication and my problem is that the CPU usage is
about 90% during serial communication. For this reason, i want to improve
performance by using the 16 byte FIFO of 16C84(or whatever the integrated
circuit used for serial communication).
How can i efficiently use this FIFO in program? I mean do you know of a way
to get 16 bytes in FIFO in 1 step rather than in 16 steps?
Any help is greatly appreciated... Thanks... Tag: where can I find the stressutils.lib? Tag: 88925
sdmmc porting problem report
Hi, all
I've got problems with porting the sdmmc 1.x driver from WCE 4.2 to WCE
(windows mobile) 5.0.
There is just little time given to me.
Plz, help me.
Is it possible to port the sdmmc to WCE 5.x in a short time?
The below is the problem list.
[Problem List]
1. At first, I got some problems when I ported it at Debug mode. One of them
was my device was halted and
it didn't work again. But after building by releas mode, it seemed to
work fine... maybe not I think now.
--> anyone knows why?
2. Finally I found that a card was detected and I was able to see the folder,
"Storage Card".
But I found out that the driver reported an error (ERROR_WRITE_PROTECT)
due to the SD hardware protection, but the OS didn't show up any message. The
driver calls SetLastError(ERROR_WRITE_PROTECT) but no answer..
I guess it seems not to notice other errors as well.
--> plz, help me.. it's driving me crazy. Is it related to the problem
number 3 below?
3. GetStorageID error
I've seen several lists with the problem but little bit different except
the list below.
Plz, answer how to solve it. -->
jojje! Have you found the answer.
------------------------------------------------------------------------------
------------------------
Hi,
I've seen discussions about GetStorageID here before, but not exactly this
error maybe. In the SDMemory driver (in file sdmemmain.cpp, function
GetStorageID) the following check of buffer space fails:
if( cBytes < (sizeof(*psid)+SD_SIZEOF_STORAGE_ID) )
GetStorageID return ERROR_INVALID_PARAMETER. cBytes is determined by
COREOS\STORAGE\STOREMGR\store.cpp and is set to sizeof
(STORAGE_IDENTIFICATION) (=16 bytes). SD_SIZEOF_STORAGE_ID is 12 and
sizeof(*psid) is 16, so this check will fail. What should I do?
I'm using CE 5.0 on a Samsung s3c2410 platform.
Thanks,
Jojje
------------------------------------------------------------------------------
-----------------------------------------------
Thank you! Tag: where can I find the stressutils.lib? Tag: 88922
Take long time to detect and recognize USB storage device
I believe this issue has been raised quite a few times.
We have been dismissing it as a problem associated with USB storage device's
controller and/or firmware.
Recently, one of our customer raised this issue again.
As the result, I spent some time to investigate and done some testing.
I found that "Hive-based" registry support component is causing the delay in
detecting and recogniztion USB storage device.
When I built a WinCE 5.0 image WITHOUT "Hive-based" registry support, the
system can detect and recognize USB flash storage device almost instantly.
When I built a WinCE 5.0 image WITH "Hive-based" registry support, it takes
the system more than 90 seconds to detect and recognize the very same USB
flash storage device.
I verified the above behavior on two separate x86 based system with
different CPU.
The above behavior is consistence on both system.
1. eBox-II using ICOP_Vortex86 BSP
2. Via Eden system using ViaCN BSP
I use "Internet Appliance" template with the default components to build the
image with the following components added.
- ATAPI Block driver
- FAT file system
- USB Storage Class driver
- Hive-based registry (excluded in some of the builts)
----------------------------------------------------------------------------------------------------------------------
I am hoping that some of you out there experienced similar problem, found a
solution and willing to share with everyone here.
Best Regards,
Samuel Phung
ICOP Tag: where can I find the stressutils.lib? Tag: 88917
Format a partition
I am trying to make a program to format a drive or partition. But the call
to FormatPartition() is always failed. Can someone take a look at my code
following and tell me what I did wrong? What I did here is to find a
partition matching "szDrive" and then format it. Thanks.
void FormatDisk(TCHAR* szDrive)
{
STOREINFO si;
si.cbSize = sizeof(STOREINFO);
HANDLE hss = FindFirstStore(&si);
if(hss == INVALID_HANDLE_VALUE)
{
printf("FindFirstStore failed.\n");
return;
}
do
{
wprintf(L"%s, %s, %s.\n", si.szDeviceName, si.szStoreName,
si.sdi.szProfile);
HANDLE hStore = OpenStore(si.szDeviceName);
if(hStore != INVALID_HANDLE_VALUE)
{
PARTINFO pi;
pi.cbSize = sizeof(PARTINFO);
HANDLE hsp = FindFirstPartition(hStore, &pi);
if(hsp != INVALID_HANDLE_VALUE)
{
do
{
wprintf(L"%s, %s.\n", pi.szPartitionName, pi.szVolumeName);
HANDLE hPar = OpenPartition(hStore, pi.szPartitionName);
if(hPar != INVALID_HANDLE_VALUE)
{
if(_wcsicmp(szDrive, pi.szVolumeName) == 0)
{
wprintf(L"DismountPartition: %d.\n", DismountPartition(hPar));
//Always return false
wprintf(L"FormatPartition: %d.\n", FormatPartition(hPar));
wprintf(L"MountPartion: %d.\n", MountPartition(hPar));
}
CloseHandle(hPar);
}
}
while(FindNextPartition(hsp, &pi));
FindClosePartition(hsp);
}
}
CloseHandle(hStore);
wprintf(L"-----------------------------\n");
}
while(FindNextStore(hss, &si));
FindCloseStore(hss);
}
Best regards, Tag: where can I find the stressutils.lib? Tag: 88916
DirectDraw CETK Failures
Hi,
I am porting the existing MQ1188 CE4.2 display to CE5.0. It is DDraw
based and I had to remove some stuff from it because the DirectDraw in
CE5.0 does not support some functions/struct/etc. anymore. Anyway, the
driver is operable for general use but it fails CETK DDraw test. Here
is one of the outputs of a subtest that fails:
14324475: BEGIN TEST: "Blt"
14324497: Video driver in use is DDI.DLL
14324510: Using NORMAL Cooperative Level
14324530: Creating Global DirectDraw Singleton
14324573: Testing Source Surface : Primary with 0 backbuffers -
(Unspecified Pixel Format)
14324609: Creating Global Primary DirectDrawSurface Singleton
14324630: Creating DirectDrawSurface Singleton
14324647: Creating and attaching a clipper
14324665: Testing Source Surface : Primary
14324691: Surface Unsupported
14324704: Surface Unsupported
14324717: Surface Unsupported
14324730: Testing Destination Surface : Offscreen surface
in video memory - (Unspecified Pixel Format)
14324766: Got OOM error creating surface
(DDERR_OUTOFMEMORY)
14324788: Done Destination
14324801: Testing Destination Surface : Offscreen surface
in system memory - (Unspecified Pixel Format)
14324836: Overlay not supported ... Skipping
14324856: Done Destination
14324868: Testing Destination == Source
14324900: Test will copy from (top,left,bottom,
right) (33,7,113,67)
14324926: To (top,left,bottom, right) (26,0,106,60)
14324949: Data Abort: Thread=87bc1400 Proc=88027c20 'tux.exe'
14324967: AKY=00000401 PC=00f8bb70(ddrawtk.dll+0x0002bb70)
RA=00183dee(tux.exe+0x00173dee) BVA=16183dee FSR=00000007
14325015: END TEST: "Blt"
I am wondering what causes the test to fail. Any suggestions are
greatly appreciated. Thanks in advance. PK Tag: where can I find the stressutils.lib? Tag: 88910
Install 5's QFEs or not?
Are the QFEs necessary? Is installing them preferred? It seems significant changes have
been made. If somebody is supplying me code, should I expect it to work properly with all
QFEs installed, or none installed?
--
#include <standard.disclaimer>
_
Kevin D Quitt USA 91387-4454 96.37% of all statistics are made up Tag: where can I find the stressutils.lib? Tag: 88904
About USB KITL function in EBOOT
I am trying to develop usb_rdnis_kitl instead of Ethernet_kitl in EBOOT.I
want to use usb interrupt mode to realize.But even to now i can not receive
the interrupt.I want to identify whether i am right.Can i use usb interrupt
mode in eboot?
Thanks Tag: where can I find the stressutils.lib? Tag: 88898
Does DirectShow support VBR in Windows CE 5.0?
Hi,
I used DirectShow to write a MP3 player.
I found it is OK for playing CBR mp3 files.
For some VRB mp3 files, we met some strange problems.
For example: Music time length is not correct.
Does DirectShow of Windows CE support all VBR mp3 files ?
Thanks.
Yu. Tag: where can I find the stressutils.lib? Tag: 88890
Help needed in creating installation utility for Installing the WinCE 5.0 driver on CEPC using .cab files for some device
I am using WinCE 5.0 and I have one system CEPC that has pentium II. I
have created some modem device driver on windows ce 5.0. I want to
create some installation utility to install the wince driver on CEPC
using .cab files. I have created .cab file using .inf file and
CabWizard utility.
Now I have Installed ActiveSync 4.2 in my system as i find that
CEAppMgr.exe" is a component of ActiveSync, specifically the agent
which handles the transfer of CAB files onto the device. It has created
the following registry entries in the host system.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App
Paths\CEAPPMGR.EXE.
I have also created .ini file that describes which .cab files
correspond to which platform
Now still i am not getting how to use CEAppMgr and my .cab files to
install
the driver on CEPC for some handset.
I find one setup.exe file that facilitates in installing the driver and
uses the .ini file as a command line argument.
Reference: http://www.pocketpcdn.com/articles/creatingsetup.html
When i execute this I am getting the message "Application Manage can
run only when a mobile device is connected"
Although i have booted the CEPC using run time image created on my host
system and also attached the nokia handset to install the driver, then
why i am getting the dialogue "Application Manage can run only when a
mobile device is connected"
Please suggest me.....
Thanx for your suggestions in advance Tag: where can I find the stressutils.lib? Tag: 88888
FAILED TO LAUNCH WINCE IMAGE PROPERLY
Hello Everybody,
I am using Platform builder 5.0 to create a wince image for a device based
on intel PXA255 architecture.
I already built images for this target and managed to load it, program it
into flash and run it. The problem is that the other day I added support for
.NET CF2 and since then I cannot boot the device properly. I have retruned
back to my first image (that used to work) but I observe the same behavior. I
join to this post some debbuging messages if it can help..
The strange thing is the following : when the system is booting, and I am
using the debbuger, after the system is started I can run programms from
platform builder like repllog or ip config, I can watch the running processes
and threads too, but since I get this "4294838867 PID:634a25da TID:33e38f2
0x83378c28: LanaUp: (NB) pLana 378C00 (1) up Addr E71DFEA9 Mask FFFF Bcast
FFFFFEA9" debug line I cannot communicate with the target anymore...
If anyone could help..
Debbuging messages :
4294806832 PID:c31886c2 TID:3074b46 0x8306c400: [TIMESVC DST] System
Started...
4294806860 PID:c31886c2 TID:3074b46 0x8306c400: [NOTIFY] CeRunAppAtEvent -
clearing system event registration for
\\.\Notifications\NamedEvents\DSTTzChange
4294806862 PID:c31886c2 TID:3074b46 0x8306c400: [NOTIFY] CeRunAppAtEvent -
clearing system event registration for
\\.\Notifications\NamedEvents\DSTTimeChange
4294806864 PID:c31886c2 TID:3074b46 0x8306c400: [NOTIFY]
RemoveAppRunAtTime::Starting Database Sweep...
4294806882 PID:c31886c2 TID:3074b46 0x8306c400: [NOTIFY] SetUserNotification
(or replacing 00000000)
4294806882 PID:c31886c2 TID:3074b46 0x8306c400: [NOTIFY]
SetUserNotification::Registring system watch: event 12 app
\\.\Notifications\NamedEvents\DSTTzChange args AppRunAfterTzChange
4294806892 PID:c31886c2 TID:3074b46 0x8306c400: [NOTIFY] SetUserNotification
(or replacing 00000000)
4294806893 PID:c31886c2 TID:3074b46 0x8306c400: [NOTIFY]
SetUserNotification::Registring system watch: event 1 app
\\.\Notifications\NamedEvents\DSTTimeChange args AppRunAfterTimeChange
4294806911 PID:c31886c2 TID:3074b46 0x8306c400: [NOTIFY]
RemoveAppRunAtTime::Starting Database Sweep...
4294806912 PID:c31886c2 TID:3074b46 0x8306c400: [NOTIFY] SetUserNotification
(or replacing 00000000)
4294806919 PID:c31886c2 TID:3074b46 0x8306c400: [NOTIFY]
SetUserNotification::Setting event semaphore
4294806919 PID:c31886c2 TID:3074b46 0x8306c400: [NOTIFY]
ProcessDatabase::started at local time 08/23/2006 09:20:50
4294807086 PID:c31886c2 TID:c309d152 0x830b29b0: HTTPD: Initializing log files
4294807106 PID:c31886c2 TID:c309d152 0x830b29b0: >>> Loading module
secur32.dll at address 0x03920000-0x03929000 (RW data at
0x01F98000-0x01F9852C)
4294807118 PID:c31886c2 TID:c309d152 0x830b29b0: SECUR32: Loading package
DLL: 'schannel.dll'.
4294807120 PID:c31886c2 TID:c309d152 0x830b29b0: >>> Loading module
crypt32.dll at address 0x03180000-0x031FE000 (RW data at
0x01F03000-0x01F04031)
4294807123 PID:c31886c2 TID:c309d152 0x830b29b0: >>> Loading module
schannel.dll at address 0x038E0000-0x0391E000 (RW data at
0x01F95000-0x01F96294)
4294807376 PID:c31886c2 TID:c309d152 0x830b29b0: SECUR32: Loading package
DLL: 'ntlmssp.dll'.
4294807377 PID:c31886c2 TID:c309d152 0x830b29b0: SECUR32: Loading package
DLL: 'kerberos.dll'.
4294807377 PID:c31886c2 TID:c309d152 0x830b29b0: SECUR32: Loading package
DLL: 'spnego.dll'.
4294807379 PID:c31886c2 TID:c309d152 0x830b29b0: >>> Loading module
spnego.dll at address 0x036F0000-0x03708000 (RW data at 0x01F65000-0x01F65EF0)
4294807441 PID:c31886c2 TID:c309d152 0x830b29b0: SECUR32: Package [1] loaded
-- 'Microsoft Unified Security Protocol Provider'
4294807444 PID:c31886c2 TID:c309d152 0x830b29b0: SECUR32: Package [2] loaded
-- 'Microsoft TLS 1.0'
4294807447 PID:c31886c2 TID:c309d152 0x830b29b0: SECUR32: Package [3] loaded
-- 'Microsoft SSL 3.0'
4294807450 PID:c31886c2 TID:c309d152 0x830b29b0: SECUR32: Package [4] loaded
-- 'Microsoft SSL 2.0'
4294807453 PID:c31886c2 TID:c309d152 0x830b29b0: SECUR32: Package [5] loaded
-- 'NTLM'
4294807456 PID:c31886c2 TID:c309d152 0x830b29b0: SECUR32: Package [6] loaded
-- 'Kerberos'
4294807459 PID:c31886c2 TID:c309d152 0x830b29b0: SECUR32: Package [7] loaded
-- 'Negotiate'
4294807459 PID:c31886c2 TID:c309d152 0x830b29b0: SECUR32: Locating package
'NTLM' ...
4294807460 PID:c31886c2 TID:c309d152 0x830b29b0: found (0x0004F3F0).
4294807480 PID:634a25da TID:33e38f2 0x83378c28: VMini:: Detected DHCP
[DISCOVER]
4294809921 PID:634a25da TID:33e38f2 0x83378c28: VMini:: Detected DHCP
[DISCOVER]
4294814855 PID:634a25da TID:33e38f2 0x83378c28: VMini:: Detected DHCP
[DISCOVER]
4294822857 PID:634a25da TID:33e38f2 0x83378c28: GetDhcpLease(VMINI1):
failed badly!
4294823223 PID:634a25da TID:33e38f2 0x83378c28: VMini:: Detected DHCP
[DISCOVER]
4294824231 PID:634a25da TID:33e38f2 0x83378c28: VMini:: Detected DHCP
[DISCOVER]
4294826925 PID:634a25da TID:33e38f2 0x83378c28: VMini:: Detected DHCP
[DISCOVER]
4294830933 PID:634a25da TID:33e38f2 0x83378c28: VMini:: Detected DHCP
[DISCOVER]
4294838867 PID:634a25da TID:33e38f2 0x83378c28: LanaUp: (NB) pLana 378C00
(1) up Addr E71DFEA9 Mask FFFF Bcast FFFFFEA9
I also have these messages :
!AFD: Unable to load library 'irdastk.dll'
4294791596 PID:634a25da TID:63487f5e 0x834a44e4: !AFD: Unable to load
library 'btd.dll'
4294791597 PID:634a25da TID:63487f5e 0x834a44e4: !AFD: Unable to
GetProcAddress of ReadyToGo in 'Netbios'
4294791598 PID:634a25da TID:63487f5e 0x834a44e4: !AFD: Unable to
GetProcAddress of ReadyToGo in 'Redir'
4294791598 PID:634a25da TID:63487f5e 0x834a44e4: !AFD: Unable to
GetProcAddress of ReadyToGo in 'Dhcp'
4294791614 PID:634a25da TID:63487f5e 0x834a44e4: !AFD: Unable to load
library 'IPNat.dll'
4294791614 PID:634a25da TID:63487f5e 0x834a44e4: !AFD: Unable to
GetProcAddress of ReadyToGo in 'Ws2Instl'
or
FSD_MountDisk: mounting volumes for hDsk=000BAC70
4294792375 PID:234a14ee TID:34872f6 0x834a1000: FATFS!OpenVolume: access
time updates disabled
4294792375 PID:234a14ee TID:34872f6 0x834a1000: FATFS!OpenVolume: event
logging enabled
4294792375 PID:234a14ee TID:34872f6 0x834a1000: FATFS!OpenVolume: automatic
scanning disabled
4294792375 PID:234a14ee TID:34872f6 0x834a1000: FATFS!OpenVolume: write
verify disabled
4294792375 PID:234a14ee TID:34872f6 0x834a1000: FATFS!OpenVolume: extra FAT
on format disabled
4294792375 PID:234a14ee TID:34872f6 0x834a1000: FATFS!OpenVolume: force
write through enabled
4294792378 PID:234a14ee TID:34872f6 0x834a1000: FATFS!OpenVolume: Codepage = 1
4294792380 PID:234a14ee TID:34872f6 0x834a1000: FATFS!OpenVolume: Number of
path cache entries = 50
4294792382 PID:234a14ee TID:34872f6 0x834a1000: FATFS!InitVolume: driver
reports fewer sectors than BPB! (12347 vs. 12851)
Best regards Tag: where can I find the stressutils.lib? Tag: 88886
HCD default IST priority?
Hi all,
I am examining a usb host driver in CE5. There is a place that the
program does qurey for IST priority.
********************************************************
RegQueryValueEx(
hActiveKey,
TEXT("Priority256"),
NULL,
&valType,
(PUCCHAR)&priority,
&valLength
)
********************************************************
here hActiveKey point to HLM\Drivers\Active\27, and has the content
********************************************************
[HKEY_LOCAL_MACHINE\Drivers\Active\27]
"Hnd"=dword:000569e0
"Name"="HCD3:"
"Key"="Drivers\\BuiltIn\\HCD_FSH1"
"BusParent"=dword:00030da0
"InterfaceType"=dword:00000000
"BusName"="BuiltInPhase1_0_23_0"
********************************************************
As can be seen, no "Priority256" is in it. But the RegQueryValueEx get
a value 0x65(101) to priority, how this value is retrieved, is it the
default value for HCD type driver? Tag: where can I find the stressutils.lib? Tag: 88884
Virtual keyboard in WinCE based devices
Our project has a touch display which has a GUI. Our problem is
whenever any edit box is opened for editing character 3 is cont. sent
to the edit box has an input. Even normally on the WinCE desktop if we
1. click RUN in the start menu or
2. rename a file etc...
for all these functions char 3 will be cont fed to the editable box
thanks n advance
mkm Tag: where can I find the stressutils.lib? Tag: 88878
Hi there,
I want to custom a stress module, which need to link stressutils.lib.
But where can I find it?