Reusing ShagDLL - Shift General

I've seen people comment on programmatically Soft Reseting there Win Mobile side of their Shift, I assume through the ShagDLL.DLL. Can someone post a sample of what they have used. It has been a while since I did any DLL reuse, and I can't remember where to begin.
My suggestion is that as the DLL contains many Internet Connection Sharing related functions, to try to use these to perform the WMDC access solution of starting Win Mobile Internet Connection Sharing, Connecting, disconnecting and for Vista WMDC to be able to detect the WM6 connection. IF we can use these functions to reproduce this, then we may be able to perform automated SnapVue disabling and reconfiguration directly from Vista and not need to use the time consuming image browser to copy and paste etc.
Any help or suggestions appreciated.
Cheers

Related

ActiveSync every 5 minute

Hi, new to the form. This is a useful place!
Am with O2 Mini S, 1.5.70, AS 4.1, XP sp1, Oulook 2k3.
Does anyone notice AS runs every 5 minutes? I first tried the Add Server Source hack by WM5 Axim users, but didn't work. I couldn't find any registry entry that relates to the sync frequency.
Apart from suffering the unplug usb and wizzard freeze problem seen here. AS syncs every 5 minutes really annoys me. I need to rely on AS's tcp via bluetooth to use networking on the device and AS is heavy weight process.
So far, I have some solutions:
1. kill the wce* processes, which leaves the device connected (TCP stack still works, USB charges) but AS on the desktop says disconnected. Your wizzard's AS will still TRY to sync every 5 minutes, but it'll return quickly because the desktop ain't listening. But remember to double click AS on your desktop when you need to sync stuff again.
2. Replace the useless MS bluetooth stack with the widcomm stack taken from the Atom? Then use the PAN profile for connection. Disconnect PAN and run AS via bt from the device when needed. (But PAN on PC is not always possible as company laptops will almost certainly not allow internet connection sharing, never mind allowing you to have BT PAN enabled in the first place)
So afterall, does anyone know how to re-enable manual syncing? Some registry hack? AS 4.x is such a big step backward, I already have to disable firewall and VPN service from my company laptop when connecting, AS 3.8 was so much better when I was with an ipaq or SP3i. May be a sticky with enough post on it to get M$' to fix AS.
There are numerous threads relating to AS 4.1 and starting every x mins .... Please try to search next time....
Anyway, the simplest way is to create a dummy server entry in AS (On the mobile device) then when creating it uncheck all the "MAIL / NOTES / ..." entries in the advanced section. Once the Server has been created you can modify the server sync to set it to never.
For more info have a look through this forum for other threads on AS 4.1.
sorry if that has been talked about alot before, I suspected it. But I did a search before and couldn't find related stuff on this site, plenty of firewall/VPN stuff found which I also had a problem with...
The Add Server Source hack has been widely referenced in the dell Axim WM5 forums. As I mentioned, it didn't work for me, my ROM is very recent, as the phone is new for two weeks. I couldn't find any entry in the device registry that suggests it will run at any schedule! Although I can see peak time settings...etc but none of the scheduling options in registry.
Am really wondering if this is a problem with the specific ROM.
Yeah, I aplogise, am I bad, didn't read all your post....
Have you got any other apps that try to update regularly like Weather plugins etc?
I can agree with humps on that.
I've got a new k-jam and tried to stop AS4.1 from syncing when not connected to pc, by creating a fake server then through options setting it to manual sync.
No luck however as it still comes up in the list of running programs whenever i check :evil:
fix for constantly syncing when USB-connected
Sorry in advance if this isn't the right place for this.
I was so mad about Activesync 4.5 re-syncing during two out of every five minutes when connected via USB that I implemented a workaround that might prove useful to others as well. The result is that you can click an icon on your desktop computer and instantly change whether your handheld willl connect to its partnership for syncing or as a guest for doing other work (or just charging). Most of my data syncs wirelessly with an Exchange server anyway, and MightySync and PocketController function independent of the ActiveSync partnership. Ah, the peace ;-)
Here are the steps:
1. Change HKLM\Software\Microsoft\Windows CE Services\GuestOnly to "1".
2. Export HKCU\Software\Microsoft\Windows CE Services\Partners\[your device's partnership key] to a .reg file with name like "partnership.reg".
3. Create a batch file or script to stop WCESMGR, import the .reg file (regedit /s = silent) and restart WCESMGR. Name it like "partnership.bat".
4. Make a copy of the .reg file, edit it to *delete* the reg info (place a minus sign inside the beginning bracket of each key/subkey name), and name it like "guest.reg".
5 Create a new batch file or script to stop WCESMGR, import the guest.reg file and restart WCESMGR. Name it like "guest.bat".
6. When you execute "guest.bat," your device's partnership is deleted, and with the "GuestOnly" key enabled and no partnership found, ActiveSync will connect it as a guest without asking. After you execute "partnership.bat," ActiveSync will be ready to recognize your device on connection and sync.
7. Now, create a batch file or script that allows you to choose which .bat to execute, so you have one thing to click to go back and forth between connection types.
As will be obvious, I'm not a programmer AT ALL. I use pskill to clobber WCESMGR, and CHOICE.EXE copied form Server 2003 to choose connection type. It could be done more elegantly...but it sure works.
Only caveat: Later changing of syncing settings might require re-export of .reg key and recreate/edit of.reg-delete file.

O2 XDA Mini S, Active Sync 4.1/4.2 Problem

Hi, I am looking for some help regarding a sync problem I am having with my XDA Mini S. I have recently re-installed my copy of Windows XP Home. Prior to this re-install I was able to sycn with my XDA using activesync 4.1. Since the re-install however when trying to sync I am presented with an error on the desktop machine.
Support Code:86000107
I have trawled the internet to find a solution, but to no avail. I have tried the new 4.2 beta of active sync and tried un-installing the software several times aswell as removing sync profiles form the unit.
Any help would be apreciated. I am using ROM version 2.21.4.1 WWE and Windows Mobile Version 5.0 (Build 14847.2.0.0)
Thanks
See my responses in a similar thread posted by someone else...
http://forum.xda-developers.com/viewtopic.php?p=289256
Thanks for the reply! I had tried searching the forum first, but my choice of keywords obviously let me down.
I have tried both disabling the firewall and ensuring DHCP is enabled. I am using the windows firewall controlled by Microsoft's Windows OncCare Live, and within which all processes associated with active sync have been granted permission to access the network.
The phone appears to be able to send data to the desktop pc, but the desktop fails for some reason. Any further advice?
thanks
Do you hear the usual "bing bong" type noise that Windows makes when a USB device is plugged in?
Does ActiveSync on the desktop even start up?
If so, on your PC goto Start -> Control Panel -> Network Connections. When you plug the PDA in, does a new connection profile eventually show up in the Network Connections window? It will be called something like Local Connection #6 or something similar, I've renamed mine.
Yes everything connects and establishes a connection. I can browse the device and even upload to and from it. Active sync even tries to sync with the device, but then shows the error detailed above. The XDA was able to upload my contacts to outlook for example after the re-install of windows, but nothing is synced from the desktop pc to the xda.
bump
See the Microsoft Knowledge base..........
............there's something I remember when I had this prob.
For me, it was ZoneAlarm firewall [free edition] which doesn't allow individual ports to be configured, just application rules [you can in Pro version] but in my research, I remember seeing something about Activesync not working even though the exception was set in Windows Firewall.
Try with NO firewall at all - probably best to pull your network cable if you're worried whilst you test ActiveSync with no firewall at all.
I'm sorry I can't post the reference but you should be able to find it again.
I now don't use any s/w firewall - I have a switch router with hardware router built in which shows as 'stealthed' to the outside world on all ports @ www.grc.com [ShieldsUp] and all my WM5 stuff works - ActiveSync and WiFi
I didn't get the error you did, mine just connected then hung whilst showing 'Syncronising'............'cept it never did !!! LOL but I could do all the other things as you describe....just no syncing.
Thanks for the reply. I have already tried without a firewall enabled at all but with no luck. I am trying to work out what is different with this installation tot he previous that worked.
I have found that I need to dissable the Sync of my contacts and it works with the Caldener etc. I have no idea why this is, but its the only solution I can find anywhere and its very frustrating. :roll:
That's a weird one, not be able to sync contacts but can do calendar events.
Have you tried a reinstall of outlook?
If so then, and this is just a guess, it could be that there is something wrong with a particular contact entry that's causing things to go wrong. Perhaps some invalid characters in any one of the many available fields (name, num, email address, website, notes etc).
Some solutions that worked for me
I had the problem with contacts not syncing when everything else would. My solution, which worked for me, was to:
1. disable 'contacts' in ActivSync options
2. sync as normal
3. disconnect device, reconnect device, sync again
4. re-enable 'contacts' in ActivSync options
5. contacts should now re-sync
Incidentally I found many problems with the ActiveSync partnership after restoring the device from a backup. The solution is to delete everything in the \Windows\ActiveSync folder on the pocket PC, go into ActiveSync options on the pocket pc and remove the partnership there. Finally delete the partnership on your PC.
I am running V-Com systemsuite on my PC (which I think uses the Sygate firewall) this firewall never interferes with my XDA Exec but oddly enough does so with my XDA mini S. If I disable the firewall - problem still exists. If I shut down the firewall completely (keeping Windows XP firewall running for security) the problem goes away.
Maybe some of this will help
Cameron
Norwich, England
I had moved the Outlook.pst file to a location other than the default. When I moved it back and created a new profile the error had gone. thanks for the help everyone.
Sounds like it was a corrupt pst file causing the problem then. I'm glad you got it all working now
Re: Some solutions that worked for me
apprentice said:
I had the problem with contacts not syncing when everything else would. My solution, which worked for me, was to:
1. disable 'contacts' in ActivSync options
2. sync as normal
3. disconnect device, reconnect device, sync again
4. re-enable 'contacts' in ActivSync options
5. contacts should now re-sync
Incidentally I found many problems with the ActiveSync partnership after restoring the device from a backup. The solution is to delete everything in the \Windows\ActiveSync folder on the pocket PC, go into ActiveSync options on the pocket pc and remove the partnership there. Finally delete the partnership on your PC.
I am running V-Com systemsuite on my PC (which I think uses the Sygate firewall) this firewall never interferes with my XDA Exec but oddly enough does so with my XDA mini S. If I disable the firewall - problem still exists. If I shut down the firewall completely (keeping Windows XP firewall running for security) the problem goes away.
Maybe some of this will help
Cameron
Norwich, England
Click to expand...
Click to collapse
First of all you have to open some ports in the sygate firewall: http://www.microsoft.com/windowsmobile/help/activesync/sygate.mspx
In my experience it's necessary to change the RNDIS driver settings in the mobile phones registry as well!
Use a regedit tool like PHM Registry Editor.
Here are the settings to be added (or to be changed respectively):
Key: HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\RNDIS
Name of the Value to add: MTU
Type : DWORD
Data: 1514 (Value is Decimal)
Name of Value to add: MaxOutTransfer
Type: DWORD
Data: 1642 (Value is Decimal)
After a reset my Prophet (XDA Neo) synchronized well with active sygate firewall!

Problem with Internet Passthru via ActiveSync

I had all this working until I did the new Cingular 8125 update, and at the same time I updated ActiveSync 4.2 ... But I don't think it is necessarily one of these causing it ... could be emoze install.
Whenever I try to go to anything on the internet (mail, browser, other apps) while connected to ActiveSync I am blocked. I didn't use to have this problem.
From the browser, if I try to enter a URL I get the following: "The page you are looking for cannot b found due to unknown error 0x80072f78."
Everything works from GPRS/EDGE, but not while connected to ActiveSync.
- ActiveSync is set for connection to "Automatic" (I tried both My Work and Internet)
Any ideas?
I have the same problem
I have the same problem as well.
Me too!
As soon as you connect your phone to active sync it will automatically use your computer's internet connection as the default, so bt and/or gprs will be disabled, this feature is by design unfortunately...
If you connect your phone just to charge it or take remote control with something like SOTI Pocket Controller then disable the USB connection within active sync and make a TCP/IP connection for SOTI Pocket Controller if necessary.
That is the problem... Activesync isn't serving as that Conduit anymore. Before the latest firmware release it would pass the connection through and you would use your laptop/desktop PC as the internet connection and override the GPRS or other network settings.
Now, when you connect to Activesync, it is returning an error. This seems to be a problem in either the Activesync 4.2 or 8125 new release. The problem starts as soon as you load these. Nothing else loaded, etc.
Anyone have any ideas on this? It is troubling as my automatic updates no longer work when I am syncing and aren't there now when I disconnect.
I also use this for demos showing mobile web sites.
Please help!
I have the same problem..anyone can help
Directly from Microsoft:
"To all those who have had problems with connecting to the internet from the device when upgrading from ActiveSync 4.1 to 4.2:
ActiveSync version 4.2 made a change to how it interacts with the Windows networking stack to use Layered Service Providers (LSPs) on outgoing Desktop-Pass-Through connections. This allows for improved compatibility in environments where connections to the internet must be passed through these LSPs (ISA Proxy is one such example).
Unfortunately, it appears this change has caused some issues for a small segment of users who have LSPs that interfere with ActiveSync communication.
There is a registry key fix which will essentially remove this change.
Please download and rename the attached text file with the .txt extension to the .reg extension. In other words, change the file LSPvalue.txt to LSPvalue.reg. Afterwards, please double click on the newly renamed .reg file and click on the "Yes" button.
This should resolve your issues.
Thanks,
Edington
--
Edington Watt
Windows Mobile Platform
Microsoft Corp."
Here is the reg patch. It works...
I had the same issue. I didn't apply that registry patch but I did change something in activesync. I did "File" > "Connection Settings" and in the drop down on the bottom that says "This computer is connected to" the default is "Automatic". I set it to "The Internet" and I've gotten connectivity ever since.
That did it! You rock!!
BTW, I tried the other suggested fix of the connection settings, which did not work. The registry patch is the only fix I know of that works!
beachside said:
That did it! You rock!!
BTW, I tried the other suggested fix of the connection settings, which did not work. The registry patch is the only fix I know of that works!
Click to expand...
Click to collapse
for me, the activesync-settings change worked, no reg patch needed.
so it is at least worth a try...
m.
Ghaled said:
There is a registry key fix which will essentially remove this change.
Please download and rename the attached text file with the .txt extension to the .reg extension. In other words, change the file LSPvalue.txt to LSPvalue.reg. Afterwards, please double click on the newly renamed .reg file and click on the "Yes" button.
This should resolve your issues.
Thanks,
Here is the reg patch. It works...
Click to expand...
Click to collapse
I sync my PDA with two PC's (home and office). Shall I install the .reg in both the computers, ore the home one is enough? I don't have administrative rights on my office computer
Hi guys, currently encountering this problem. i can access to the internet but can't access msn messenger. can anybody pls help?
Still having problems connecting...
applied the reg patch, even rebooted & tried changing the connection setting to Internet. Still not working... anyone have any other ideas?
Ghaled said:
Directly from Microsoft:
"To all those who have had problems with connecting to the internet from the device when upgrading from ActiveSync 4.1 to 4.2:
ActiveSync version 4.2 made a change to how it interacts with the Windows networking stack to use Layered Service Providers (LSPs) on outgoing Desktop-Pass-Through connections. This allows for improved compatibility in environments where connections to the internet must be passed through these LSPs (ISA Proxy is one such example).
Unfortunately, it appears this change has caused some issues for a small segment of users who have LSPs that interfere with ActiveSync communication.
There is a registry key fix which will essentially remove this change.
Please download and rename the attached text file with the .txt extension to the .reg extension. In other words, change the file LSPvalue.txt to LSPvalue.reg. Afterwards, please double click on the newly renamed .reg file and click on the "Yes" button.
This should resolve your issues.
Thanks,
Edington
--
Edington Watt
Windows Mobile Platform
Microsoft Corp."
Here is the reg patch. It works...
Click to expand...
Click to collapse
Thanks for the activesync fix
Thanks, the patch worked. It worked on active sync before but i reinstalled it and something must've happened.
internet pass-through wm6 activesync 4.5
I had same problem!
Now I solved unticing in ppc
start>settings>usb to PC
This changes the type of connection LAN to ???
Now have internet through my desktop
Good luck to all
I have the same problem
I have the same problem
Applied the Reg but problem remains!
I applied the reg file, and ensured that the regiwtry key was added to my PC. restarted both the PC & PPC. But unf the problem still there.
Any one can help?

Please help - My Mobiler and Wm5totage

Hi,
I am trying to stop using Active Sync, it seems to slow everything down tremendosly. I use My Mobiler connection via IP to run PIM on my desktop. I was looking for a way to sync files and seems wm5torage is the only application that would do it w/o AS present.
However, the moment I activate wm5torage My Mobiler loses connection. It seems wm5torage re-sets device's IP address to 0.0.0 "dummy" address. I was trying to set it back to no avail. If I de-activate wm5torage I can connect again.
So,
1) is there a way to have both programs running simultaneously ?
2) if not is there a file syncing application that doesn't need AS ?
Thanks !
I use TotalCommander and if memory serves me I have added a plugin which let the PPC show up in the network page of TC. Maybe you can also use TC on the PPC and make a wireless network connection.
i ever used wm5torage but it also didnt work, softick card export is better
try
You cant use booth programs at the same time.
Cause WM5Storage activates PDA in USB mode and simulates pendrive storage.
It disabling the connection with activesync and other programs to sync/connecting with PC.
Cheers,
Chris
Thanks all who replied.
I ended up figuring out how to connect SOTI Pocket Controller, which I also own, in TCP/IP mode - something I wasn't able to do before. So I am using its sync manager to sync files, for now (although I don't like it nearly as much as MobSync so I may end up re-enabling AS just for that).
I am using the my mobiler apps to control the phone via computer..however The gprs connection will be disconnected everytime i plug the cable data...
can anyone provide me with some help pls?

activesync

Hi,
I was able to install activesync but not to get PC and 3G synchronized.
In explorer, I can "see" it but no synchronization (in My computer I have an icon "mobile device", when I doubleclick I get no detaiel, no folders, no file
When I try to link (USB is checked) I get a message saying nothing can be found
When connecting, on the 3 G I get 3 options... the uppermost is "Activesync"... this is checked
Can somebody help or show me the threads to be read (and that realy help)
Thanks
ActiveSync only works with XP, not with Vista or Win7. For Vista download Mobile Device Center. Install first and then connect. happy thrills.
I'm using XP...
I can copy files to and from the device, but no activesync...
Strange.. still no solution to this problem.
r u using illegal win xp?
Nope... laptop so...
Do you have any software firewall installed? Might be a reason, had it before..
Try uninstall and reinstall ActiveSync and associate the device again. It worked for me once before
I had some problems with activesync and data transfer. It would sync but would disconnect after a while during file transfer. I was told it was an unusual problem. Nevertheless, the nice people at HTC changed the mainboard and I'm now problem free. They mean it when they say they are people centric. I'm a potential customer for life!
Activesync keep on appear automatically
Hi,
I have Garmin mobile XT, SPB shell V3.00 and WK Task installed in my Jade, and i have problems where Activesync launch automatically every time after i used my Garmin. This is quite annoying, did anyone has the same experience?
Thanks.
Vincent

Categories

Resources