Has anybody created a custom Directshow filter on windows mobile 5.0 PPC?
Hi,
Is there anybody who is able to successfully run a custom filter on
Windows Mobile 5.0?
I have certain directshow filters on Win2000, which I have to port to
Windows Mobile 5.0. I created a "Smart Device Win32 Dll
application" (Windows Mobile 5.0 PPC) on VS2005. I created an empty
project and added a .cpp and a .def file and added the filter code.
The code I used is similar to the one given by Gary Daniels at:
http://groups.google.com/group/microsoft.public.smartphone.developer/browse_thread/thread/c9a4b3a393d4aa8a/9a025c9c22b01105?lnk=st&q=CNullRend&rnum=1
When I try to register it (using regsvrce), it fails at
DECLARE_IUNKNOWN insided CNullRend Class definition. When I replaced
the DECLARE_IUNKNOWN macro with the expansion:
STDMETHODIMP QueryInterface(REFIID riid, void **ppv) {
return GetOwner()->QueryInterface(riid,ppv);
};
STDMETHODIMP_(ULONG) AddRef() {
return GetOwner()->AddRef();
};
STDMETHODIMP_(ULONG) Release() {
return GetOwner()->Release();
};
I found that it fails at return GetOwner()->AddRef(); with the error:
"Unhandled exception at 0x013c12e0 in regsvrce.exe: 0xC0000005: Access
violation reading location 0x00000001."
The same is the case with any directshow filter I try to register on
WM5.0.
Many people have faced a similar problem:
1.<http://www.itpost.cn/en/1951/posts/195130814.shtml>
2.http://groups.google.co.in/group/microsoft.public.pocketpc.developer/
browse_thread/thread/73d9baf31bf9f877/18de5059b33ec9c3?lnk=st&q=Sample
+Grabber+windows+mobile&rnum=2&hl=en#18de5059b33ec9c3 <http://
groups.google.co.in/group/microsoft.public.pocketpc.developer/
browse_thread/thread/73d9baf31bf9f877/18de5059b33ec9c3?lnk=st&q=Sample
+Grabber+windows+mobile&rnum=2&hl=en>
3.http://groups.google.co.in/group/
microsoft.public.windowsce.app.development/browse_thread/thread/
7f9b633076e74d10/4ccec3d790c3e69c?hl=en#4ccec3d790c3e69c <http://
groups.google.co.in/group/microsoft.public.windowsce.app.development/
browse_thread/thread/7f9b633076e74d10/4ccec3d790c3e69c?hl=en>
4.<http://groups.google.co.in/group/
microsoft.public.multimedia.directx.dshow.programming/browse_thread/
thread/f26cc032d3e216c5/d8a1ba84232f4288?lnk=st&q=GetOwner
+AddRef()&rnum=16&hl=en>#
5.<http://www.eggheadcafe.com/forumarchives/
win32programmerdirectxaudio/sep2005/post23723142.asp>
6. <http://groups.google.co.in/group/
microsoft.public.win32.programmer.directx.audio/browse_thread/thread/
4f8a885178bc09a5/4c45d8f2100108d7?lnk=st&q=GetOwner
+AddRef()&rnum=7&hl=en>#
But I have not found any solution so far.
Please help me resolve this issue.
Regards,
Teja. Tag: Media player for Windows Mobile 5.0 Tag: 119342
Memory limit reached with Windows Mobile
Hello,
We are currently having memory issues with our Pocket PC application.
We are using PsionTeklogix WorkAbout Pro devices with Windows Mobile
2003 and the Compact Framework 1.0 SP3.
The device has 95.80 Mb of RAM, 30 Mb of ROM and a 512 Mb SD-Card.
Most of our application is loaded directly from the SD-Card.
The limitations we have experienced are the following:
- 25 Mb per process
- 12 Mb for the DLLs (independently from the number of
processes)
- DLLs can only be loaded in the "first" 12 Mb of each
process
For example:
1. If a process loads 4 Mb of DLLs, then 8 Mb of data, he can no
longer load DLLs, but can still load data. A second process launched
in parallel will be able to load a maximum 8 Mb of new DLLs, then
data.
2. If a process loads 12 Mb of data, it can no longer load a single
DLL.
What happens in our application is that at some point we reach the 12
Mb limit and every attempt at loading a library after that fails.
Such behaviour is described here: http://msdn2.microsoft.com/en-us/library/ms836325.aspx
"Now consider what to do if you encounter a potential problem.
Suppose
Process 2 loaded DLL C that was quite large as shown in Figure 6.
Note
that process 3 has the bad luck of being both a large .exe file and
loading a DLL after process 2 had loaded its rather immense DLL C.
Clearly, process 3 is close to trouble if it attempted to load any
more DLLs that had not been loaded already by other processes. This
is
a somewhat contrived example because the size of DLL C would have to
be incredibly large, or Process 2 would have to load a large number
of
DLLs for this problem to occur naturally."
We do have a large number of DLLs, some of which are quite large and
the previous example is no longer contrived in our case.
To avoid the problem, we tried several approaches:
- Free some memory in the critical 12 Mb area when we need to load
a new DLL
o The compact framework doesn't seem to free the memory for
native DLLs, but only for its own future use.
o We tried to artificially create 12 Mb of data before
loading our real data, and then free the 12 Mb of artificial data to
restore some free memory in the critical memory space, but no new DLL
could be loaded afterwards.
o We even tried to broadcast a WM_HIBERNATE message to
force the Compact Framework to free some memory, but in vain.
- Migrate our application to Windows Mobile 2005 and the Compact
Framework 2.0
o We had the same memory issues.
- Split our application in several processes.
o We still reach the 12 Mb limit for the DLLs, no matter
how many processes are involved.
o Loading our DLLs in a separate process doesn't change
the
behaviour.
- Load all our DLLs before loading data.
o This approach has been quite successful so far.
o We still have some issues with several functionalities
such as HTTPS WebService calls, which fail if the very first call is
made when the memory has already passed the 12 Mb limit:
"System.Net.WebException - Could not establish secure channel for
SSL/
TLS".
Is there something to pre-load so that our HTTPS call will already
have its requirements loaded before the memory has passed the 12 Mb
limit?
Did we miss something in our understanding of how memory is managed
in
Windows Mobile 2003?
Our application requires more than 12 Mb of memory (most of which is
data and C# .Net libraries), and needs to be able to load new DLLs at
all time, what would
you recommend in this situation?
Thank you in advance,
Sincerely,
--
Patrick AVENEL Tag: Media player for Windows Mobile 5.0 Tag: 119341
Running Processes List
Hi ,
I am trying to get the names of the running programs in PPC using
EnumWindows().
I am getting all running programs and additionally "Desktop","Programs" and
"MS_SIPBUTTON". If I try to close these, PPC getting hanged.
I can exclude these three from list but if user program also is the same
name then problem comes to differentiate between these two.
I want to get the running programs list in PPC .
Path is : Start -> Settings->System->Memory->Running Programs.
Can anybody help me please.
Thanks
Supriya. Tag: Media player for Windows Mobile 5.0 Tag: 119338
InvokeRequired?
Hello
Why is there no Me.InvokeRequired on Compact Framework?
Is there an alternative?
Thanks
Hans Tag: Media player for Windows Mobile 5.0 Tag: 119334
Context Menu on Treeview vb.net
Hi, how can i show a context menu on a treeview control when i hold down the
key on a node.
all with vb.net Tag: Media player for Windows Mobile 5.0 Tag: 119333
Q: How to deploy VS2005 MFC PocketPC application?
HI All,
I am using VS2005 to develope a MFC application for PocketPC 2003
SE. It seems just copy the built executable files to my pocket PC is not
available. I am wondering what files should be copied with my executable
to run it?
Best regards,
Justin Tag: Media player for Windows Mobile 5.0 Tag: 119329
Unloading SSP's in WMDC
Previously, you could always run the command wcesmgr.exe /quit in order to
force an SSP to unload.
With WMDC, there is no /quit command to unload your SSP. So how do you get
unloaded so you can update your SSP binaries? Via Restart Manager. Vista's
new Restart Manager enables you to make a request to apps to unload during
installs. It provides a way to get any app to uninstall, regardless of
whether or not in provides /quit switches.
We do hear you loud and clear that using a command line with a switch is
MUCH easier than the Restart Manager API set. We are working on replacing
this.
However, in the meanwhile, for those of you who need to unload their SSP's,
here is some sample code.
--
Kyle Lampe
Lead Software Design Engineer
ActiveSync
Windows Mobile
This posting is provided "AS IS" with no warranties, and confers no rights.
Este mensaje esta mandado "COMO ES" sin guarantias y no da derechos
ningunos.
#include "windows.h"
#include "restartmanager.h"
int _tmain(int argc, _TCHAR* argv[])
{
DWORD dwVal = ERROR_SUCCESS;
DWORD dwSessionHandle = (DWORD)-1;
WCHAR wszSessionKey[CCH_RM_SESSION_KEY+1];
UINT nProcInfo = 100;
UINT nProcInfoNeeded;
DWORD lpdwRebootReason = 0;
//for demo purposes, hardcoded paths are used.
DWORD nFiles = 2;
LPWSTR rgsFiles[] = { L"c:\\windows\\windowsmobile\\wmdc.exe",
L"c:\\windows\\windowsmobile\\wmdhost.exe" };
RM_PROCESS_INFO *rgProcs = new RM_PROCESS_INFO[nProcInfo];
if (NULL == rgProcs)
{
dwVal = ERROR_NOT_ENOUGH_MEMORY;
goto RM_END;
}
// Starting Session
dwVal = RmStartSession(&dwSessionHandle, 0, wszSessionKey);
if (ERROR_SUCCESS != dwVal)
goto RM_END;
// Register items
dwVal = RmRegisterResources(dwSessionHandle, nFiles, (LPCWSTR*)
rgsFiles, 0, NULL, 0, NULL);
if (ERROR_SUCCESS != dwVal)
goto RM_END;
// Getting affected apps
dwVal = RmGetList(dwSessionHandle, &nProcInfoNeeded, &nProcInfo,
rgProcs, &lpdwRebootReason);
if (ERROR_SUCCESS != dwVal)
goto RM_END;
// Shutdown WMDC processes
dwVal = RmShutdown(dwSessionHandle, 0, NULL);
if (ERROR_SUCCESS != dwVal)
goto RM_END;
RM_END:
if (NULL != rgProcs)
delete [] rgProcs;
// Clean up session
if (-1 != dwSessionHandle)
RmEndSession(dwSessionHandle);
return 0;
} Tag: Media player for Windows Mobile 5.0 Tag: 119328
WMDC developer doc badly needed...
Has anyone come across useful information about upgrading ActiveSync service
providers (SSP) to make them compatible with WMDC/Vista? In one single
instance, I was able to synchronize all my custom data via my service
providers (upon creating a partnership). That was on a clean Vista Premium
laptop with WMDC freshly downloded and installed (I don't know the WMDC build
back then, on Feb 2). All my data flawlessly synchronized from my PPC to that
laptop. Boy, was I happy... But that was short-lived. For some reasons, at
this moment, none of my custom data synchronizes. In fact, I experience all
sorts of issues (e.g. WMDC crashing, not synchronizing, etc) when my service
providers are activated on the device (i.e. synchronization registry entries
set). I've tried re-creating partnerships, re-downloading/re-installing WMDC,
shutting down anti-virus/firewall, using WM 2003, SE and 5.0 devices, etc.
Same exact results. All I can say at the moment is that my sync providers do
not work under Vista/WMDC, whereas they've been working fine on XP for 3+
years.
Any pointer to a WMDC service provider ref guide/doc/info/tip/help would be
immensely welcome. That's a critical issue for me (i.e. our customes) at the
moment. Tag: Media player for Windows Mobile 5.0 Tag: 119327
Zoom On Region
How would I zoom on a region like in PPC's picture viewing Album?
StretchBlt() would need some endpoints that I'm not sure how to calculate.
Thanks in advance! Tag: Media player for Windows Mobile 5.0 Tag: 119326
Remove Pocket Internet Explorer
Hi,
Does anyone know how I can either remove pocket internet explorer
completely, or stop access to it? I have removed all shortcuts to it, but it
can still be launched from some programs, such as TomTom etc.
Many Thanks
Matt Tag: Media player for Windows Mobile 5.0 Tag: 119314
Automatic configuration of wi-lan settings
Hi, Just shipped 200 pocket pcs to a customer who now wants to know if
we can configure the network on the ppc programatically.
When the ppcs lose battery, the wifi card driver gets lost and all the
network settings go with it. User on the ground isn't going to want to
mess around with network SSIDs and encryption keys.
I checked the registry before and after installation and there are a
small number of new keys but - and this doesn't surprise me - it looks
like the wireless settings are encrypted. Have just tried stuffing
these settings into an unsuspecting ppc and it's now dead.
Any suggestions? Maybe I should try the wifi card vendor. Tag: Media player for Windows Mobile 5.0 Tag: 119313
Unique Device IDs for older Pocket PCs
I would like to develop a means to generate a unique ID for licensing purposes
for as wide a range of Pocket PCs as possible. I know that the really ancient
Pocket PCs did not have hardwired device IDs, but what about the others?
I have seen two methods discussed in this forum. One is calling:
KernelIoControl(IOCTL_HAL_GET_DEVICEID,...
The other method is calling:
GetDeviceUniqueID();
The second method is an API that is only available under WM5, but I can
certainly use it on Pocket PCs of that type. The first method, according to
riki's posting (Sun, 18 Feb 2007 18:57:20 -0800) is a "priviledged API, so you
might run into issues on some devices".
Now here is what I have found on some Pocket PCs:
1. On an iPAQ rx1955 (WM 5.1.1702 Build 14367.1.0.2), the KernelIoControl method
works fine and gives me the same ID that is shown as the "UUID" in the Asset
Viewer under Settings. My application is unsigned and so is as un-priviledged
as you can get, so I am confused as to why it worked, despite riki's warning.
2. On a Dell Axim, pre-2003 (WinCE 3.0.11171 Build 11178). the call to
KernelIoControl returns FALSE. And of course GetDeviceUniqueID is out of the
question on this old OS. But there is a UUID shown under Settings, System
Information. Is there any way I can get that ID in my application?
3. On an iPAQ 3635 (WinCE 3.0.9348 Build 9616), KernelIoControl also returns
FALSE. There is no UUID shown under System Information, but there is a "Asset
Tag" and a "Serial Number" that are shown, and they are both the same
12-character alphanumeric string. Is there any way I can get that ID?
It is OK if I have to exclude the old iPAQ (made in 2001). But there are a lot
of Axims out there and some of them have not been upgraded to PPC 2003. I would
like to support everything back to 2002.
Robert Scott
Ypsilanti, Michigan Tag: Media player for Windows Mobile 5.0 Tag: 119309
Problem with on/off pocketPC
Hi
I'm developing an aplication which using IrDAClient. It's runing without
problems. Complications set in switch pocketPC to the sleep mode. After
waking up the device, the aplication is still running bad no communicating
via IrDA.
How I get the events switching modes of pocketPC? How I abort the IrDA
comunnication and sequentially establishment it?
Any ideas will be much appreciated.
Best regard.
Tomas Tag: Media player for Windows Mobile 5.0 Tag: 119304
Sim Contacts from OID
I created a native DLL that adds a context menu to contacts app of WM5 by
implementing IContextMenu (Credit goes to kind hearted people in this group).
The OID of the contact that user selected is retrieved using ItemRefArray. I
pass this OID to a c# application to display the contact details using POOM.
But as POOM does not support Sim Contacts, I am not able to determine which
contact the user selected. OpenNETCF supports retrieving SimContacts, but not
with OID.
So my problem is how to retrieve the Sim Contact details from it's OID ?
Even if not available in C#, a native method will do...
Pls Help... Tag: Media player for Windows Mobile 5.0 Tag: 119299
Deactivating Microsoft Voice Command recognition feature
Hi,
I'm designing the "perfect companion" for Microsoft Voice Command, but for
this to work I need to find a way to temporarilly deactivate MVC's voice
recognition and reenable it when I quit my program... In other words, I'd
like MVC to stop listening to my voice commands when I hit the designated
button...
I've been looking EVERYWHERE in the registry <:-) ... doing file compares of
"before and after state" of the registry with no luck...I just can't find the
key that will tell MVC to stop listenning...
Can you help me please?
Thx
--
Johnny Tag: Media player for Windows Mobile 5.0 Tag: 119296
Communications Technique
We want our PPC devices to be able to connect with some of our equipment out
in the field to upload or download a file and read equipment status.
Currently, we have Serial connections on the equipment, but we might be able
to go BlueTooth in the future.
How should I go about creating this? Should I look into Sockets, or is there
something else?
I need some help getting started.
Thanks! Tag: Media player for Windows Mobile 5.0 Tag: 119282
Video compression
Hi all
Can anyone offer any information on achieving video compression on Pocket
PC? I am capturing screen images and want to send these to a remote machine
over TCP/IP. I want the bandwidth kept as low as possible so that it can
run over a modem if possible.
I've searched the web but not been able to find anything.
Thanks
Pete Tag: Media player for Windows Mobile 5.0 Tag: 119280
Developers required in Egypt
Hi..!!
We are an exceptional organization searching for Egyptian junior developers.
If you are interested and have the required
qualifications, please sendyour CV to jobsebi@yahoo.com. Tag: Media player for Windows Mobile 5.0 Tag: 119272
CAB containing another CAB
Hi all!
I would like to make a CAB file containing another CAB.
The target is NOT to install all the needed libraries manualy.
It would be nice if one CAB automaticly installs all the others.
It should function for WM5.
Is their some way to do it?
Thank you in advance Tag: Media player for Windows Mobile 5.0 Tag: 119268
ANN: zlibCE release
OpenNETCF is proud to announce the availability of a new free, open-source
project.
OpenNETCF now provides a "port" of the zlib 1.2.3 library for Windows
CE-based devices, including Pocket PCs, SmartPhones, Windows Mobile devices
as well as the entire realm of generic Windows CE devices. We provide the
full original source, modified slightly for the CE build environment, along
with Microsoft Visual Studio 2005 Solution and Project files and compiled
binaries for ARMv4 and ARMv4I for CE 4.2 and CE 5.0.
We also provide a CF 2.0 managed wrapper for the native library and a C# and
VB sample for usage.
We assume that native developers don't need any usage samples or that they
can figure it out from the C# sample if needed.
Enjoy...
--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
-- Tag: Media player for Windows Mobile 5.0 Tag: 119267
failure to debug network card driver with CE Testkit
Hi
I try to debug my virtual network card driver with CE Testkit:
I get the this error:
f2989fba: ndt_1c ERROR: Failed register the NDT test protocol driver (code
2)
f2989fba: ndt_1c ERROR: NDTStartup for 'MYADAPTER1' failed with
hr=0x80070002
f2989fba: ndt_1c ERROR: Failed close the NDT test protocol driver (code 6)
f2989fba: ndt_1c ERROR: Failed deregister the NDT test protocol driver (code
1168)
"\ndt_1c.dll" returned SPR_FAIL while handling the SPM_SHELL_INFO message.
This DLL has been unloaded as requested.
I have already copied ndt.dll and ndt_1.c to root folder on my pocket pc.
What have i doing wrong ? My driver is running in debug mode. Tag: Media player for Windows Mobile 5.0 Tag: 119266
failure to debug network card driver with CE Testkit
Hi
I try to debug my virtual network card driver with CE Testkit:
I get the this error:
f2989fba: ndt_1c ERROR: Failed register the NDT test protocol driver (code
2)
f2989fba: ndt_1c ERROR: NDTStartup for 'MYADAPTER1' failed with
hr=0x80070002
f2989fba: ndt_1c ERROR: Failed close the NDT test protocol driver (code 6)
f2989fba: ndt_1c ERROR: Failed deregister the NDT test protocol driver (code
1168)
"\ndt_1c.dll" returned SPR_FAIL while handling the SPM_SHELL_INFO message.
This DLL has been unloaded as requested.
I have already copied ndt.dll and ndt_1.c to root folder on my pocket pc.
What have i doing wrong ? My driver is running in debug mode. Tag: Media player for Windows Mobile 5.0 Tag: 119265
failure to debug network card driver with CE Testkit
Hi
I try to debug my virtual network card driver with CE Testkit:
I get the this error:
f2989fba: ndt_1c ERROR: Failed register the NDT test protocol driver (code
2)
f2989fba: ndt_1c ERROR: NDTStartup for 'MYADAPTER1' failed with
hr=0x80070002
f2989fba: ndt_1c ERROR: Failed close the NDT test protocol driver (code 6)
f2989fba: ndt_1c ERROR: Failed deregister the NDT test protocol driver (code
1168)
"\ndt_1c.dll" returned SPR_FAIL while handling the SPM_SHELL_INFO message.
This DLL has been unloaded as requested.
I have already copied ndt.dll and ndt_1.c to root folder on my pocket pc.
What have i doing wrong ? My driver is running in debug mode. Tag: Media player for Windows Mobile 5.0 Tag: 119264
how to remove ghost applications?
Hi all,
can someone tell me how to remove applications that are duplicated
in the Program Files folder (i.e. Programs)?
I ended up with the same program multiple times with the same icon,
and when I try to remove it from the Settings>System>Remove Programs
The program apparently gets removed, but the icons remain there.
Thanks
Carlos. Tag: Media player for Windows Mobile 5.0 Tag: 119263
Multi-Line Caption on Button
Does anyone have a qucik suggestion how to get a button to display mutiple
lines of text in the caption? Any help appreciated.
Also, any suggestions for some great custom controls in addition to the
Resco stuff? Tag: Media player for Windows Mobile 5.0 Tag: 119261
Bringing Window To Top
I have a hidden C# form on WM5.0 CF 1.1 PPC / O2 ATOM, that gets active when
an event triggers(sms interception). I used this.activate() in CF 2.0, but
there is no such thing in 1.1. I tried
this.show(),
this.BringToFront(),
this.WindowState=System.Windows.Forms.FormWindowState.Normal;
none of these worked... However, if i display a messagebox, the window shows
up.
I was tring to use BringingWindowToTop(hwnd) API using DLLImport,
but I am unable to get myown window's handle.
Pls Help... Tag: Media player for Windows Mobile 5.0 Tag: 119260
MessageReceived
I've been looking at Maarten Struys' Webcasts on SMS interception and
am trying it myself (in VB not VC), but have hit an insurmoutable
problem,
I cannot access the MEssageReceived event, and according to
http://msdn2.microsoft.com/en-us/library/microsoft.windowsmobile.pocketoutlook.messageinterception.aspx
it does not exist does not exist...
Can anyone advise please?
Tym Tag: Media player for Windows Mobile 5.0 Tag: 119257
How to monitor performance of an application.
Hello All,
I am a newbie to Windows Mobile development!!!
At present I am trying to develop a program that monitors the
performance of an application. The kind of information I am
interested in is the CPU/Process/Thread and memory performance.
Specifically, I would like to track the following
CPU usage
Used Memory on Phone
Free Memory on Phone
Number of Processes running
Number of threads running
Number of Filehandles currently open
Memory used by a process/thread
Process/Thread CPU activity.
I have looked at the MSDN and searched on the web for some appropriate
API for this, but have had no real success. The closest thing I have
come to is the pdh library, but I don't think there's a version
available for Windows Mobile. Help!!!!!
Can anyone help me, or direct me to the appriopriate API's so I can
get the above information?
Does anyone have any other sugestions on what else I could monitor for
a running application?
Does anyone have any example code they can direct me to? I am writing
this in C++.
Many thanks in advance,
Richard Tag: Media player for Windows Mobile 5.0 Tag: 119252
Menus
Hello
I'm trying to create my menus with CreateMenu() and CreatePopupMenu()
and add them to the OK and Help (buttons/menus) (Windows Mobile 5.0).
The problem is that i have the handle only in WM_INITMENUPOPUP HMENU
hmenuPopup = (HMENU) wParam; Now if i use AppendMenu to add submenus
to this hmenuPopup everything is ok, but if i add a submenu that pops
another submenu with :
AppendMenu (hmenuPopup, MF_STRING | MF_ENABLED | MF_POPUP,
(UINT)hSuperMenu, TEXT("T&hemes"));
and then click on that submenu to open its level2 popup, i will
receive the WM_INITMENUPOPUP and i enter an infinite cycle.
The reason why i don't wanna use the Resource Editor to build my menu
is that i only managed to use TrackPopupMenu() is like this :
// Show PopupMenu
hGrrrr = LoadMenu(g_hInst, MAKEINTRESOURCE(IDR_MENU));
hContextMenu = GetSubMenu(hGrrrr, 0);
TrackPopupMenu(hContextMenu, TPM_LEFTALIGN, 30, 100, 0, hwndGlobal,
NULL);
Fix to problem 1 fixes 2 or a fix to problem 2 fixes 1. Please come
with an ideea. Thanks Tag: Media player for Windows Mobile 5.0 Tag: 119250
pocket pc+oracle 10g+oracle lite help!!!!!
hi i have a new project with pocket pc.i must use oracle 10g database
and on my pocket pc i must use my database.but i 'll be senkronization
and online application.
please help me Tag: Media player for Windows Mobile 5.0 Tag: 119247
problem in playing mp3 file
Hi All,
I'm trying to play an .mp3 file using DirectShow on Windows Mobile
5.0.The RenderFile() which works fine for .wav is failing
(-2147220970,VFW_E_NOT_FOUND)for .mp3 file.
Now im trying to manually connect the filters in the following order.
Source filter->>DMO Decoder->>Renderer filter.
But the Connect() is returning a -ve value,-2147220969
(VFW_E_CANNOT_CONNECT, No combination of intermediate filters could be
found to make the connection. ). it returns this even for decoder to
renderer connection also..
SOURCE CODE:
This the code used instead of RenderFile():
res =pGraph->AddSourceFilter(L"\
\Cuppy_Cake_Song.mp3",_T("Source"),&pSource);
res = CoCreateInstance(CLSID_DMOWrapperFilter, NULL, CLSCTX_INPROC,
IID_IBaseFilter, (void **)&pAudioTransform);
// Initialize the Audio DMO Wrapper
res = pAudioTransform->QueryInterface(&pAudioWrapperFilter);
res = pAudioWrapperFilter->Init(CLSID_DMODECODER,
DMOCATEGORY_AUDIO_DECODER);
res =pGraph->AddFilter (pAudioTransform, L"AUDIO DMO Decoder");
IPin *pSourceOut = GetOutPin(pSource, 0);
IPin *pGrabIn = GetInPin(pAudioTransform, 0);
// the below function, Connect, returns a -ve value, -2147220969
res = pGraph->Connect(pSourceOut, pGrabIn);
res = CoCreateInstance(CLSID_MobileAuRenderer, NULL,
CLSCTX_INPROC,IID_IBaseFilter, (void**)&pAR);
res = pGraph->AddFilter(pAR,_T("Audio Renderer"));
IPin *pPSource = GetOutPin(pAudioTransform, 0);
IPin *pGrab = GetInPin(pAR, 0);
// the Connect also , returns a -ve value, -2147220969
res = pGraph->Connect(pPSource, pGrab);
//this used instead of Connect(), returns an E_FAIL
/*res = pCapGraphBuilder->RenderStream( &PIN_CATEGORY_CAPTURE,
&MEDIATYPE_Audio,
pSource,
pAudioTransform,
pAR);*/
1) Is Connect() the correct function to connect even a DMO wrapper
filter and an ordinary filter or should I use some other function.?
2) When i render the .mp3 file in GraphEdit, in the graph, it shows
MPEG-1 (Stream) Splitter
also. MPEG-1 (Stream) Splitter is not supported by Win Mobile. Is
MPEG-1 (Stream) Splitter necessary to play even an mp3 file(which is
just an audio file)? Tag: Media player for Windows Mobile 5.0 Tag: 119245
Urgent: How to Debug a Mobile Application?? Help Me Please
Hi,
Please let me know how to debug a Mobile application. I am
creating sample Mobile application using Visula stido 2005. They work
fine with the emulator. But, I want to know how to debug the mobile
application. Eventhough I keep the break points and debug it is not
going into the application..Please help me...urgent.. Tag: Media player for Windows Mobile 5.0 Tag: 119243
firmware issues in hp Rx5900 series prevents MSFT game from working!
users have confirmed that the firmware issues of the new hp Rx5900 series
(Landscape Pocket PC with GPS), cause problems with several applications and
games, including MSFT's own Nine Hole Golf provided for free on Microsoft WM
website.
that's not a really surprise, but it's funny that a MSFT game was not even
tested on the device!
the firmware issues of the hp Rx5900 series are listed and discussed here:
http://www.modaco.com/index.php?showtopic=251853
if you find a game or application that does not work well on the hp Rx5900
series, or that does not work in some of the available screen orientations,
please report it in the thread above.
(To change the screen orientation on the hp Rx5900 series, use Start >
Settings > Screen) Tag: Media player for Windows Mobile 5.0 Tag: 119242
Mobile Client Software Factory issue
Does anyone know if there is any issue deploying the a Mobile Client Software
Factory based application to a Pocket PC 2003 device?
Deploying to the Mobile 5.0 emulator everything goes Ok.
But deploying to my Pocket 2003 device I get a TypeLoadException:
Couldn't find file name or assembly 'Microsoft.WindowsMobile.Utilities,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35' or one of
it's dependencies.
This happens even deploying the default package created by the SF, with no
costumization at all.
Thanks,
Nelson Tag: Media player for Windows Mobile 5.0 Tag: 119234
BASIC for PPC
Hello,
Is there a tool avaiable, which I can use for developing
and running a program directly on a Microsoft PPC
(without the PC and without ActivSync).
Something like BASIC that runs on the SHARP-Calculator
PC E-500.
Thanks
Ernst Sauer Tag: Media player for Windows Mobile 5.0 Tag: 119229
Vertical Scroll Bar addition in Landscape Mode
In WM5, it is stated that when an application designed for portrait displays
is run on a square or landscape display, the operating system will
automatically add a vertical scroll bar to the form which enables the user to
view the entire form.
I have added a page to the Settings->Power applet by using AddPages.
However this page does not have a vertical scroll bar added.
Does the OS require certain information before it will add the bar?
Thanks in advance for any advice on this.
Krypton Tag: Media player for Windows Mobile 5.0 Tag: 119227
Require Info on EAP extension development for windows mobile
Hi,
We are developing an EAP module for the Windows Mobile 5.0 as per the
documentation provided at the MSDN site for the EAP extension development.
http://msdn2.microsoft.com/en-gb/library/aa363504.aspx
We succeeded in writing the whole EAP module. The whole EAP authentication
goes through well with the AAA server(RADIUS) with the extension dll we wrote
and we finally receive the outer EAP success, sent as part of the
Access-Accept from RADIUS, which indicates the EAP authentication has
succeeded. Now as per the documentation in MSDN, we are supposed to pass the
MPPE-Send key and MPPE-Recv Key from the RasEapMakeMessage function using the
pUserAttributes member of the pEapOutput structure in the final step. These
keys are supposed to be used in the EAPOL module in the 4way handshake for
the WPA MSK derivation.
But its not much clear on how the pUserAttributes is to be filled with these
keys. We filled in the pUserAttributes pointer from what we can make out from
the following MSDN link in the Remarks section at
http://msdn2.microsoft.com/en-gb/library/aa363518.aspx .
and another section that appears in the EAP Host documentation for Windows
Vista and XP on how MPPE keys are to be handled at
http://msdn2.microsoft.com/en-us/library/aa363636.aspx, which we think might
also be relevant for the EAP extension development. But they don't seem to
work.
We tried a lot of combinations but nothing seems to work. When we
sniffed/traced on Access Point's logs the supplicant doesn't seem to respond
to the EAPOL key request at all as part of the 4 way handshake for the WPA
key(MSK) generation.
There is int much help at the MSDN apart from the above. The following is
the code peice on how we filled in the fields, can anyone check if the code
and tell what is wrong with this and the correct way of doing it
The excerpts from the code is as follows:
typedef unsigned char u8;
struct vsa
{
u8 attr_type;
u8 length;
u8 salt[2];
u8 lenofkey;
u8 value[32];
u8 padding[15];
};
struct vsa mppe_send_key, mppe_recv_key;
char *pos = NULL;
// 1-MPPE-Send Key, 1-MPPE-Recv Key, 1-raatMinimum(for
termination)
lenofuserattr = 3 * sizeof(RAS_AUTH_ATTRIBUTE);
pEapOutput->pUserAttributes = (RAS_AUTH_ATTRIBUTE *) malloc(lenofuserattr);
pos = (u8 *) pEapOutput->pUserAttributes;
memset(pos, 0, lenofuserattr);
/*
As per MSDN
52 for the sub-attribute AVP which would hold the MPPE
keys
4 for Vendor-Id(311 for Microsoft)
*/
lenofvalue = 52 + 4;
//MPPE-RECV-KEY
pEapOutput->pUserAttributes[0].raaType = (raatVendorSpecific); //ras auth
attribute type (VSA)
pEapOutput->pUserAttributes[0].dwLength = (lenofvalue);
pEapOutput->pUserAttributes[0].Value = (u8 *) malloc( sizeof(u8) *
(lenofvalue) );
pos = (u8 *) pEapOutput->pUserAttributes[0].Value;
memset(pos, 0, lenofvalue);
vid= ntohl(311);
memcpy(pos, &vid, 4);
pos += 4;
mppe_recv_key.attr_type = 17;//Type MPPE-Recv-Key
mppe_recv_key.length = 52; //Total AVP length
mppe_recv_key.salt[0] = 0x00;
mppe_recv_key.salt[1] = 0x00;
mppe_recv_key.lenofkey = 32; // Key length only
// The second 32 bits of the buffer 'mppe_keys' is the
MPPE-Recv key
memcpy(mppe_recv_key.value, mppe_keys + 32, 32);//MPPE-Recv Key
memset(mppe_recv_key.padding, 0, 15); //padding
memcpy(pos, &mppe_recv_key, sizeof(struct vsa)); //sizeof(struct vsa) is
equal to 52
//MPPE-SEND-KEY
pEapOutput->pUserAttributes[1].raaType = (raatVendorSpecific); //ras auth
attribute type (VSA)
pEapOutput->pUserAttributes[1].dwLength = (lenofvalue);//4 - Vendor-Id
pEapOutput->pUserAttributes[1].Value = (u8 *) malloc( sizeof(u8) *
(lenofvalue));
pos = (u8 *) pEapOutput->pUserAttributes[1].Value;
memset(pos, 0, lenofvalue);
vid= ntohl(311);
memcpy(pos, &vid, 4);
pos += 4;
mppe_send_key.attr_type = 16; //Type MPPE-Send-Key
mppe_send_key.length = 52; //Total AVP length
mppe_send_key.salt[0] = 0x00;
mppe_send_key.salt[1] = 0x00;
mppe_send_key.lenofkey = 32; // Key length only
// The first 32 bits of the buffer 'mppe_keys' is the
MPPE-Send key
memcpy(mppe_send_key.value, mppe_keys, 32); //MPPE-Send-Key
memset(mppe_send_key.padding, 0, 15); // Padding
memcpy(pos, &mppe_send_key, 52);
//Terminate with raat Minimum
pEapOutput->pUserAttributes[2].raaType = (raatMinimum);
pEapOutput->pUserAttributes[2].dwLength = (0);
pEapOutput->pUserAttributes[2].Value = NULL;
Thanks,
Vijay Tag: Media player for Windows Mobile 5.0 Tag: 119226
Does ActiveSync use unimodem??
Hi,
I am using a WinCE device over which I am running a Bluetooth Dial-Up Networking(DUN) application. On my PC(which is WinXP), I am using Activesync 4.5(beta) to connect to this device over USB cable.
But, at first it seemed I couldn't simulataneously do both i.e. Connect ActiveSync as well as use the DUN application.This was because DUN uses "unimodem.dll" as the TSP and it seems that Activesync also does the same.
But, then I tried changing the "devicetype" associated with DUN application on my WinCE device.
This worked!!
My question is:
1.Does ActiveSync really need unimodem??I mean how exactly are the two related?
2.What if I need the "devicetype" as ZERO(i.e. NULL Modem) for my DUN application on device side??At present, this does not work.
The registry entries on my device side were:
(The case where Activesync and DUN can't work together..DeviceType is ZERO here)
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\My_Serial0]
"FriendlyName"="Serial_Port_For_Bluetooth_Modem"
"DeviceType"=dword:0
"Tsp"="Unimodem.dll"
"Order"=dword:F4
"BtProf"="DUN"
"Prefix"="COM"
"Dll"="btserial.dll"
"Index"=dword:6
(The case where BOTH work together..DeviceType is 9 here, an arbitrary value!)
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\My_Serial0]
"FriendlyName"="Serial_Port_For_Bluetooth_Modem"
"DeviceType"=dword:9
"Tsp"="Unimodem.dll"
"Order"=dword:F4
"BtProf"="DUN"
"Prefix"="COM"
"Dll"="btserial.dll"
"Index"=dword:6
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com Tag: Media player for Windows Mobile 5.0 Tag: 119223
Permanent Storage Advice needed.
I have a HP PDA running PPC2003 and its permanent storage is called "iPAQ
File Store", I also have an Acer n50 PDA running PPC2003 and its ts permanent
storage is called "ROM Storage". I also have another HP PDA running WM2005
and it has persistent storage so I dont need to use the 'permanent storage'
like the older versions.
My issue is that I have created an Autorun program which resides in the 2577
folder of the HP PDA running PPC2003. It copies my exe from flash to normal
memory in case of a hard reset but it is dependent on the path "iPAQ File
Store" - I do not have the financial resources to buy every type of PDA so
does any one know all the different names used for 'permanent storage' for
all makes of PDAs so I can tailor my Autorun.exe to each device?
OR would I be better to not worrk about this issue and advise all customers
to run my software on WM2005 devices which have persistent storage?
Thanks
Harry Tag: Media player for Windows Mobile 5.0 Tag: 119213
LinkSend-Communication between two exes
What is the best recommended method of passing some strings betten two
running exe's in WM5 ? I usually use command line parameters, but in WM, an
already running app gives no attention to commandline parameters when called
again(Main is not executed again).....
LinkSend was an old method back in VB5,6 ;-)
Pls advise me... Tag: Media player for Windows Mobile 5.0 Tag: 119208
.NET
1. Why can't I open explorer whilst my .NET application is being debugged in
the IDE? Aren't both products written by Microsoft? Specifically, the Win-E
key combination never works until I stop debugging, then I get about thirty
explorer windows suddenly bothering to appear.
2. Why can't I use my product ID to raise a support issue? It's NOT in the
wrong format; it's a genuine ID; my company is a Microsoft partner. It's
almost like you don't want to offer any support.
3. Why can't you organise the discussion groups here in ALPHABETICAL order?!? Tag: Media player for Windows Mobile 5.0 Tag: 119207
TB_SETBUTTONINFO in Dialogs
Hi,
I was working with dialogs which LSK as a button style menu and the
RSK as a POPUP/Dropdown style menu. Now at runtime i change the menu
textt by SendMessage(dialogmenubar,TB_SETBUTTONINFO, id,
buttininfostructure), which works fine. Once the user dismisses the
dialog the i again reset the menu options to appropriate values using
the same SendMessage(applicationmenubar,TB_SETBUTTONINFO, id,
buttininfostructure). However this returns me false with the last
error code as 0.
The same problem is not observed if i have a dialog with both LSK and
RSK as button style options rather than drop down.
Thanks in advance
Rgds
Sriram Tag: Media player for Windows Mobile 5.0 Tag: 119206
ulMinRcvBw paremeter in CONNMGR_CONNECTIONINFO structure
hello,
I am planning to use ConnectionManager APIs and need some info on the
parameter ulMinRcvBw. What are the values we can assign to this
parameter? Lets say if I want minimum 50kbps bandwidth can I directly
give value of 50*1000 or the values need to be given based on scale?
Can anyone suggest?
hare Tag: Media player for Windows Mobile 5.0 Tag: 119205
evc4 CreateThread memory leak question
Hi All
I have a memory leak problem in my app and I think this is probably what is
causing it but i'm not 100% sure, also if it is how to fix it! Please bear
with me as I'm not an expert C programmer !!
The following function is called on a 5 second SetTimer from the main thread
....
VOID CALLBACK UpdateCountsRequestTimerProc(HWND hWnd, UINT message, UINT
iTimerID, DWORD dwTime){
SessionPacket* pSessionPacket = new SessionPacket;
memset(pSessionPacket,0,sizeof(SessionPacket));
TCHAR szSession[11];
g_SessionDetails.GetCombDaySess(szSession,10);
wcstombs(pSessionPacket->Session,szSession,10);
pSessionPacket->iPacketNum=g_PacketCounter++;
pSessionPacket->iErrorStatus=-2; //-2 = requesting session counters
HANDLE hThread=CreateThread (NULL, 0, SendCounterDataThread,
(PVOID)pSessionPacket, 0, NULL);
CloseHandle(hThread);
}
As you can see pSessionPacket is a local object that is being passed to a
2nd thread "SendCounterDataThread" this thread calls "delete pArg;" to
delete the object when it's done.
Now I'm suspecting I've got something wrong here as when the function
UpdateCountsRequestTimerProc ends in the main the value of pSessionPacket is
discarded could this be my problem in that "delete pArg;" then can't delete
the object ?
I've put a routine in that calls GlobalMemoryStatus(&memInfo);
I can see that memInfo.dwTotalPhys - memInfo.dwAvailPhys goes up and down by
4096 bytes BUT NOT (down) every time. so the nett effect is I am 'leaking'
4096 bytes about every 6-10 calls of UpdateCountsRequestTimerProc
If I am correct in what I have done wrong then ....... I did think of making
the pointer static BUT on the next call to UpdateCountsRequestTimerProc in
the main thread the previous SendCounterDataThread may not have finished ...
and I don't want to have to 'wait' for it
Thanks in advance for an advise
Kind Regards
Andrew Tag: Media player for Windows Mobile 5.0 Tag: 119197
How to set keyboard focus back to the today screen
Hi All,
I have written a replacement password DLL for WM5.0 that is showing a problem.
When the DLL is run from a cold boot, after the password window closes,
keyboard focus is set to the main today screen, which is fine. But when the
device is powered off/on and the password window closes, I need to tap on the
screen with the stylus in order for it to regain focus.
I have tried getting using SetActiveWindow(GetActiveDesktop()), but nothing
seems to work.
Any ideas would be great. Tag: Media player for Windows Mobile 5.0 Tag: 119193
Disable custom providers in Windows Mobile Device Centre during installation
Hi,
In ActiveSync, I can disable all providers by calling WCESMGR.EXE /quit.
This enables my setup program to update the provider on the PC and on the
Pocket PC. What is the equivalent command for Windows Mobile Device Centre
on Vista?
Thanks,
Herbert Tag: Media player for Windows Mobile 5.0 Tag: 119191
.NET CF Initialization Error
Hi All,
If you edit backed up file, say delete some contents from the
file, which is created by "RegCopyFile"
and try restoring this editied back up file, using the
"RegRestoreFile". It returns true.
How can a "RegRestoreFile" return true for a format which is
invalid?
If we try Restoring using Exported file as the parameter, then
also "RegRestoreFile" returns true.
So, in order see the effects, we need to warm boot the PPC,
hence at that instance it returns. ".Net CF Initialization Error".
My Question is, how to identify the file given as parameter is
valid or not?
The "RegReplaceFile" returns true for both the above condition,
in that case...how can i proceed to avoid such errors?
Please guide me through for usage of this API.
Thanks,
sumana Tag: Media player for Windows Mobile 5.0 Tag: 119183
Hi,
Is there any media player software available for windows mobile 5.0 which
could play udp streaming?