Security and Licensing for Windows Mobile 6/6.5 apps? - Windows Mobile Development and Hacking General

What are some of the options for security and licensing of Windows Mobile 6 app?
I am working on an app for which I want to have license file for each different scanner it is use on.
Is there possibly some web based method of creating a license file which will be tied to the scanner's serial number?

kdar1987 said:
What are some of the options for security and licensing of Windows Mobile 6 app?
I am working on an app for which I want to have license file for each different scanner it is use on.
Is there possibly some web based method of creating a license file which will be tied to the scanner's serial number?
Click to expand...
Click to collapse
You can implement a licensing scheme by using your own keygen software - you will have to develop this yourself to keep it unique and exclusive. Program your scanner app to recognise only the output key from your keygen. You can get the purchaser of your license to submit (via web or email) the scanner <Brand>, <Model>, <serial number>. Use these inputs to generate a key that will be recognisable by your software and then email the key to your licensee. Like many other apps, you can also have a "Free Trial" version so that a potential customer can try before buying the license; with constraints such as fully working for a limited time or crippled (cannot Save) or some other limitations.
Good luck.

chan.sk said:
You can implement a licensing scheme by using your own keygen software - you will have to develop this yourself to keep it unique and exclusive. Program your scanner app to recognise only the output key from your keygen. You can get the purchaser of your license to submit (via web or email) the scanner <Brand>, <Model>, <serial number>. Use these inputs to generate a key that will be recognisable by your software and then email the key to your licensee. Like many other apps, you can also have a "Free Trial" version so that a potential customer can try before buying the license; with constraints such as fully working for a limited time or crippled (cannot Save) or some other limitations.
Good luck.
Click to expand...
Click to collapse
Thank you.
Do you know how I can retrieve some unique information from device? (for example ID or serial number or something similar).... I am thinking now to use that information to generate hash code for license.

kdar1987 said:
Thank you.
Do you know how I can retrieve some unique information from device? (for example ID or serial number or something similar).... I am thinking now to use that information to generate hash code for license.
Click to expand...
Click to collapse
Some references:
http://msdn.microsoft.com/en-us/library/aa446562.aspx
http://msdn.microsoft.com/en-us/library/ms893522.aspx
http://blogs.msdn.com/b/windowsmobile/archive/2006/01/09/510997.aspx
Hope this helps

chan.sk said:
Some references:
http://msdn.microsoft.com/en-us/library/aa446562.aspx
http://msdn.microsoft.com/en-us/library/ms893522.aspx
http://blogs.msdn.com/b/windowsmobile/archive/2006/01/09/510997.aspx
Hope this helps
Click to expand...
Click to collapse
Thank you! This helped.

kdar1987 said:
Thank you! This helped.
Click to expand...
Click to collapse
Glad to be of some help. Good luck with your project.
Don't forget to hit the Thanks button to the contributor if you find any posts useful to you.

kdar1987 said:
What are some of the options for security and licensing of Windows Mobile 6 app?
I am working on an app for which I want to have license file for each different scanner it is use on.
Is there possibly some web based method of creating a license file which will be tied to the scanner's serial number?
Click to expand...
Click to collapse
Yeah, I have the same question and looking for the right answer.

Related

Protect You SOFTWARE

I know it is almost impossible to produce a software that is fully protected. In this I would like to share my experience in protection.
I developed a program that works in PPCPE and I have made a very good protection system….. I think
The protection system works as fallows:
- when the software is first install it capture the date of the installation
- it reads the device ID
- it ask the user for the program serial number
- I have two way of registering the system either through an SMS or through the web using a GPRS.
- The software combines the three number together using some equations to make it almost impossible to find out what I am collecting… also I use an equation verify if the serial number is OK since we are using SMS and it is very costly to send SMS that contains a wrong serial number
- When the user chose the method to register the number is send to my server and the server send back the activation key to the user PPCPE
- The PPCE will read the SMS and delete it and store this SMS in the database …
The above is to get the activation key
In the software the activation key is produce and I use “if statement” to compare the activation key which is stored in the data base and the one the software produce if they are the same it will execute otherwise it will stop execution
To make it very difficult for the hacker I use pointer in the program and in these pointer I add the protiction key to it and subtract the key the program produce to make the additon equal to zero if the two key are the same
The pointer point to each button and each menu item in the program
I hop this information will help and I welcome any comment
Hmmm, sounds nice...but is it worth all the trouble...especially the SMS route could complicate things, no?
Besides, with good debuggers is it not possible to NOP the check section or jmp it, applying a patch?
I would opt more for a good packer such as Armadillo, and protect it that way. It will obfuscate the code, has debugger protections built-in, splits codes and destructs IAT. Additionally, you could add nanomites to make unpacking even harder. Then use a simple license key system.
Yes you are write .. a good hacker can do that …. But
If you use the method of pointer it is almost impossible to get any thing out of the program and it will be use les for any body to use it
And also it is almost imposable to hack it
But armadillo is only available for x86 Windows. But your message is right, HappyGoat.
pointer protection: piece of cake!
Well, the pointer thing as you describe it does not sound too difficult to hack.
You said your software will take the address for a pointer, add the key the user has entered, and substract the one the program has computed so that it equals to zero.
So, this means that the shift is always the same, so if you can get the entry point for any button, you know which value to add to the key generated by your software. Since you don't obfuscate the code this is a matter of minutes to hack this. :roll:
UL
Re: PROTICT YOUR SOFTWARE
As an old cracker I can tell you that this algo would not be difficult to crack. You are not using EXE file encryption, anti-debugging, integrity checking, and other tricks that are used in good protections like ASProtect. They would take some hours to bypass. And playing with pointers can stop only kiddies. UnlockMe said why.
If a cracker would get one valid question-answer pair, he'll easily convert any program to a fully working version. And your code can be cracked without this knowledge.
- The software combines the three number together using some equations to make it almost impossible to find out what I am collecting…
Click to expand...
Click to collapse
Funny. Why should the cracker try to "find out what I am collecting"? Why the cracker should be bothered with all this ****? There are easier ways.
also I use an equation verify if the serial number is OK since we are using SMS and it is very costly to send SMS that contains a wrong serial number
Click to expand...
Click to collapse
Costly SMS? Even in Russia you can get free SMS subscription. I have free SMS + free GPRS + free incoming calls.
Your protection has at least one very thin part that makes it useless. I've seen the similar ideas before. But I would not tell you
And remember:
If it runs, it can be defeated. (c) +Orc
Click to expand...
Click to collapse
It is very nice to see people participates in a subject. I find it very interesting. And very helpful
I am not going to tell what I do but I am given a point to start to programmer
Chatty
Thanks for bringing this point. I can not find it also
UnlockME
I think it is very difficult to hack.
Imagine in my software I have 36 button and menu item. Each of them has a pointer. Let us say button one has a pointer value equal to 11675 let say it is stored in ptr
My key is 123456789 .. let say it is stored in a string str1
The key in the program is 908070605040302010 …… I use more encryption than that but this is just a demonstration
And let us say it is stored in str2
When you address the button you address it like this
Ptr = ptr – (str1[1]-str2[17])
As I mention I am not going to reveal the protection that I use.. I am only giving a point to start
There is more thing in it I leave it to your imagination ..
Mamaich
In my country each SMS cost the mobile owner 0.1 USD … I am not going to cost hem moony for a wrong entry
…….
I think I know what you are thinking …. If the key is produced in the program I can hack it … I hope the above example clear thing up
……..
if you know any EXE encryption or anti debugging software I will be thankful
……..
thanks every body for your replay
-------------------------
pleas remember I am not Claiming that my sAlgorithm is anti-hacked …. It is only an algorithm for protection that I came with
wwb95, I'm not going to disclose in this forum how to actually hack an exe, but what i can tell you is that pointer-based protection will only stop kiddies as Mamaic says.
a hacker is not always a bad guy, though often they use their knowledge for such purpose, but it is before everything a guy that has an extensive knowledge of development tools, operating system, memory management, ...
I can tell you that if you are going to protect your software with this pointer thing, please send me a link I'll be only too happy to provide it for free to the community with a working "yes-code". 8)
wwb95 said:
When you address the button you address it like this
Ptr = ptr – (str1[1]-str2[17])
Click to expand...
Click to collapse
I'll assume that (str1[1]-str2[17]) is always a constant for all Ptrs. Then you can easily find an original button handler (don't ask me how, newbies can check all function addresses, gurus can just look at the code, I'll use a different method), calculate this value and patch a program or write a keygen. And if it is not a constant - the process would not be much more difficult.
if you know any EXE encryption or anti debugging software I will be thankful
Click to expand...
Click to collapse
I don't know any existing protection. Long time ago I was developing such a project, but due to a lack of time and no investitions I've dropped it.
Here is a crackme - http://mamaich.kasone.com/wz/crackme.rar
and a pre-aplha of protector - http://mamaich.kasone.com/wz/protector.rar
It can compress&encrypt ARM WinCE DLLs and EXE files, has minor anti-debugging tricks and primitive import/export/resources encryption. And thats all that was done. No API, no stolen bytes, no on-the fly decryption, no integrity checking, etc.
I would not publish its source codes nor continue the work.
My advice: give up trying to protect your app. It can't be done; anything can be cracked easily. You're only going to piss off your users when the complex reg scheme starts introducing bugs and instability.
All you really want to do is a simple registration scheme. You have to rely on people's honor.
At Airscanner we wrote a book showing how to crack software, with a couple of chapters on ARM-based cracking for Windows CE. But you can get more info, and better, for free at Kaos' website:
http://ka0s.net/
It has everything you need to get started in Pocket PC reverse engineering.
By the way, it's good to see +ORC referenced in this forum. Mamaich do I know you?
airscanner said:
By the way, it's good to see +ORC referenced in this forum. Mamaich do I know you?
Click to expand...
Click to collapse
Some time ago I was a regular poster on www.reversing.net and www.reng.ru and reader of fraviamb. Now I don't have time for that.
Maybe you've seen my name in "thanks" sections of some tools.
ZXEvil why are you posting that link on multiple topics? What is that file?

{REQ}Awesome application Request_Using a Barcode and automatic Torrent Download...

Imagine you are standing in a store looking at DVDs. You photograph a barcode with your phone and press a couple of buttons. By the time you make it home, the movie is waiting for you in your torrent client.
This is the link for the app which is available on Android. I wonder if anyone could come up with something like this.
http://www.youtube.com/watch?v=h05KrEjHW6g
and VERY legal indeed...
While it is a clever idea, that kind of talk really isn't allowed here.. I think this thread will be closed!
thats amazing.. wonder how he is getting away with that!
not that i encourage illegal behavior or download anything illegaly, but i would love to see someone get something like that working for winmo too (not that i would use it)!
Illegal downloads
Its not like im encouraging illegal movie downloads. Just because a shop is providing bullets and guns doesnt mean that they are encouraging shooting and killing...
I think this would be a wonderful app and could have many uses other than illegal movie downloads so take a chill pill...
Yes, the implications are incredible. I'm sure there are *many* other uses other than illegal movie downloads, I just can't think of any right now.
..
Oh wait, got one! Music download?!
Hardly saying I'm against it, but do you really think this is the place for you to request an app which would make you a trigger-happy barcode reader?
other possible use
instead of having it take you to a torrent of the movie you can you use it log you dvds or cds to make a list of all your dvds or possibly use it with microsofts netflix app to add the scanned dvd to you rental list
Think outside the box lill fella there could be a lot more uses than just piracy... I saw the video on youtube and was very impressed so lighten up and go BUY a dvd or something if it makes u happy...
I already downloaded a torrent client on my mobile and am able to download content from many sites... Its called winmobile torrent if anyone is interested.
Please posts messages regarding development or alternatives to this rather that sarcy comments from now on.
p.s.
Dashraider that is an excellent idea...
Yeah, lets NOT discuss the legality of this application, in stead lets find out how to get this on our WM phones
To get it to work we would at least need
1. A barcode reading Lib, open source/free
2. A way of searching barcode number -> title
Google-ing for both ...
Mr_Gee said:
Yeah, lets NOT discuss the legality of this application, in stead lets find out how to get this on our WM phones
To get it to work we would at least need
1. A barcode reading Lib, open source/free
2. A way of searching barcode number -> title
Google-ing for both ...
Click to expand...
Click to collapse
Try Koushik Dutta's Windows Mobile Bar Code Manager and API.
Another possible use:
It scans the barcode, then identifies the product and checks online for different prices. So you can find the lowest price or whatever.
Thanks...
Thanks for your help on this guys...
Mandragore said:
Try Koushik Dutta's Windows Mobile Bar Code Manager and API.
Click to expand...
Click to collapse
I could only find the barcod creation part..
But... we could already start with just typing in the number
the rest could/would be automatic
jmckeejr said:
Another possible use:
It scans the barcode, then identifies the product and checks online for different prices. So you can find the lowest price or whatever.
Click to expand...
Click to collapse
Just an FYI there is already a WM program being developed that does this called Barcorama. It's a little crude in the fact that it doesn't actually "read" the barcode, it just searches a predefined string using the barcode numbers that you photograph, and opens a browser page with the prices.
You can edit the search string as well, I think it defaults to a Google Shop search, but you can make it search Amazon/Whatever fairly easily.
To take this a step further, basically what I imagine the general workings of this application would do would be something of the following.
Using pretty much the same foundation as barcorama you would take a pic of the barcode, but instead of displaying the pricing page it would instead parse the data for a title of a movie/artist/etc. This operation would likely be hidden to conserve resources. Beyond this you could take the data that you got from searching the UPC and then plug that into a torrent search site such as isohunt, and have it grab whichever torrent has the closest match or best seeds.
The problems would be that while you could do all the steps on the PPC, I'm not exactly sure how you would get the .torrent opened on your PC without some sort of remote feature/LogMeIn etc. which are probably difficult to integrate into the application.
An additional problem would be that the application would have to judge which torrent from the tracker is "best" to download which would probably have to be handled by some combo of which torrent has the most seeds and which most precisely matches the data it acquired from the barcode.
I'd imagine that this project can be done without too much trouble, but it will probably take awhile to work out the bugs/fine tune the search/etc.
-Edit: After rereading this I came up with an idea for a workaround to get the file to the PC. It's only an idea like I said and would require additional development, but I'm just planting the seed for the more creative minds to bloom.
Basically the steps would be the same as above, but when you reached the point where the .torrent has been found, have the program save the .torrent to a temporary directory, attach it to an email document, and email it to an address you would input. You would probably have to run an app always on the PC that would watch your email, and open any .torrents that came in, I'm not sure how difficult that would be.
I think something like this is the easiest way to do this, but anyone can feel free to chime in with tweaks/new ideas
Scorpion360 said:
Just an FYI there is already a WM program being developed that does this called Barcorama. It's a little crude in the fact that it doesn't actually "read" the barcode, it just searches a predefined string using the barcode numbers that you photograph, and opens a browser page with the prices.
You can edit the search string as well, I think it defaults to a Google Shop search, but you can make it search Amazon/Whatever fairly easily.
To take this a step further, basically what I imagine the general workings of this application would do would be something of the following.
Using pretty much the same foundation as barcorama you would take a pic of the barcode, but instead of displaying the pricing page it would instead parse the data for a title of a movie/artist/etc. This operation would likely be hidden to conserve resources. Beyond this you could take the data that you got from searching the UPC and then plug that into a torrent search site such as isohunt, and have it grab whichever torrent has the closest match or best seeds.
The problems would be that while you could do all the steps on the PPC, I'm not exactly sure how you would get the .torrent opened on your PC without some sort of remote feature/LogMeIn etc. which are probably difficult to integrate into the application.
An additional problem would be that the application would have to judge which torrent from the tracker is "best" to download which would probably have to be handled by some combo of which torrent has the most seeds and which most precisely matches the data it acquired from the barcode.
I'd imagine that this project can be done without too much trouble, but it will probably take awhile to work out the bugs/fine tune the search/etc.
-Edit: After rereading this I came up with an idea for a workaround to get the file to the PC. It's only an idea like I said and would require additional development, but I'm just planting the seed for the more creative minds to bloom.
Basically the steps would be the same as above, but when you reached the point where the .torrent has been found, have the program save the .torrent to a temporary directory, attach it to an email document, and email it to an address you would input. You would probably have to run an app always on the PC that would watch your email, and open any .torrents that came in, I'm not sure how difficult that would be.
I think something like this is the easiest way to do this, but anyone can feel free to chime in with tweaks/new ideas
Click to expand...
Click to collapse
I'm actually writing an app to read UPCs and search Amazon prices...
Mr_Gee said:
I could only find the barcod creation part..
But... we could already start with just typing in the number
the rest could/would be automatic
Click to expand...
Click to collapse
Sorry, didn't check the API code for scanning barcodes..
Mandragore said:
Sorry, didn't check the API code for scanning barcodes..
Click to expand...
Click to collapse
Geen probleem ;-)
Ontoppic
This could be an option :http://forum.xda-developers.com/showthread.php?t=368798
I need to look into it, and see if I/we can use it,
I also think we can use amazone.com for the dvd info
I just need to look in to the placing of the nzb/torrent
but we're getting there
winmobile torrent seems cool, but i dont really understand the point of downloading huge files over edge to your mobile, would make more sense if it synced with your computer like in the video so it would use a higher bandwith
I've always been interested in creating a barcode reading program.
Before my two kids came along and took away all our free time, my wife used to collect coupons. She would put them all in a index card holder and reference them whenever she was buying something. The most time consuming part was keeping up with the expiration dates and what each coupon was for, then compare them to fliers from the supermarkets.
My idea was to barcode scan each coupon and have an online database of what the coupons were for, how much off, expiration date, and barcodes of products the coupon was valid for. I know that supermarkets have such a database but it would be great if it was available online somewhere.
Even as a community effort (users scan a coupon and type in the applicable info then upload and share with everyone else), this would be a useful little program.
In this economy, we can all use an app like this, can't we? My Wife and I used to leave the supermarket with a shopping cart full of food and personal hygiene products having only paid $3 - $10 bucks.

Successfully got my app with restricted API published in store !!

That's an app to help you lock screen and adjust volume with tiles. It calls functions in ShellChromeAPI.dll . Finally, it got published with English version.
link: http://www.windowsphone.com/en-us/store/app/quick-tiles/1725cca2-2349-4d33-b5d5-8b04e7810c04
(You may need to switch your phone language to English to download the English version. otherwise, the Chinese version will be shown. Forgive me for my tight schedule and I have to split different languages into different XAPs, for I only spent 2 hours developing this app...)
I've found two ways to pass the marketplace API detect, one is to use P/Invoke and the other is to load LoadLibraryExW without extern that from the lib provided by Microsoft.
both methods will be provided here in a month, and I may provide write some wrappers or static libraries.
Notice that I only found ways to access restricted API, but get higher privilege is not possible.
By this way, I think @GoodDayToDie 's HTTP Server with registry browser can be published with some simple modify. Even publishing the samsung interop unlock guide, which launches the toast using undocumented, is possible. Maybe we should try to find more useful functions which can be called without privilege in different dlls.
hjc4869 said:
That's an app to help you lock screen and adjust volume with tiles. It calls functions in ShellChromeAPI.dll . Finally, it got published with English version.
link: http://www.windowsphone.com/en-us/store/app/quick-tiles/1725cca2-2349-4d33-b5d5-8b04e7810c04
(You may need to switch your phone language to English to download the English version. otherwise, the Chinese version will be shown. Forgive me for my tight schedule and I have to split different languages into different XAPs, for I only spent 2 hours developing this app...)
I've found two ways to pass the marketplace API detect, one is to use P/Invoke and the other is to load LoadLibraryExW without extern that from the lib provided by Microsoft.
both methods will be provided here in a month, and I may provide write some wrappers or static libraries.
Notice that I only found ways to access restricted API, but get higher privilege is not possible.
By this way, I think @GoodDayToDie 's HTTP Server with registry browser can be published with some simple modify. Even publishing the samsung interop unlock guide, which launches the toast using undocumented, is possible. Maybe we should try to find more useful functions which can be called without privilege in different dlls.
Click to expand...
Click to collapse
What restricted API's possible to upload ?
ngame said:
What restricted API's possible to upload ?
Click to expand...
Click to collapse
you can load any API functions. but only some of them can be called and only a few is really useful.
I only tested the following functions
BOOL Shell_IsLocked()
void Shell_TurnScreenOn(BOOL)
void Shell_AdjustVolume(int)
hjc4869 said:
That's an app to help you lock screen and adjust volume with tiles. It calls functions in ShellChromeAPI.dll . Finally, it got published with English version.
link: http://www.windowsphone.com/en-us/store/app/quick-tiles/1725cca2-2349-4d33-b5d5-8b04e7810c04
(You may need to switch your phone language to English to download the English version. otherwise, the Chinese version will be shown. Forgive me for my tight schedule and I have to split different languages into different XAPs, for I only spent 2 hours developing this app...)
I've found two ways to pass the marketplace API detect, one is to use P/Invoke and the other is to load LoadLibraryExW without extern that from the lib provided by Microsoft.
both methods will be provided here in a month, and I may provide write some wrappers or static libraries.
Notice that I only found ways to access restricted API, but get higher privilege is not possible.
By this way, I think @GoodDayToDie 's HTTP Server with registry browser can be published with some simple modify. Even publishing the samsung interop unlock guide, which launches the toast using undocumented, is possible. Maybe we should try to find more useful functions which can be called without privilege in different dlls.
Click to expand...
Click to collapse
Interesting. But almost useless cause now all can freely make a developer unlock. Store apps can use RPC but this requires InteropServices CAP.
-W_O_L_F- said:
Interesting. But almost useless cause now all can freely make a developer unlock. Store apps can use RPC but this requires InteropServices CAP.
Click to expand...
Click to collapse
yes I tried it before in beta app .
ID_CAP_INTEROPSERVICES , Xbox live and exe files in xap are unable to upload !
And those APIs work without having the restricted capabilities in the manifest file?
After the update, it went back to Chinese... it would be nice if you set English as the default language, at least for European and American countries
mcosmin222 said:
And those APIs work without having the restricted capabilities in the manifest file?
Click to expand...
Click to collapse
Yes.
-W_O_L_F- said:
Yes.
Click to expand...
Click to collapse
Hmmm
This looks interesting.
P/Invoke? How did you manage to use it? I thought it was not available for Silverlight?
pinvoke is possible with silverlight, but according to microsoft it is illegal on the marketplace.
which is half true. you cant pinvoke a native dll compiled for arm, but the wp8 own dlls seem to make an exception
mcosmin222 said:
you cant pinvoke a native dll compiled for arm, but the wp8 own dlls seem to make an exception
Click to expand...
Click to collapse
What is the difference?
Useless guy said:
What is the difference?
Click to expand...
Click to collapse
Go ask microsoft.
If you scroll down you will find that p/invoke is not allowed in wp8 sdk
http://msdn.microsoft.com/en-us/lib...jj206940(v=vs.105).aspx#BKMK_Appcompatibility
however, the OP seems to have managed to do it with a DLL contained in the WP8 system.
I never actually tried to p/invoke something on the marketplace. Maybe this needs additional research to see if arm compiled third party dlls can be used.
I remember some guy on the forum trying to p/invoke a native ARM dll and got type load exceptions.
by native i mean something which is not compiled with C++/CX for windows phone. As in pure C/C++ targeted for ARM.
mcosmin222 said:
Go ask microsoft.
If you scroll down you will find that p/invoke is not allowed in wp8 sdk
http://msdn.microsoft.com/en-us/lib...jj206940(v=vs.105).aspx#BKMK_Appcompatibility
however, the OP seems to have managed to do it with a DLL contained in the WP8 system.
I never actually tried to p/invoke something on the marketplace. Maybe this needs additional research to see if arm compiled third party dlls can be used.
I remember some guy on the forum trying to p/invoke a native ARM dll and got type load exceptions.
by native i mean something which is not compiled with C++/CX for windows phone. As in pure C/C++ targeted for ARM.
Click to expand...
Click to collapse
I know what pinvoke is perfectly, don't send me to msdn as long as I'm able to find it by myself.
Both an unmanaged dll and a WinRT component are native. CLR wraps every COM\WinRT object in the Runtime Callable Wrapper, but the object itself stays in the unmanaged heap.
If you think that WinRT or C++/CX are not native, you're wrong.
To @hjc4869
How did you manage to bypass marketplace analysis using P\Invoke? I'm fairly certain that MS checks metadata for DllImport attribute.
I'm going to try the second way, thanks!
Useless guy said:
I know what pinvoke is perfectly, don't send me to msdn as long as I'm able to find it by myself.
Both an unmanaged dll and a WinRT component are native. CLR wraps every COM\WinRT object in the Runtime Callable Wrapper, but the object itself stays in the unmanaged heap.
If you think that WinRT or C++/CX are not native, you're wrong.
To @hjc4869
How did you manage to bypass marketplace analysis using P\Invoke? I'm fairly certain that MS checks metadata for DllImport attribute.
I'm going to try the second way, thanks!
Click to expand...
Click to collapse
never said you don't know what p/invoke is.
I just wanted to show you that it is illegal in wp8 SDK (which that link leads to).
And if you actually read that link, you would see that invoking winRT or C++/CX (compiled for WP8) is allowed. This is probably due to the fact that these methods still execute in a sandbox. While MS won't allow arm compiled dll without the WP8 SDK because it can't verify its security.
mcosmin222 said:
And if you actually read that link, you would see that invoking winRT or C++/CX (compiled for WP8) is allowed. This is probably due to the fact that these methods still execute in a sandbox. While MS won't allow arm compiled dll without the WP8 SDK because it can't verify its security.
Click to expand...
Click to collapse
What does it mean - compile for WP8? I can add to the package any dll that uses Win32 (non-restricted) and compiled for ARM. The library will work on both WP and W8 without recompilaton.
Useless guy said:
What does it mean - compile for WP8? I can add to the package any dll that uses Win32 (non-restricted) and compiled for ARM. The library will work on both WP and W8 without recompilaton.
Click to expand...
Click to collapse
Will it? When you compile a C++ dll for desktop, it references kernel32.dll and unless you explicitly exclude it from the linker, it couldn't possible work on WP8 since there's no kernel32.dll.
Hi all
Trying to play with this method, but it seems LoadLibraryExW is not available. The only function available is LoadPackagedLibrary and when I try to run it, I've got C00000D error which is STATUS_INVALID_PARAMETER.
---------- Post added at 01:03 PM ---------- Previous post was at 12:49 PM ----------
It seems LoadPackagedLibrary only loads .dll from installation folder of application and do not allows full path in name. Thats why I got invalid argument error
Useless guy said:
What is the difference?
Click to expand...
Click to collapse
Code signature.
Sunius1 said:
Will it? When you compile a C++ dll for desktop, it references kernel32.dll and unless you explicitly exclude it from the linker, it couldn't possible work on WP8 since there's no kernel32.dll.
Click to expand...
Click to collapse
Kernel32.dll is the huge part of Win32 and it exists on both WP and Windows. WPSDK doesn't include kernel32.lib, but I'm pretty sure it can be easily generated from dll file.
#define WINAPI_PARTITION_DESKTOP and kernel32.lib should work, I think.
UPD:
I forgot, kernel32 could be removed as it's just the compatability layer for kernelbase.dll and new windows 8 api sets (api-ms-*.dll).
clrokr said:
Code signature.
Click to expand...
Click to collapse
DLLs are signing on certification process.

[XAP] NTP Time Synchronization for interopunlocked Samsung phones

Because my GSM network's automatic time is somehow set wrong, the set automatic time+date doesn't work for me, so this is a quite useful app for me, it can get various NTP server times and synchronize the phone's time and date to it.
It can currently sync with multiple NTP servers, I tried to add as many as I could find, although the default Russian NTP server one works fine most of the time.
Since another person did most of the programming, and not me, it will be updated if needed, but that update might not be immediate...please add any comments bellow...second post is reserved for change log descriptions. Feel free to add your insight, along with any comments, they're all valuable.
TIA
p.s.
As of yet this can't be published to windows phone store because it uses INTEROPSERVICES capability (among other things), if anything about that changes you will be notified immediately with the store link, also you'll be notified if this ever starts working on other manufacturer's phones....until then please make sure your phone is developer unlocked to deploy/sideload it...and that it is interopunlocked to work.
p.p.s.
Last, but not least, thanks to GDTD and dimoniche.
post rsrvd
wow
I was somehow expecting some ugly but functional UI, but this certainly is awesome, and it works flawless!!
and the UI is well done!!
Any chance you can post the source? There's a capability (not INTEROPSERVICES) that specifically enables setting the time; it might be better to use that instead.
GoodDayToDie said:
Any chance you can post the source? There's a capability (not INTEROPSERVICES) that specifically enables setting the time; it might be better to use that instead.
Click to expand...
Click to collapse
Could you please provide this capability (for setting time)? I've tried to use kernel's SetSystemTime (with GetProcAddress trick) but it always returns 0 (i.e. BOOL FALSE).
You probably want ID_CAP_BUILTIN_SETTIME. Will probably require capability-unlock, but should let you use the Win32 APIs.
By the way, no need to mess with GetProcAddress. You can get the function prototype (from MSDN or from the header files) and link against the relevant library directly (may need to use DLL2LIB to extract the link library from the DLL).
GoodDayToDie said:
You probably want ID_CAP_BUILTIN_SETTIME. Will probably require capability-unlock, but should let you use the Win32 APIs.
Click to expand...
Click to collapse
I've got a build error: Error 1 The 'Name' attribute is invalid - The value 'ID_CAP_BUILTIN_SETTIME' is invalid according to its datatype 'String' - The Enumeration constraint failed.
GoodDayToDie said:
By the way, no need to mess with GetProcAddress. You can get the function prototype (from MSDN or from the header files) and link against the relevant library directly (may need to use DLL2LIB to extract the link library from the DLL).
Click to expand...
Click to collapse
App build by this way will never pass marketplace certification.
Well, not any more than a third-party app using ID_CAP_INTEROPSERVICES (or, probably, ID_CAP_BUILTIN_SETTIME) would, no... Unless you have a reason to try and be sneaky about what the app is doing, I find my approach to be more readable and straightforward. However, it's true that if you're trying to pull a fast one, it probably won't work because the import will appear in the PE data and that's easy to find.
GoodDayToDie said:
However, it's true that if you're trying to pull a fast one, it probably won't work because the import will appear in the PE data and that's easy to find.
Click to expand...
Click to collapse
Hmm... I believe we've already discussed how that stuff works (as far as I remember, I've sent you a source code). There is no imported function names in the import section, everything loaded dynamically (except one call). And - "yes" - it works perfect for store certification (just check current number of "volume controllers" at the store)

Question windows 10 needed

any one ho can give OS windows 10 and also driver for pc thanks
Procopyo said:
any one ho can give OS windows 10 and also driver for pc thanks
Click to expand...
Click to collapse
You can download ISO images for WIndows distributions direct from Microsoft. As for activation, you will have to purchase a license.
Be aware that the sharing of copyrighted material as well as cracks/keygens on XDA is prohibited:
6. Do not post or request warez.
If a piece of software requires you to pay to use it, then pay for it. We do not accept warez nor do we permit members to request, post, promote or describe ways in which warez, cracks, serial codes or other means of avoiding payment, can be obtained or used. This is a site of developers, i.e. the sort of people who create such software. When you cheat a software developer, you cheat us as a community.
Click to expand...
Click to collapse
Hello, I have some licence keys from broken devices I doesn't need.
They are original Microsoft Licences, no cracks, not generated with a keygen or found somewhere in the WWW.
If you are interested you can contact me.
(@MOD if this offer break the forums rules please delete the text above, I just want to help)
If your license key is stored in your BIOS, can you find it out with "Showkeyplus" (portable Software that can run without installation from an USB Stick)
Drivers for your device you can get at the manufacturers support homepage or you look what hardware components are builded-in and get the newest drivers on their support homepage (from Intel, AMD, Nvidia, Realtek, Broadcom, usw. sometimes they are hard to find. That's the way I install drivers).
DO NOT USE DRIVERS OFFERED FROM OTHER HOMEPAGES! They could be contain malware!
Use "Hardware Info 7.35" to see with hardware is build-in in your device. Don't forget to adjust the program settings using it the first time.
It's also a portable Programm that doesn't need to be installed and can run from an USB Stick.
I hope I could help you and doesn't violated any Forums Rules....
Mobile-User_2021 said:
Hello, I have some licence keys from broken devices I doesn't need.
They are original Microsoft Licences, no cracks, not generated with a keygen or found somewhere in the WWW.
If you are interested you can contact me.
(@MOD if this offer break the forums rules please delete the text above, I just want to help)
If your license key is stored in your BIOS, can you find it out with "Showkeyplus" (portable Software that can run without installation from an USB Stick)
Drivers for your device you can get at the manufacturers support homepage or you look what hardware components are builded-in and get the newest drivers on their support homepage (from Intel, AMD, Nvidia, Realtek, Broadcom, usw. sometimes they are hard to find. That's the way I install drivers).
DO NOT USE DRIVERS OFFERED FROM OTHER HOMEPAGES! They could be contain malware!
Use "Hardware Info 7.35" to see with hardware is build-in in your device. Don't forget to adjust the program settings using it the first time.
It's also a portable Programm that doesn't need to be installed and can run from an USB Stick.
I hope I could help you and doesn't violated any Forums Rules....
Click to expand...
Click to collapse
Hi Mobile-User_2021, could you please help, i need L. K for 8.1 PRO or 10 HOME. Regards
any one other OS

Categories

Resources