Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,810,588 Members 46,318 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Hacking Windows RT to Run Desktop Apps?

Tip us?
 
clrokr
Old
#201  
Member
Thanks Meter 53
Posts: 69
Join Date: Aug 2009
Quote:
Originally Posted by peterdn View Post
Utterly fantastic. Managed to compile PuTTY with not much trouble and it runs perfectly!
Awesome! Try out more open source stuff, I know I will.

Quote:
Originally Posted by netham45 View Post
I just tried a simple pure .net program (Form with a label on it) and the same .exe works on both my desktop and my tablet. I can't believe MS locked this out.
I really don't get how the people on Reddit are so against having desktop apps on their devices. It works flawlessly. Probably a bad case of Reddit Reverse Psychology

It honestly just feels like my Surface's value has magically increased by $300.
The Following User Says Thank You to clrokr For This Useful Post: [ Click to Expand ]
 
netham45
Old
#202  
Recognized Developer
Thanks Meter 540
Posts: 863
Join Date: Jun 2009
Location: Denver

 
DONATE TO ME
I seem to be missing a number of libs required for things like putty and the such, any clues on where they are?

Code:
7>sizetip.obj : error LNK2019: unresolved external symbol __imp_DeleteDC referenced in function SizeTipWndProc
7>window.obj : error LNK2001: unresolved external symbol __imp_DeleteDC
7>sizetip.obj : error LNK2019: unresolved external symbol __imp_GetTextExtentPoint32A referenced in function SizeTipWndProc
7>winctrls.obj : error LNK2001: unresolved external symbol __imp_GetTextExtentPoint32A
7>sizetip.obj : error LNK2019: unresolved external symbol __imp_SelectObject referenced in function SizeTipWndProc
7>winctrls.obj : error LNK2001: unresolved external symbol __imp_SelectObject
7>window.obj : error LNK2001: unresolved external symbol __imp_SelectObject
7>sizetip.obj : error LNK2019: unresolved external symbol __imp_CreateCompatibleDC referenced in function SizeTipWndProc
7>window.obj : error LNK2001: unresolved external symbol __imp_CreateCompatibleDC
7>sizetip.obj : error LNK2019: unresolved external symbol __imp_DeleteObject referenced in function SizeTipWndProc
7>winctrls.obj : error LNK2001: unresolved external symbol __imp_DeleteObject
7>window.obj : error LNK2001: unresolved external symbol __imp_DeleteObject
7>sizetip.obj : error LNK2019: unresolved external symbol __imp_TextOutA referenced in function SizeTipWndProc
7>winctrls.obj : error LNK2001: unresolved external symbol __imp_TextOutA
7>sizetip.obj : error LNK2019: unresolved external symbol __imp_SetBkColor referenced in function SizeTipWndProc
7>window.obj : error LNK2001: unresolved external symbol __imp_SetBkColor
7>sizetip.obj : error LNK2019: unresolved external symbol __imp_SetTextColor referenced in function SizeTipWndProc
7>window.obj : error LNK2001: unresolved external symbol __imp_SetTextColor
7>sizetip.obj : error LNK2019: unresolved external symbol __imp_Rectangle referenced in function SizeTipWndProc
7>window.obj : error LNK2001: unresolved external symbol __imp_Rectangle
7>sizetip.obj : error LNK2019: unresolved external symbol __imp_CreateSolidBrush referenced in function SizeTipWndProc
7>window.obj : error LNK2001: unresolved external symbol __imp_CreateSolidBrush
7>sizetip.obj : error LNK2019: unresolved external symbol __imp_GetStockObject referenced in function SizeTipWndProc
7>window.obj : error LNK2001: unresolved external symbol __imp_GetStockObject
7>sizetip.obj : error LNK2019: unresolved external symbol __imp_CreateFontIndirectA referenced in function UpdateSizeTip
7>winctrls.obj : error LNK2019: unresolved external symbol __imp_SetMapMode referenced in function staticwrap
7>winctrls.obj : error LNK2019: unresolved external symbol __imp_GetDeviceCaps referenced in function staticwrap
7>window.obj : error LNK2001: unresolved external symbol __imp_GetDeviceCaps
7>winctrls.obj : error LNK2019: unresolved external symbol __imp_GetTextExtentExPointA referenced in function staticwrap
7>winctrls.obj : error LNK2019: unresolved external symbol __imp_LBItemFromPt referenced in function pl_itemfrompt
7>winctrls.obj : error LNK2019: unresolved external symbol __imp_CreateFontA referenced in function dlg_auto_set_fixed_pitch_flag
7>window.obj : error LNK2001: unresolved external symbol __imp_CreateFontA
7>winctrls.obj : error LNK2019: unresolved external symbol __imp_GetTextMetricsA referenced in function dlg_auto_set_fixed_pitch_flag
7>window.obj : error LNK2001: unresolved external symbol __imp_GetTextMetricsA
7>winctrls.obj : error LNK2019: unresolved external symbol __imp_MakeDragList referenced in function prefslist
7>winctrls.obj : error LNK2019: unresolved external symbol __imp_DrawInsert referenced in function handle_prefslist
7>winctrls.obj : error LNK2019: unresolved external symbol __imp_ChooseFontA referenced in function winctrl_handle_command
7>winctrls.obj : error LNK2019: unresolved external symbol __imp_ChooseColorA referenced in function winctrl_handle_command
7>windlg.obj : error LNK2019: unresolved external symbol __imp_ShellExecuteA referenced in function AboutProc
7>window.obj : error LNK2019: unresolved external symbol __imp_CreatePalette referenced in function init_palette
7>window.obj : error LNK2019: unresolved external symbol __imp_SelectPalette referenced in function init_palette
7>window.obj : error LNK2019: unresolved external symbol __imp_RealizePalette referenced in function init_palette
7>window.obj : error LNK2019: unresolved external symbol __imp_GetCharacterPlacementW referenced in function exact_textout
7>window.obj : error LNK2019: unresolved external symbol __imp_ExtTextOutA referenced in function exact_textout
7>window.obj : error LNK2019: unresolved external symbol __imp_GetCharABCWidthsFloatA referenced in function get_font_width
7>window.obj : error LNK2019: unresolved external symbol ImmGetContext referenced in function sys_cursor_update
7>window.obj : error LNK2019: unresolved external symbol ImmSetCompositionWindow referenced in function sys_cursor_update
7>window.obj : error LNK2019: unresolved external symbol ImmReleaseContext referenced in function sys_cursor_update
7>window.obj : error LNK2019: unresolved external symbol __imp_SetPaletteEntries referenced in function real_palette_set
7>window.obj : error LNK2019: unresolved external symbol __imp_ExtTextOutW referenced in function general_textout
7>window.obj : error LNK2019: unresolved external symbol __imp_SetBkMode referenced in function general_textout
7>window.obj : error LNK2019: unresolved external symbol __imp_GetBkMode referenced in function general_textout
7>window.obj : error LNK2019: unresolved external symbol __imp_GetObjectA referenced in function init_fonts
7>window.obj : error LNK2019: unresolved external symbol __imp_TranslateCharsetInfo referenced in function init_fonts
7>window.obj : error LNK2019: unresolved external symbol __imp_SetTextAlign referenced in function init_fonts
7>window.obj : error LNK2019: unresolved external symbol __imp_CreateCompatibleBitmap referenced in function init_fonts
7>window.obj : error LNK2019: unresolved external symbol __imp_GetPixel referenced in function init_fonts
7>window.obj : error LNK2019: unresolved external symbol __imp_GetCharWidth32A referenced in function char_width
7>window.obj : error LNK2019: unresolved external symbol __imp_GetCharWidthA referenced in function char_width
7>window.obj : error LNK2019: unresolved external symbol __imp_GetCharWidth32W referenced in function char_width
7>window.obj : error LNK2019: unresolved external symbol __imp_GetCharWidthW referenced in function char_width
7>window.obj : error LNK2019: unresolved external symbol __imp_CoUninitialize referenced in function cleanup_exit
7>window.obj : error LNK2019: unresolved external symbol __imp_UnrealizeObject referenced in function palette_set
7>window.obj : error LNK2019: unresolved external symbol __imp_GetClipBox referenced in function xEnumDisplayMonitors
7>window.obj : error LNK2019: unresolved external symbol __imp_GetDCOrgEx referenced in function xEnumDisplayMonitors
7>window.obj : error LNK2019: unresolved external symbol __imp_LineTo referenced in function do_text_internal
7>window.obj : error LNK2019: unresolved external symbol __imp_MoveToEx referenced in function do_text_internal
7>window.obj : error LNK2019: unresolved external symbol __imp_CreatePen referenced in function do_text_internal
7>window.obj : error LNK2019: unresolved external symbol __imp_PlaySoundA referenced in function do_beep
7>window.obj : error LNK2019: unresolved external symbol __imp_Polyline referenced in function do_cursor
7>window.obj : error LNK2019: unresolved external symbol __imp_SetPixel referenced in function do_cursor
7>window.obj : error LNK2019: unresolved external symbol __imp_ExcludeClipRect referenced in function WndProc
7>window.obj : error LNK2019: unresolved external symbol __imp_IntersectClipRect referenced in function WndProc
7>window.obj : error LNK2019: unresolved external symbol __imp_UpdateColors referenced in function WndProc
7>window.obj : error LNK2019: unresolved external symbol ImmSetCompositionFontA referenced in function WndProc
7>window.obj : error LNK2019: unresolved external symbol ImmGetCompositionStringW referenced in function WndProc
7>window.obj : error LNK2019: unresolved external symbol __imp_InitCommonControls referenced in function WinMain
7>window.obj : error LNK2019: unresolved external symbol __imp_CoInitialize referenced in function WinMain
7>window.obj : error LNK2019: unresolved external symbol __imp_CreateBitmap referenced in function WinMain
7>winjump.obj : error LNK2019: unresolved external symbol __imp_CoCreateInstance referenced in function make_shell_link
7>winmisc.obj : error LNK2019: unresolved external symbol __imp_GetUserNameA referenced in function get_username
7>winprint.obj : error LNK2019: unresolved external symbol EnumPrintersA referenced in function printer_add_enum
7>winprint.obj : error LNK2019: unresolved external symbol OpenPrinterA referenced in function printer_start_job
7>winprint.obj : error LNK2019: unresolved external symbol StartDocPrinterA referenced in function printer_start_job
7>winprint.obj : error LNK2019: unresolved external symbol StartPagePrinter referenced in function printer_start_job
7>winprint.obj : error LNK2019: unresolved external symbol EndDocPrinter referenced in function printer_start_job
7>winprint.obj : error LNK2019: unresolved external symbol ClosePrinter referenced in function printer_start_job
7>winprint.obj : error LNK2019: unresolved external symbol WritePrinter referenced in function printer_job_data
7>winprint.obj : error LNK2019: unresolved external symbol EndPagePrinter referenced in function printer_finish_job
7>winstore.obj : error LNK2019: unresolved external symbol __imp_RegSetValueExA referenced in function write_setting_s
7>winstore.obj : error LNK2019: unresolved external symbol __imp_RegCloseKey referenced in function close_settings_w
7>winstore.obj : error LNK2019: unresolved external symbol __imp_RegQueryValueExA referenced in function read_setting_s
7>winstore.obj : error LNK2019: unresolved external symbol __imp_RegOpenKeyA referenced in function enum_settings_start
7>winstore.obj : error LNK2019: unresolved external symbol __imp_RegEnumKeyA referenced in function registry_recursive_remove
7>winstore.obj : error LNK2019: unresolved external symbol __imp_RegDeleteKeyA referenced in function registry_recursive_remove
7>winstore.obj : error LNK2019: unresolved external symbol __imp_RegCreateKeyA referenced in function open_settings_w
7>winstore.obj : error LNK2019: unresolved external symbol __imp_RegCreateKeyExA referenced in function transform_jumplist_registry
7>winstore.obj : error LNK2019: unresolved external symbol __imp_RegDeleteValueA referenced in function transform_jumplist_registry
7>winutils.obj : error LNK2019: unresolved external symbol __imp_GetSaveFileNameA referenced in function request_file
7>winutils.obj : error LNK2019: unresolved external symbol __imp_GetOpenFileNameA referenced in function request_file
I've only spent a few minutes looking at it, though, I've got to go pretty soon.
Don't PM me for help, post on the forums. I won't respond to basic questions.

I wrote and maintain the jailbreak scripts for Windows RT.

Tablet: Microsoft Surface RT 32GB, Type Keyboard
Phone: Samsung Galaxy Note III

Helpful Windows RT Links:
Windows RT Jailbreak Tool
List of ported apps
Disabling Windows Update
 
peterdn
Old
#203  
Member
Thanks Meter 11
Posts: 35
Join Date: Sep 2010
Location: Oxford
Quote:
Originally Posted by clrokr View Post
Awesome! Try out more open source stuff, I know I will.
Now, who wants to port Chromium?

Quote:
Originally Posted by netham45 View Post
I seem to be missing a number of libs required for things like putty and the such, any clues on where they are?
The list of libs I needed (to make manually, as they aren't included in any SDKs) were:

comctl32.lib
imm32.lib
winmm.lib
gdi32.lib
advapi32.lib
ole32.lib
shell32.lib
comdlg32.lib
winspool.lib (from winspool.drv)

I'd be happy to send my *.libs and *.defs if that's allowed, would save you some time.
The Following 2 Users Say Thank You to peterdn For This Useful Post: [ Click to Expand ]
 
netham45
Old
(Last edited by netham45; 6th January 2013 at 05:34 PM.)
#204  
Recognized Developer
Thanks Meter 540
Posts: 863
Join Date: Jun 2009
Location: Denver

 
DONATE TO ME
Quote:
Originally Posted by peterdn View Post
Now, who wants to port Chromium?
I'd be happy to send my *.libs and *.defs if that's allowed, would save you some time.
That'd be very appreciated. I already sent you a PM about that a few minutes ago, heh.

Already working on getting Synergy going, too.

Edit: Holy crap, tons of stupid version number checks, freaks out if it can't find VS2010. :|

More edit: TightVNC seems to only be requiring a few missing .libs to build. I've got to go for a few hours, but when I get back I'll see if I can come up with a script to generate .libs for all the .dll's that x86/x64 has .libs for. Then we can give that to people, and not worry about distributing potentially copyrighted .libs.

Even more edit: Benchmark in 7z (Compiled by Cotulla):
Don't PM me for help, post on the forums. I won't respond to basic questions.

I wrote and maintain the jailbreak scripts for Windows RT.

Tablet: Microsoft Surface RT 32GB, Type Keyboard
Phone: Samsung Galaxy Note III

Helpful Windows RT Links:
Windows RT Jailbreak Tool
List of ported apps
Disabling Windows Update
 
samco08
Old
#205  
Senior Member
Thanks Meter 4
Posts: 112
Join Date: Jan 2009
yeh !!!!!!!!!!!!!!!!!!!! amazing !
good job guys !

vlc ?
7zip ?
chromium ?

 
peterdn
Old
#206  
Member
Thanks Meter 11
Posts: 35
Join Date: Sep 2010
Location: Oxford
Quote:
Originally Posted by netham45 View Post
More edit: TightVNC seems to only be requiring a few missing .libs to build. I've got to go for a few hours, but when I get back I'll see if I can come up with a script to generate .libs for all the .dll's that x86/x64 has .libs for. Then we can give that to people, and not worry about distributing potentially copyrighted .libs.
I've whipped up a super simple C# app that generates a .lib from a .dll. It relies on dumpbin.exe and lib.exe being in %PATH%, so you just run it from the ARM cross tools command prompt. It works for all the .dlls I mentioned above, but I can't promise it'll work for everything -- it just does some very rough chopping to create the .def file.

Source & binary on Github: https://github.com/peterdn/dll2lib
 
vincepg13
Old
#207  
vincepg13's Avatar
Senior Member
Thanks Meter 136
Posts: 752
Join Date: Jul 2011
Great work guys looks like lots of progress. Hopefully this becomes possible for us with less knowledge of the subject. I just wanna run Utorrent

Sent from my HTC One X using xda premium
 
mamaich
Old
#208  
Recognized Developer
Thanks Meter 214
Posts: 1,150
Join Date: Apr 2004

 
DONATE TO ME
Quote:
Originally Posted by peterdn View Post
I've whipped up a super simple C# app that generates a .lib from a .dll....
No need for that as we already have complete Win RT SDK (and WDK too, thanks to chinese guys).
 
netham45
Old
#209  
Recognized Developer
Thanks Meter 540
Posts: 863
Join Date: Jun 2009
Location: Denver

 
DONATE TO ME
Quote:
Originally Posted by mamaich View Post
No need for that as we already have complete Win RT SDK (and WDK too, thanks to chinese guys).
That's not exactly legal, nor can it be given to aspiring developers on XDA.
Don't PM me for help, post on the forums. I won't respond to basic questions.

I wrote and maintain the jailbreak scripts for Windows RT.

Tablet: Microsoft Surface RT 32GB, Type Keyboard
Phone: Samsung Galaxy Note III

Helpful Windows RT Links:
Windows RT Jailbreak Tool
List of ported apps
Disabling Windows Update
 
mamaich
Old
(Last edited by mamaich; 7th January 2013 at 05:31 AM.)
#210  
Recognized Developer
Thanks Meter 214
Posts: 1,150
Join Date: Apr 2004

 
DONATE TO ME
Quote:
Originally Posted by netham45 View Post
That's not exactly legal, nor can it be given to aspiring developers on XDA.
Yes. But this topic is also completely illegal as decompilation, reverse engineering and modifying Windows executables is explicitly prohibited in its EULA

Anyway, really good job is already done by clrokr. Unfortunately the value is hardcoded in ntoskrnl.exe, and is reseted to zero only when kernel debugger is initialized - in SepInitializeDebugOptions function in the case if SepIsUmciDisabled returns true ("\MACHINE\System\CurrentControlSet\Control\CI\UMC IDisabled" is set).
But there are some more checks, instead of that unnamed variable that allow loading of unsigned files. I'll download and look at the x86 Win8 checked build, as its files usually contain more information. Unfortunately we can't get the checked arm ntoskrnl...

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes