HTC s740 problem with LoadLibrary. - Windows Mobile Development and Hacking General

--------------------------------------------------------------------------------
When trying to perform LoadLibrary function on "bthlink.dll" driver -
In debug mode:
I get "No Source Code Is Available".
Not in debug mode :
I just get an error loading it.
I noticed that if im using LoadLibraryEx with the flags param of - LOAD_LIBRARY_AS_DATAFILE, it does work but i cant invoke its functions.
What can I do and why this is happening?
thanks.

Please post the code how you load the library.

Related

Create virtual CommPort for GPS emulation

Hi Folks!
I'm trying to add GPS emulation to my navigation system, that is based on CellTracking via GSM.
Does anybody know how to create a virtual CommPort in eVC++ :?:
I tried it with function like ActivateDevice or RegisterDevice, but i always receive a zero Handle:
Code:
#include "winbase.h"
bool virtPortOpen(HANDLE& HandleGiveAway)
{
//HandleGiveAway = ActivateDevice(L"HKEY_LOCAL_MACHINE\\Drivers\\GPSvirt", 0);
HandleGiveAway = RegisterDevice(L"COM", 7, L"serial.dll", 0);
if ((HandleGiveAway == INVALID_HANDLE_VALUE) || (HandleGiveAway == NULL))
return false;
else
return true;
}
int virtPortClose(HANDLE& GetHandle)
{
return DeactivateDevice(GetHandle);
}
Did i use the right .dll-File? Need i create a own .dll-DeviceDriver with the DDK?
Please give me a hint!
Greetings,
Florian
http://www.eltima.com/products/virtual_drivers/
ELTIMA Solution to expensive
cairo31male said:
http://www.eltima.com/products/virtual_drivers/
Click to expand...
Click to collapse
Thanks for the URL, but i think that this solution is much to expensive for a student!
Any other suggestions?
Greetings,
Florian
http://mamaich.kasone.com/rover/IrCOMM.rar
Archive contains a sample virtual COM-port driver. It is installed as a COM8 and after opening COM8 it redirects all data to COM1. You may modify the driver as you like.
Post of "mamaich"
mamaich said:
http://mamaich.kasone.com/rover/IrCOMM.rar
Archive contains a sample virtual COM-port driver. It is installed as a COM8 and after opening COM8 it redirects all data to COM1. You may modify the driver as you like.
Click to expand...
Click to collapse
In this Archive is a C++ project, which deals with infrared communication. I don't know what it has in common with creating a virtual CommPort. - Haven't you postet the right file?
When i try to compile this project, i found out, that it calls some functions not included in the header files, or anywhere else! Look here:
Code:
Compiling resources...
Compiling...
IrCOMM.cpp
C:\Dokumente und Einstellungen\Administrator.MCFLOWNNET\Eigene Dateien\Programmierung\eVC\IrCommEmu\IrCOMM.cpp(34) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
C:\Dokumente und Einstellungen\Administrator.MCFLOWNNET\Eigene Dateien\Programmierung\eVC\IrCommEmu\IrCOMM.cpp(47) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
C:\Dokumente und Einstellungen\Administrator.MCFLOWNNET\Eigene Dateien\Programmierung\eVC\IrCommEmu\IrCOMM.cpp(77) : warning C4018: '<' : signed/unsigned mismatch
StdAfx.cpp
Linking...
IrCOMM.obj : error LNK2019: unresolved external symbol closesocket referenced in function WinMain
IrCOMM.obj : error LNK2019: unresolved external symbol recv referenced in function WinMain
IrCOMM.obj : error LNK2019: unresolved external symbol select referenced in function WinMain
IrCOMM.obj : error LNK2019: unresolved external symbol send referenced in function WinMain
IrCOMM.obj : error LNK2019: unresolved external symbol __WSAFDIsSet referenced in function WinMain
IrCOMM.obj : error LNK2019: unresolved external symbol accept referenced in function WinMain
IrCOMM.obj : error LNK2019: unresolved external symbol listen referenced in function WinMain
IrCOMM.obj : error LNK2019: unresolved external symbol bind referenced in function WinMain
IrCOMM.obj : error LNK2019: unresolved external symbol setsockopt referenced in function WinMain
IrCOMM.obj : error LNK2019: unresolved external symbol socket referenced in function WinMain
ARMRel/IrCommEmu.exe : fatal error LNK1120: 10 unresolved externals
Error executing link.exe.
Please give me further information! - Thanks in advance!
Florian
Re: Post of "mamaich"
oops. Wrong archive. Should be http://mamaich.kasone.com/rover/RIL_hook.rar
it contains 2 projects:
Serial - a wrapper around the standart COM1 driver
seRILal - a virtual COM8 driver that creates COM8 and redirects all its IO to the first driver.
Re: Post of "mamaich"
mamaich said:
oops. Wrong archive. Should be http://mamaich.kasone.com/rover/RIL_hook.rar
it contains 2 projects:
Serial - a wrapper around the standart COM1 driver
seRILal - a virtual COM8 driver that creates COM8 and redirects all its IO to the first driver.
Click to expand...
Click to collapse
Sounds good. - Thanks!
I'll give it a try in the evening! - Too good weather here in Germany!
Florian
How to install virtual ports?
This project seems to be exactly what I was searching for! - Much thanks!
But I still have a question: :arrow: How do I install the drivers? - Should I place a new Key in the registry, and in that case, which values do I need to add?
When I try to load one of the drivers with RegisterDevice, I always receive a NULL handle.
Is it a problem that I have deinstalled the standart serial COM1? - But the serial.dll is still existing!
Greetings,
Florian
Re: How to install virtual ports?
this project is coming from Anextek SP230. It had COM1 driver named xsc1_serial.Dll.
To install you should go to registry and modify COM1 driver to be serial.dll and add manualy COM8 driver to be seRILal.dll (you may choose any other COM-port number).
In case of Imate COM1 driver is com16550.Dll, so for this method to work you should recreate import library from com16550.Dll and overwrite Serial\serial.lib file with it. Otherwise your serial.dll would import functions from a nonexistent DLL and the system will crash.
Re: How to install virtual ports?
Well,
thanks very much for your explanations!
But I still have a problem: How do i edit the link to the "xsc1_serial.dll" in the .lib-file?
Need it to be rebuild? - My Problem is that i only have emVC++ without DDK or Platform Builder! - It isn't availibe for free, i think!
Why is the .lib-file needed? - Does it export the COM_Write etc. fuctions to the project?
Thanks in an advance!
Florian
Re: How to install virtual ports?
Probably you don't need this file.
My project is hooking COM1 and makes the real hardware accessible by both COM8 and COM1. As far as I understand you are trying to add a new COM-port to the system that would emulate a GPS receiver. You should take seRILal project, remove Redirected_COM_* functions, remove serial.lib from the project and write your own implementation of My_COM_* functions (they would be exported as COM_* functions, look into serial.def file).
Reed MSDN library for information on this, but remember that it is incorrect in most function prototypes .
You should implement COM_Init (typically driver reads its settings from registry), COM_Open (allocate buffers, return HANDLE for the opened port, that is typically a pointer to allocated buffer), COM_Read (read data), COM_Write (wite data), COM_Close (free the memory allocated in COM_Open). All other functions should be present, but they may do nothing (simply return "success"). You should later implement COM_IOControl function, so that your driver would correctly implement read/write timeouts. My code does not implements this. All timeouts are hard-coded.
My Problem is that i only have emVC++ without DDK or Platform Builder! - It isn't availibe for free, i think!
Click to expand...
Click to collapse
Everything is available for free (soft, beer, girls, etc ). At least in Russia.
Trial 120-day version of Platform Builder 4.20 is available for free from Microsoft.
http://franson.biz/gpsgate/index.asp
Maybe you could look here.
Sorry I can't be any help but...
I've been thinking about CellTracking via GSM for a while now.
Most folk I've talked to in the UK tell me that it's not possible for a GSM device to discover it's own position !?
Any links or pointers on tracking ?
Ideally i'd like to append coordinates of the device on every post to the backend db.
Cheers (and good luck with the comm port thingy!)
I need to creat on my ipaq 5550 a virtual comm port
Hi,
Have you solve your problem ?
I am working on a robotic project and I have the same problem but on a ipaq 5550 under ppc2003.
I need to creat on my pocket pc a virtual comm port.
Because I receive by WIFI, GPS NMEA sentences, so I want to redirect them to this virtual port, and finaly connect to this port my regular GPS navigation software.
Thanks
Laurent
FRANCE
http://ourworld.compuserve.com/homepages/richard_grier/CFSerial.htm

xda-developers-unlocker

i installed the file in my xdaII
but then when i press unlock it won't function
itLL say
debug
ERROR:
FL_IOCTL_BDTL_HW_PROTECTION - A device attached to the system is not functioning.
idea>????
feedback please! need this thing working badly! tnx!

debug

i installed the file in my xdaII
but then when i press unlock it won't function
itLL say
debug
ERROR:
FL_IOCTL_BDTL_HW_PROTECTION - A device attached to the system is not functioning.
idea>????
feedback please! need this thing working badly! tnx!

Problem with tweaks 2k2

M facing a problem with tweaks2k2 .net while registering.. The time i click registration option it gives me a error
It says:
An unexpected error has occurred in Tweaks2k2.exe.
Select Quit and then restart this program, or select Details for more information.​
But when i quit and again try to register the same it continues to give me this error.. Any Suggestions..

List of overclock apps for Windows CE/Mobile

I receive as a gift a chinese 7" gps-tablet with Windows Embedded CE 6.0, and of course it's weak point is the processor, I cannot handle his native 800x480 resolution, so I search for any of the most commong apps for overclock this tablet and no luck, as far I tried:
- OCT 1.5 : Error at start
- MSM7KCPUSpeed: Error at start
- WiMoSpeed: Error at start
- XCPUScalar: Error at start
¿Any thoughts?, Please if any other app exist please post it here to try.
Thanks
It would help if you would post what the error messages are, as these apps may just need some extra DLL files to work, and the error messages might provide clues.
best one for regular xscale cpus: xguru. works from tray.
as interesting feature i may add NATIVE resolution changer for drivers that allow it(what i found VERY useful).
this feature may not work with your screen, since tool's using qvga/vga/realvga standards, but i wonder, if reverse-engineering or hexedit could make it work with 800x480..
it's weak point is the processor,
Click to expand...
Click to collapse
what processor it uses?
- OCT 1.5 : Error at start
- MSM7KCPUSpeed: Error at start
- WiMoSpeed: Error at start
- XCPUScalar: Error at start
Click to expand...
Click to collapse
go to navi forums to check, if there are dll packs that may help you. use some kind of tool to determine name of dlls that overclockers are using.
Hello,
I'm very interested too, so many weeks I spent to overclock my PNA without success...
It's a no name GPS unit with the following characteristics :
Microsoft Windows CE ver 6.00
Processor : ATMEL ARM926EJ (StrongArm)
Clock speed : 366 Mhz
Memory : 128 Mo RAM
Screen : 480x272 pixels, 65536 colors
This unit is already unlocked with many tools (files explorer, registry programs, process viewer, a lot of players/readers, etc...) so I can easily access files or registry if required.
I've added also a package with .DLL files common to this kind of GPS, and well installed Microsoft .NET CF 3.5.7283.0.
There's no overclocking software working for now, here's the status of my tests :
Speed.exe (Speed Version 1.10) : unable to select something in the main windows (and must kill the process to end application).
Turbo Tray.exe (with four different program versions : 333, 400, 472, 498 Mhz) : the application seems to work, the frequency control is correctly displayed in the taskbar, all the choices or changes made seem to be taken. But in fact the frequency of my CPU is never changed and still running at 366 Mhz.
Xclkcfg2.exe (version 1.01) : nothing happens, no error message at launch, but no process in memory either.
SpeedStepper.exe : same result (nothing happens, no error message at launch, but no process in memory either).
XCPUScalar.exe : run-time error, with the following dialog box : "Application Error - Application XCPUScalar.exe encountered a serious error and must shut down."
MSM7KCPUSpeed V1 : run-time error, with the following dialog box :
(in french)
Erreur
Code d'exception : 0xc00000005
Adresse d'exception : 0x409d11dc
Lecture : 0xb5400104
Module défaillant : msm7kclocklib.dll
Offset ; 0x000011dc
... / ...
Click to expand...
Click to collapse
MSM7KCPUSpeed V2 : same as V1.
WiMoSpeed (version 1.09) : run-time error, with the following dialog box :
(in french)
Erreur
Code d'exception : 0xc00000005
Adresse d'exception : 0x409d2838
Ecriture : 0x00000000
Module défaillant : wimospeed.dll
Offset ; 0x00002838
... / ...
Click to expand...
Click to collapse
OCT 1.5 : unable to install... Seems the .CAB file isn't compatible.
And XGuru.exe does not work (no error message at launch, but no process in memory either).
Could you help me find it does not work, or another suggestion for overclocking software ?
Regards,
ps: sorry for my english I'm french
There is no generic overclock utility for Windows Mobile or WinCE. Overclock utility deals with the PLL clock generator within the SoC, so they are specifically targeted for the HW they are meant to be used with. So far, there are only overclock utility for Intel XScale, TI OMAP850, Samsung S3C and Qualcomm MSM7-series. If your HW does not have some of the popolar SoC for Windows Mobile during its time, it is not possible to make use any overclock utilities.

Categories

Resources