From mikem@hidden Fri Mar 6 00:42:18 2009 From: mikem@hidden (Mike McCormack) Date: Fri Mar 6 01:44:34 2009 Subject: winemine + minitris on ring3k Message-ID: <49B0716A.9040204@ring3k.org> Hi All, I'm having a go at getting Winemine (Wine's minesweeper clone) working on ring3k. minitris.exe is not the default winlogon.exe replacement for the moment... if you want it back, modify the following lines in ring3k.in: #winlogon_replacement="tools/minitris.exe" winlogon_replacement="winemine/winemine.exe" Currently winemine.exe shows a blank screen, but you can quit by pressing escape. It appears that user32.LoadBitmap isn't working, probably due to shared memory incompatibilities. The relevant piece of code is in ring3k/winemine/main.c : p_board->hMinesBMP = LoadBitmap( p_board->hInst, "mines"); p_board->hFacesBMP = LoadBitmap( p_board->hInst, "faces"); p_board->hLedsBMP = LoadBitmap( p_board->hInst, "leds"); if (!p_board->hMinesBMP) WINE_TRACE("hMinesBMP NULL\n"); In the log (./ring3k --trace=syscall,gdishm >& x) we see: 4448: NtRaiseException(0027f854,0027f56c,00000001) ret=77f94b9d OutputDebugString: hMinesBMP NULL Hopefully I'll be able to solve this issue within the next couple of days, and there'll be another test application to play with. thanks, Mike From mikem@hidden Mon Mar 9 08:27:37 2009 From: mikem@hidden (Mike McCormack) Date: Mon Mar 9 09:29:17 2009 Subject: Ring3k 0.0.22 Message-ID: <49B4D2F9.3010805@ring3k.org> Hi All, After a bit of weekend hacking, ring3k 0.0.22 is now ready. This release can run a moderately hacked up version of Wine's winemine.exe, which is good progress! Download at: http://ring3k.org/ring3k-0.0.22.tar.gz Features: * Functional Winemine * Initial support for bitmaps * Fine grained tracing Change log follows. Take care and have a good week. thanks, Mike commit 27f796eec057d7c373cd3c99bd3eee3308504499 Author: Mike McCormack Date: Mon Mar 9 08:14:34 2009 +0000 Version 0.0.22 commit dec4ae5f86a5567d83728112661622c57355ebb6 Author: Mike McCormack Date: Mon Mar 9 08:14:21 2009 +0000 Replace winlogon with winemine.exe commit 86891cba7084545ea4bafcbbed6ef28e355da509 Author: Mike McCormack Date: Mon Mar 9 07:57:17 2009 +0000 Remove performance killing dprintf commit 3f818a88a7c4c03a555d5f94beea5f53582fe499 Author: Mike McCormack Date: Mon Mar 9 07:55:21 2009 +0000 Fix length of line and pixel shift commit 39d9eccb066339542d7f5a3d43c7cfcd7bbe8b05 Author: Mike McCormack Date: Sun Mar 8 20:10:34 2009 +0000 A bunch of fixes to make winemine work commit 16d010e9f2a21218e13382ce6f099f6194fbb89a Author: Mike McCormack Date: Sun Mar 8 08:34:48 2009 +0000 Remove training \n characters in OutputDebugString commit e00307b94c99188c9c0c42a6e1c0517756fcf153 Author: Mike McCormack Date: Sun Mar 8 08:34:18 2009 +0000 Stub NtGdiStretchDIBitsInternal commit 7ed6d3390a128554ae57bf7cdc936ecaf63c4ff4 Author: Mike McCormack Date: Sun Mar 8 08:00:18 2009 +0000 Hack Wine's LoadBitmap code into winemine to help debugging commit 30a19044af0009abbbf1bb3c8f6b753a2a7d4892 Author: Mike McCormack Date: Sat Mar 7 20:02:14 2009 +0000 Call LoadResource and LockResource to make sure they work commit 20c31fa1ebe6407c5e89f296a256521dbba0d6c2 Author: Mike McCormack Date: Sat Mar 7 19:54:28 2009 +0000 Make sure the resource is being found commit 115529080e0bac479bf94c3f00c26df83822b37d Author: Mike McCormack Date: Sat Mar 7 19:49:30 2009 +0000 Only create a new desktop if there isn't one commit dfa65ff5a096aab9075764c2510dcfb531faa0a3 Author: Mike McCormack Date: Sat Mar 7 19:40:53 2009 +0000 Print the last error if loading bitmaps fails commit 3d0c629a31a0795981afec27ace89b397464c265 Author: Mike McCormack Date: Sat Mar 7 18:17:06 2009 +0000 Show DC info doesn't change across NtGdiSelectBitmap calls commit fddeb1eb3201965e36ec87c3665a0be64ec388a3 Author: Mike McCormack Date: Sat Mar 7 18:16:29 2009 +0000 Use the correct size for DC info commit 4f0ce7f8f7e733d640ae8a23537b3f1f8e1f41f0 Author: Mike McCormack Date: Sat Mar 7 17:46:28 2009 +0000 Pass the --trace flag when running tests commit 5aeb1bfca26ae32fe9b627e946962528b27f4637 Author: Mike McCormack Date: Sat Mar 7 17:30:49 2009 +0000 Identify which GDI object's shared memory is being accessed commit 2ae554c29bc928b1da43f828ce77ef4228311fe9 Author: Mike McCormack Date: Sat Mar 7 17:02:29 2009 +0000 Set text and background colors in allocated DCs commit d9f171a682c39ed71853d9a331b7109ce3dcffd5 Author: Mike McCormack Date: Sat Mar 7 16:36:20 2009 +0000 Move GDI_DEVICE_CONTEXT_SHARED to common headers commit 5e93d9fe042857ffbc7abd08c97d38dcab6394a6 Author: Mike McCormack Date: Sat Mar 7 10:23:23 2009 +0000 Add a few NtGdiSelectBitmap calls commit b99e3d8a095f799673c1295da57f1657571c4ded Author: Mike McCormack Date: Sat Mar 7 09:57:24 2009 +0000 Print out name of NtUserCallOneParam function commit 5e74211b1fc9e7e3dad64ae8e0c000409d13600f Author: Mike McCormack Date: Sat Mar 7 09:54:36 2009 +0000 Change HANDLE to HWND commit 9b3967cf1647ea2835d685bfa27e90f3864c8047 Author: Mike McCormack Date: Sat Mar 7 09:16:18 2009 +0000 Print dc offset so gdishm access make more sense commit 05f640bcd23524083b1f64f71394268ec7f31f0b Author: Mike McCormack Date: Sat Mar 7 07:59:23 2009 +0000 Add a short test for NtGdiCreateCompatibleBitmap commit bf35780d224082aade3cbc6b6a0ad1d1895d526c Author: Mike McCormack Date: Sat Mar 7 07:54:11 2009 +0000 Remove unnecessary dprintfs commit dd3155a78aee4794c85f80b6286d94e5d29feec6 Author: Mike McCormack Date: Sat Mar 7 07:26:56 2009 +0000 Add some traces commit ca31268de2c035dda19d69f6b685fe2977c81186 Author: Mike McCormack Date: Fri Mar 6 19:47:38 2009 +0000 NtGdi flush returns 0x93 (just non-zero?) commit 3f6c93ca9b8b52c64f02008315f6eed8b8fbc74c Author: Mike McCormack Date: Fri Mar 6 19:23:14 2009 +0000 Define NTUCOP_RELEASEDC commit 21b819530c3a0cdfdf2ec28cb3ad21e317b7b3cb Author: Mike McCormack Date: Thu Mar 5 23:48:28 2009 +0000 Partial implementation of NtGdiSaveDC and NtGdiRestoreDC commit 587680e588bc90e43e751ab5e9fd22c22b0e9d18 Author: Mike McCormack Date: Thu Mar 5 22:52:14 2009 +0000 Switch to using winemine for testing commit 9411f555b3a07eb66b8a6e09ee1b9596e20a47e9 Author: Mike McCormack Date: Thu Mar 5 22:51:48 2009 +0000 Check handles in NtGdiSaveDC and NtGdiRestoreDC commit 31e3a0d2cf0a8d7efb5f311e89434934aa77378a Author: Mike McCormack Date: Thu Mar 5 00:24:15 2009 +0000 Trace failure to create bitmaps commit a3bd3dc7f2652fdbf65a98acaa08d238c419d5ef Author: Mike McCormack Date: Thu Mar 5 00:14:26 2009 +0000 Set the paint rectangle commit eca84e15f3845913033fc7e00e69037a9d8aeab6 Author: Mike McCormack Date: Wed Mar 4 23:51:27 2009 +0000 Allow quitting by pressing escape commit fe1d273ad5ce74beec024e2fea049072eb95cb88 Author: Mike McCormack Date: Wed Mar 4 01:11:04 2009 +0000 Add files to packagemap commit dbb4b975efa038a162d19584135038034147124e Author: Mike McCormack Date: Wed Mar 4 01:03:59 2009 +0000 Stub NtUserTranslateMessage commit f1593b0f030ed4a93ccc59028fdc0568bfc21a70 Author: Mike McCormack Date: Wed Mar 4 01:00:22 2009 +0000 Stub NtUserTranslateAccelerator commit 3f348a568b8dc03a7d6ad47585c9c91d82c40a5b Author: Mike McCormack Date: Wed Mar 4 00:53:07 2009 +0000 Stub NtUserSetCapture commit 2a3f3e1d1ac77f31acd369fdcadbb0cc4707841c Author: Mike McCormack Date: Wed Mar 4 00:50:49 2009 +0000 Avoid crashing if there's no bitmap commit edf2bc247f58b8445651708deece6dead8188e48 Author: Mike McCormack Date: Wed Mar 4 00:50:35 2009 +0000 Make the winemine application visible by default commit 2fca8e9b9d8eb9ff7cced2e92aa52a5edb1c52df Author: Mike McCormack Date: Wed Mar 4 00:35:50 2009 +0000 Force subsystem to windows so winemine.exe can replace winlogon commit 3750e8b7a927cfa09c8f41f17b1e6ce83a544af5 Author: Mike McCormack Date: Wed Mar 4 00:33:11 2009 +0000 Ignore dependency files commit 1f768f1d91d2f7d64501294912264ce25a944034 Author: Mike McCormack Date: Wed Mar 4 00:32:40 2009 +0000 Add resources to winemine commit f9b7d93a6db084ac9fbe3e2a0fee6be8d1f5e716 Author: Mike McCormack Date: Wed Mar 4 00:25:44 2009 +0000 Add debug output commit bc71b6193bba45aee6c659b4ba88b59718f060a7 Author: Mike McCormack Date: Wed Mar 4 00:24:40 2009 +0000 Add winemine to the build commit 868436edf7e63fb721a9c68f636e608c9f46649b Author: Mike McCormack Date: Tue Mar 3 23:26:18 2009 +0000 Set the user-kernel pointer offset in NtGdiInit commit a572e1dec69ee938997febf1c32609aefac47635 Author: Mike McCormack Date: Tue Mar 3 21:24:41 2009 +0000 Uncomment a piece of test code to make sure it at least builds commit 8a87729bd35a8d28698885b7861362374753a67a Author: Mike McCormack Date: Mon Mar 2 18:36:53 2009 +0000 Avoid crashing if our client thread crashes in a callback commit e68f9e72d526619deda642c71da4ac6c5e508e1b Author: Mike McCormack Date: Mon Mar 2 17:43:57 2009 +0000 Fix debugger output commit d2e7c42d68e5a8f6fb787366e6bd107cb980f6b0 Author: Mike McCormack Date: Sun Mar 1 21:15:03 2009 +0000 Add csrdebug and ldrsnaps commit 9b3ce80e05d7f771137cd342852c1743098af1f6 Author: Mike McCormack Date: Sun Mar 1 21:03:00 2009 +0000 Remove unnecessary references to current commit da2869748a887b991a3d8341e793c377881a5ac9 Author: Mike McCormack Date: Sun Mar 1 19:21:59 2009 +0000 Add a simply validity check for the process pointer commit 2417a9cb73cce5d81a140cb3d07c4b357f900218 Author: Mike McCormack Date: Sun Mar 1 19:21:36 2009 +0000 Add a guard page around the stack commit 905061dba3b63d870959d3ea43e505c24b17a75e Author: Mike McCormack Date: Sun Mar 1 19:08:37 2009 +0000 Add a trace option to force core dumps commit f66ee120fc9fcdd21a34347f89e2e0402925f753 Author: Mike McCormack Date: Sun Mar 1 18:21:36 2009 +0000 Relax an assert commit 450cdfd697f7adb523f9b48c27e9b855932556cf Author: Mike McCormack Date: Sun Mar 1 18:16:33 2009 +0000 Extend the trace option commit 91b45d6b281e5c49b1867714ad60756ef52c37e5 Author: Mike McCormack Date: Sat Feb 28 17:06:41 2009 +0000 Allow memory tracing object to enable/disable itself From hilarycheng@hidden Wed Mar 18 21:08:33 2009 From: hilarycheng@hidden (Hilary Cheng) Date: Wed Mar 18 14:08:44 2009 Subject: Cairo in Ring3K Message-ID: <7378886d0903180608s29100d5cx1439c67142a63ef8@mail.gmail.com> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: ring3k_cairo.png Type: image/png Size: 5183 bytes Desc: not available Url : http://lists.infowares.com/archive/ring3k/attachments/20090318/2ebf8967/ring3k_cairo.png From mikem@hidden Wed Mar 18 18:54:17 2009 From: mikem@hidden (Mike McCormack) Date: Wed Mar 18 19:56:15 2009 Subject: Cairo in Ring3K In-Reply-To: <7378886d0903180608s29100d5cx1439c67142a63ef8@mail.gmail.com> References: <7378886d0903180608s29100d5cx1439c67142a63ef8@mail.gmail.com> Message-ID: <49C14359.7030903@ring3k.org> Hilary Cheng wrote: > By a Quick Hacking, I have implementation part of GDI operation for > Cairo. Since Cairo has better drawing operation which will fit for the > Nt Kernel GDI Operation. > Here is the screen shot. :p Hi Hillary, That's great news, I'd be interested to see the patch to make that work. SDL does seem to have quite a few limitations. Do you have any thoughts about how difficult it would be to make the input side of things work if ring3k moves to Cairo? thanks, Mike From hilarycheng@hidden Thu Mar 19 20:49:59 2009 From: hilarycheng@hidden (Hilary Cheng) Date: Thu Mar 19 13:50:06 2009 Subject: Cairo Patch Message-ID: <7378886d0903190549o5632f02ax3ce2818c28df8f37@mail.gmail.com> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: cairo-ring3k.patch.gz Type: application/x-gzip Size: 3129 bytes Desc: not available Url : http://lists.infowares.com/archive/ring3k/attachments/20090319/d4f10b37/cairo-ring3k.patch.bin From hilarycheng@hidden Thu Mar 19 23:08:31 2009 From: hilarycheng@hidden (Hilary Cheng) Date: Thu Mar 19 16:08:41 2009 Subject: Updated Cairo Patch Message-ID: <7378886d0903190808u2ddeae34t355f163537efa924@mail.gmail.com> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: cairo-ring3k.patch.gz Type: application/x-gzip Size: 3406 bytes Desc: not available Url : http://lists.infowares.com/archive/ring3k/attachments/20090319/f7525ac1/cairo-ring3k.patch.bin From mikem@hidden Fri Mar 20 16:55:19 2009 From: mikem@hidden (Mike McCormack) Date: Fri Mar 20 17:57:24 2009 Subject: Announcing ring3k 0.0.23 Message-ID: <49C3CA77.4060900@ring3k.org> Hi All, It's been a long week, but finally ring3k 0.0.23 is available through git or for download from: http://ring3k.org/ring3k-0.0.23.tar.gz Changes in this edition include: * Cairo backend (contributed by Hilary Cheng) * Support for bitmap fonts using freetype * Fixes for WM_NCCALCSIZE and WM_WINDOWPOSCHANGING Please note, ring3k now depends upon freetype. So before recompiling, please "apt-get install libfreetype6-dev" or equivalent. cairo is not a hard dependency, but will be used if it is present. Changelog follows: thanks, Mike commit e31169b746c58696822a3dfbb0b4182b2c45b345 Author: Mike McCormack Date: Fri Mar 20 16:28:16 2009 +0000 Version 0.0.23 commit 1c3a4cdd1c8a2cea655ec43dce2b1ddc14a22e1e Author: Mike McCormack Date: Fri Mar 20 16:23:45 2009 +0000 Make the middle mouse button work commit 810054f3aaf64d5493a7220e3342585ce8690ab6 Author: Mike McCormack Date: Fri Mar 20 16:17:48 2009 +0000 Use project's name for cairo window commit ecd5a702614d604f86542353eeacce1987cd5963 Author: Mike McCormack Date: Fri Mar 20 16:10:17 2009 +0000 Give the cairo window the same size as the SDL one commit 4e9a9a0dc0ace4a55ba103462cc65d2aff1ebd25 Author: Mike McCormack Date: Fri Mar 20 15:54:22 2009 +0000 Split null display code into separate files commit b2a1d07a53611d0797f576726bc7cf51b023b7b6 Author: Mike McCormack Date: Fri Mar 20 08:11:06 2009 +0000 Add copyright header and fallback commit f6c38b29e0bf7642c4ec717b049cfc6d92773b22 Author: Hilary Cheng Date: Fri Mar 20 08:06:21 2009 +0000 Add support for cairo backend commit fce458d1d52aa6e01d3cb4d3c65902d47b5dddea Author: Mike McCormack Date: Fri Mar 20 07:18:26 2009 +0000 Remove unnecessary includes commit 21eb8f5f7bb96bfe03fef25dd86157f201cb9316 Author: Mike McCormack Date: Thu Mar 19 00:35:06 2009 +0000 Alloc device contexts in the screen driver commit c5c7852c29d651d47ed593d6c43191e5748e7fcc Author: Mike McCormack Date: Wed Mar 18 23:24:26 2009 +0000 Split the bitmap code out commit 2577458d508dd30fd8790120cc25d87105b80865 Author: Mike McCormack Date: Wed Mar 18 08:23:28 2009 +0000 Split bitmap_t from gdi_bitmap_t commit d940eeeddc951c5350ac6086184bde76aebd8d6f Author: Mike McCormack Date: Wed Mar 18 07:33:04 2009 +0000 Throw exceptions in the bitmap constructor commit d4ac40112ac0f366c769488cb51d5cfa6829eb7e Author: Mike McCormack Date: Tue Mar 17 19:20:10 2009 +0000 Use throw in device_context_t contructor commit b692c8f5debeee2fb3c9bc27528c787df8c1a91e Author: Mike McCormack Date: Tue Mar 17 07:44:43 2009 +0000 Draw a space at the end of the characters commit 57521d741d5ee37147c323380854aba31c8cdefa Author: Mike McCormack Date: Tue Mar 17 07:44:11 2009 +0000 Move the x position after drawing a character commit 4d5f8791e625a9e4221e666c0c2e377f6ccc9803 Author: Mike McCormack Date: Tue Mar 17 00:24:06 2009 +0000 Add a target to build an ISO with winemine.exe on it commit fbc0172a5634d4eabc36010b51d49f432441a11b Author: Mike McCormack Date: Tue Mar 17 00:23:36 2009 +0000 Use TextOut to draw score and mine count for testing commit 24877a8f61cd58cfe564e4c4a9adbda3e4e4b29f Author: Mike McCormack Date: Tue Mar 17 00:21:45 2009 +0000 Add basic support for TextOut commit 7090e7d265ea91351631ccdbaa94085d1a1c30ed Author: Mike McCormack Date: Tue Mar 17 00:19:58 2009 +0000 Extract VGA fonts commit 3af1726c664ca0b04f0cb597fcd6392f7897b245 Author: Mike McCormack Date: Sun Mar 15 21:31:52 2009 +0000 Initialize freetype commit 652f4ec121666f66ccba5f51b4acd834356d6c54 Author: Mike McCormack Date: Sun Mar 15 20:52:15 2009 +0000 Set the xml2 include path and libs in configure.ac commit b3ad3d7aa371f9c3645dbdb113891ac8c5157d97 Author: Mike McCormack Date: Sun Mar 15 20:46:42 2009 +0000 Create an INCLUDE_DIRS variable commit 91b5e0d8c9f8cafeea32774f7d2fd0966413dd75 Author: Mike McCormack Date: Sun Mar 15 17:50:36 2009 +0000 Check for freetype 2 libraries commit 7e982e289eb89561981daeb2e8313ed1f151dcad Author: Mike McCormack Date: Sun Mar 15 17:04:30 2009 +0000 Add a basic NtUserWindowFromPoint implementation commit 6587ef6db81211db43bddfb71594eefab8054adb Author: Mike McCormack Date: Sun Mar 15 16:59:19 2009 +0000 Remove use desktop_window instead of window_tt::first commit 7098d8bd9023d773c31c96607149c0c6d0598de7 Author: Mike McCormack Date: Sun Mar 15 16:39:11 2009 +0000 Add a few convenience functions commit cc91bda171c173384e3c6817ab10517f14d407a7 Author: Mike McCormack Date: Thu Mar 12 00:37:25 2009 +0000 Stub NtUserWindowFromPoint commit 4feb54a5d56157cf1114694cbde752e7365b85a6 Author: Mike McCormack Date: Wed Mar 11 23:41:07 2009 +0000 Send correct wparam in WM_NCCALCSIZE commit bcc1a8fd015d4dd72fa801df8de3c9932d5f1a14 Author: Mike McCormack Date: Wed Mar 11 23:09:18 2009 +0000 Set rgrc[0] in WM_NCCALCSIZE commit 55261c0483cc4a270d910bebd4f9e7b271664a4e Author: Mike McCormack Date: Wed Mar 11 22:17:02 2009 +0000 Show that NtUserMoveWindow updates the window's location in shared memory commit 4a2675dfa9b7b01471c3ef0874f751d170640867 Author: Mike McCormack Date: Wed Mar 11 07:31:11 2009 +0000 Set the client rect when moving the window commit dcb20724a20be27e98f993e345f7999a2b6c5879 Author: Mike McCormack Date: Wed Mar 11 07:28:24 2009 +0000 Send the position in the WM_WINDOWPOSCHANGING message commit 72d7cbc646ba29a09b80bbcdaa6b671c58dd7d32 Author: Mike McCormack Date: Mon Mar 9 23:12:01 2009 +0000 Add a short test for NtUserMoveWindow commit 57ada1a645c855c244bd0e7d5d5b97ba5dac0d8b Author: Mike McCormack Date: Mon Mar 9 22:05:45 2009 +0000 Avoid problems when iso is missing From hilarycheng@hidden Sat Mar 21 22:24:27 2009 From: hilarycheng@hidden (Hilary Cheng) Date: Sat Mar 21 15:24:38 2009 Subject: Exception in the Ring3K Message-ID: <7378886d0903210724w93e3563u353283411fa55306@mail.gmail.com> Skipped content of type multipart/alternative-------------- next part -------------- init_tt using thread tracing, kernel ./kernel/ring3k-bin, client ./kernel/ring3k-client name_object name_object_t \?? open path = ?? on_open name_object_t::on_open ?? open path = DosDevices alloc_object allocating object name_object name_object_t \Device open path = Device on_open name_object_t::on_open Device name_object name_object_t \Device\MailSlot open path = Device\MailSlot open path = MailSlot on_open name_object_t::on_open MailSlot name_object name_object_t \Security open path = Security on_open name_object_t::on_open Security name_object name_object_t \BaseNamedObjects open path = BaseNamedObjects on_open name_object_t::on_open BaseNamedObjects name_object name_object_t \Security\LSA_AUTHENTICATION_INITIALIZED open path = Security\LSA_AUTHENTICATION_INITIALIZED open path = LSA_AUTHENTICATION_INITIALIZED on_open name_object_t::on_open LSA_AUTHENTICATION_INITIALIZED name_object name_object_t \SeLsaInitEvent open path = SeLsaInitEvent on_open name_object_t::on_open SeLsaInitEvent open path = Device\KsecDD open path = KsecDD open path = Device\NamedPipe open path = NamedPipe name_object name_object_t \KernelObjects open path = KernelObjects on_open name_object_t::on_open KernelObjects name_object name_object_t \KernelObjects\CritSecOutOfMemoryEvent open path = KernelObjects\CritSecOutOfMemoryEvent open path = CritSecOutOfMemoryEvent on_open name_object_t::on_open CritSecOutOfMemoryEvent open path = Device\HarddiskVolume1 open path = HarddiskVolume1 open path = ??\c: open path = c: alloc_object allocating object open path = ??\c:\winnt\system32\ntdll.dll open path = c:\winnt\system32\ntdll.dll open following \Device\HarddiskVolume1 open path = Device\HarddiskVolume1 open path = HarddiskVolume1 open directory_t::open winnt\system32\ntdll.dll open_file name = winnt\system32\ntdll.dll open_unicode_file open file : /proc/self/fd/3/winnt/system32/ntdll.dll get_proc_address KiIntSystemCall init_ntdll KiIntSystemCall = 00000000 open path = ??\c:\winnt\system32\smss.exe open path = c:\winnt\system32\smss.exe open following \Device\HarddiskVolume1 open path = Device\HarddiskVolume1 open path = HarddiskVolume1 open directory_t::open winnt\system32\smss.exe open_file name = winnt\system32\smss.exe open_unicode_file open file : /proc/self/fd/3/winnt/system32/smss.exe mapit image at 0x48580000 mapit read 4 sections, load at 48580000 mapit .text 00001000 00000600 00009600 0000951a mapit .data 0000b000 00009c00 00000400 00000b00 mapit .rsrc 0000c000 0000a000 00000400 000003c0 mapit .reloc 0000d000 0000a400 00000c00 00000b3c mapit image at 0x77f80000 mapit read 6 sections, load at 77f80000 mapit .text 00001000 00000400 00042600 00042492 mapit ECODE 00044000 00042a00 00004400 00004371 mapit PAGE 00049000 00046e00 00003a00 00003983 mapit .data 0004d000 0004a800 00002200 00002350 mapit .rsrc 00050000 0004ca00 00026e00 00026d08 mapit .reloc 00077000 00073800 00001e00 00001da8 mapit anonymous map mapit anonymous map open path = ??\c:\winnt\system32\l_intl.nls open path = c:\winnt\system32\l_intl.nls open following \Device\HarddiskVolume1 open path = Device\HarddiskVolume1 open path = HarddiskVolume1 open directory_t::open winnt\system32\l_intl.nls open_file name = winnt\system32\l_intl.nls open_unicode_file open file : /proc/self/fd/3/winnt/system32/l_intl.nls mapit anonymous map map_locale_data locale data l_intl.nls at 0x10000 open path = ??\c:\winnt\system32\c_850.nls open path = c:\winnt\system32\c_850.nls open following \Device\HarddiskVolume1 open path = Device\HarddiskVolume1 open path = HarddiskVolume1 open directory_t::open winnt\system32\c_850.nls open_file name = winnt\system32\c_850.nls open_unicode_file open file : /proc/self/fd/3/winnt/system32/c_850.nls mapit anonymous map map_locale_data locale data c_850.nls at 0x20000 open path = ??\c:\winnt\system32\c_1252.nls open path = c:\winnt\system32\c_1252.nls open following \Device\HarddiskVolume1 open path = Device\HarddiskVolume1 open path = HarddiskVolume1 open directory_t::open winnt\system32\c_1252.nls open_file name = winnt\system32\c_1252.nls open_unicode_file open file : /proc/self/fd/3/winnt/system32/c_1252.nls mapit anonymous map map_locale_data locale data c_1252.nls at 0x40000 create_initial_process entry point = 485895fe mapit anonymous map get_proc_address LdrInitializeThunk get_proc_address KiUserApcDispatcher create LdrInitializeThunk = 0x77f83406 pKiUserApcDispatcher = 0x77f9fb60 1014: NtOpenKey(7ffcfc74,80000000,7ffcfc50) ret=77f90738 NtOpenKey 0x7ffcfc74 80000000 0x7ffcfc50 NtOpenKey len 00000018 root (nil) attr 00000040 \Registry\Machine\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\smss.exe open_parse_key remaining = Image File Execution Options\smss.exe NtOpenKey open_key returned c000003a 1014: NtOpenKey retval=c000003a ret=77f90738 1014: NtOpenKey(7ffcfc74,80000000,7ffcfc50) ret=77f90738 NtOpenKey 0x7ffcfc74 80000000 0x7ffcfc50 NtOpenKey len 00000018 root (nil) attr 00000040 \Registry\Machine\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\smss.exe open_parse_key remaining = Image File Execution Options\smss.exe NtOpenKey open_key returned c000003a 1014: NtOpenKey retval=c000003a ret=77f90738 1014: NtCreateEvent(77fcd1a0,00100003,00000000,00000001,00000000) ret=77f8a095 NtCreateEvent 0x77fcd1a0 00100003 (nil) 1 0 process_alloc_user_handle handle = 00000004 1014: NtCreateEvent retval=00000000 ret=77f8a095 1014: NtCreateEvent(77fcd3f0,00100003,00000000,00000001,00000000) ret=77f93eea NtCreateEvent 0x77fcd3f0 00100003 (nil) 1 0 process_alloc_user_handle handle = 00000008 1014: NtCreateEvent retval=00000000 ret=77f93eea 1014: NtQuerySystemInformation(00000000,7ffcf8cc,0000002c,00000000) ret=77fc937a NtQuerySystemInformation 0 0x7ffcf8cc 44 (nil) 1014: NtQuerySystemInformation retval=00000000 ret=77fc937a 1014: NtAllocateVirtualMemory(ffffffff,7ffcf894,00000000,7ffcf970,00002000,00000004) ret=77fc9441 NtAllocateVirtualMemory returns 0x80000 00100000 00000000 1014: NtAllocateVirtualMemory retval=00000000 ret=77fc9441 1014: NtAllocateVirtualMemory(ffffffff,7ffcf940,00000000,7ffcf974,00001000,00000004) ret=77fc947a split splitting block NtAllocateVirtualMemory returns 0x80000 00001000 00000000 1014: NtAllocateVirtualMemory retval=00000000 ret=77fc947a 1014: NtCreateEvent(00080618,00100003,00000000,00000001,00000000) ret=77f93eea NtCreateEvent 0x80618 00100003 (nil) 1 0 process_alloc_user_handle handle = 0000000c 1014: NtCreateEvent retval=00000000 ret=77f93eea 1014: NtAllocateVirtualMemory(ffffffff,7ffcf684,00000000,7ffcf6a4,00001000,00000004) ret=77fc9152 split splitting block NtAllocateVirtualMemory returns 0x81000 00002000 00000000 1014: NtAllocateVirtualMemory retval=00000000 ret=77fc9152 1014: NtOpenKey(7ffcf950,80000000,7ffcf92c) ret=77f90738 NtOpenKey 0x7ffcf950 80000000 0x7ffcf92c NtOpenKey len 00000018 root (nil) attr 00000040 \Registry\Machine\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\smss.exe open_parse_key remaining = Image File Execution Options\smss.exe NtOpenKey open_key returned c000003a 1014: NtOpenKey retval=c000003a ret=77f90738 1014: NtOpenDirectoryObject(77fcd000,00000003,7ffcfc30) ret=77f91e14 nt_open_object object = \KnownDlls open path = KnownDlls on_open find_object_t::on_open KnownDlls doesn't exist 1014: NtOpenDirectoryObject retval=c0000034 ret=77f91e14 1014: NtClose(b80d99b6) ret=77f83fbb NtClose 0xb80d99b6 1014: NtClose retval=c0000008 ret=77f83fbb create name = \Device\NamedPipe\ntsvcs open path = Device\NamedPipe\ntsvcs open path = NamedPipe\ntsvcs open pipe = ntsvcs on_open pipe_factory() create_server creating pipe server process_alloc_user_handle handle = 00000004 NtFsControlFile 0x4 (nil) (nil) (nil) 0xb7768fcc 00110008 (nil) 0 (nil) 0 access_allowed fixme: no access check fs_control pipe_server_t 00110008 NtCreatePort 0xb778aed4 0xb778ae8c 256 256 (nil) NtCreatePort root = (nil) port = \SeRmCommandPort name_object name_object_t \SeRmCommandPort open path = SeRmCommandPort on_open name_object_t::on_open SeRmCommandPort process_alloc_user_handle handle = 00000008 NtListenPort 0x8 0xb778aed8 access_allowed fixme: no access check 1014: NtFsControlFile(00000000,00000000,00000000,00000000,7ffcf7f4,00090028,00000000,00000000,00000000,00000000) ret=77f93701 NtFsControlFile (nil) (nil) (nil) (nil) 0x7ffcf7f4 00090028 (nil) 0 (nil) 0 1014: NtFsControlFile retval=c0000008 ret=77f93701 1014: NtFreeVirtualMemory(ffffffff,7ffcf55c,7ffcf560,00004000) ret=77fca08a NtFreeVirtualMemory 0xffffffff 0x7ffcf55c 0x7ffcf560 16384 split splitting block NtFreeVirtualMemory returning 00000000 1014: NtFreeVirtualMemory retval=00000000 ret=77fca08a 1014: NtFsControlFile(00000000,00000000,00000000,00000000,7ffcf7f4,00090028,00000000,00000000,00000000,00000000) ret=77f93701 NtFsControlFile (nil) (nil) (nil) (nil) 0x7ffcf7f4 00090028 (nil) 0 (nil) 0 1014: NtFsControlFile retval=c0000008 ret=77f93701 1014: NtAllocateVirtualMemory(ffffffff,7ffcf458,00000000,7ffcf478,00001000,00000004) ret=77fc9152 NtAllocateVirtualMemory returns 0x82000 00001000 00000000 1014: NtAllocateVirtualMemory retval=00000000 ret=77fc9152 1014: NtFreeVirtualMemory(ffffffff,7ffcf55c,7ffcf560,00004000) ret=77fca08a NtFreeVirtualMemory 0xffffffff 0x7ffcf55c 0x7ffcf560 16384 NtFreeVirtualMemory returning 00000000 1014: NtFreeVirtualMemory retval=00000000 ret=77fca08a 1014: NtOpenKey(7ffcf794,80000000,7ffcf770) ret=77f90738 NtOpenKey 0x7ffcf794 80000000 0x7ffcf770 NtOpenKey len 00000018 root (nil) attr 00000040 \Registry\Machine\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\smss.exe open_parse_key remaining = Image File Execution Options\smss.exe NtOpenKey open_key returned c000003a 1014: NtOpenKey retval=c000003a ret=77f90738 1014: NtTestAlert() ret=77f8cbe1 1014: NtTestAlert retval=00000000 ret=77f8cbe1 1014: NtContinue(7ffcfd28,00000001) ret=77f927a1 NtContinue 0x7ffcfd28 1 eax 00000000 ebx 00000000 ecx 00000000 edx 00000000 esi 00000000 edi 00000000 ebp 00000000 efl 00000296 cs:eip 0073:485895fe ss:esp 007b:7ffcfff8 ds 007b es 007b fs 0033 gs 0000 1014: NtContinue retval=00000000 ret=77f927a1 1014: NtAllocateVirtualMemory(ffffffff,7ffcfdec,00000000,7ffcfe0c,00001000,00000004) ret=77fc9152 NtAllocateVirtualMemory returns 0x82000 00001000 00000000 1014: NtAllocateVirtualMemory retval=00000000 ret=77fc9152 stopped ring3k debugger b backtrace c continue d dump the contents of memory h help (this text) r display registers q quit ring3k u disassemble eax 00070056 ebx 00060000 ecx 00000000 edx 00080000 esi 00000000 edi 00081ffc ebp 7ffcfff4 efl 00200282 cs:eip 0073:77f9f9e0 ss:esp 007b:7ffcffc8 ds 007b es 007b fs 0033 gs 0000 - From vzeeaxwl@hidden Sat Mar 21 12:30:41 2009 From: vzeeaxwl@hidden (Mark Glassberg) Date: Sun Mar 22 10:38:26 2009 Subject: Probably off topic Message-ID: <20090321163041.GA2843@etch.localnet.net> I have tried for a number of years to connect my 2Wire HomeportalSW modem/ router to the usb system on my debian desktop. The device is recognized as using remote ndis, but nothing I've tried, including ndiswrapper, is able to drive the device. The driver on my XP Pro partition works fine. Would it be possible to use ring3k so as to capture the XP Pro driver dialog between the device and the operating system? I assume that this information would greatly facilitate the writing of a linux driver. Thanks in advance, Mark From mikem@hidden Sun Mar 22 10:13:40 2009 From: mikem@hidden (Mike McCormack) Date: Sun Mar 22 11:15:45 2009 Subject: Probably off topic In-Reply-To: <20090321163041.GA2843@etch.localnet.net> References: <20090321163041.GA2843@etch.localnet.net> Message-ID: <49C60F54.2000407@ring3k.org> Mark Glassberg wrote: > I have tried for a number of years to connect my 2Wire HomeportalSW modem/ > router to the usb system on my debian desktop. The device is recognized as > using remote ndis, but nothing I've tried, including ndiswrapper, is able to > drive the device. The driver on my XP Pro partition works fine. Would it be > possible to use ring3k so as to capture the XP Pro driver dialog between the > device and the operating system? I assume that this information would greatly > facilitate the writing of a linux driver. Hi Mark, ring3k won't doesn't have any support for user side USB drivers yet, and does not aim to support kernel mode drivers of any type. I guess you've tried putting the USB manufacturer and product ID into Google. There are software based USB protocol analyzers for Windows that would show the protocol data being sent to the modem, which you could use as a starting point for writing a driver. If you ask nicely the manufacturer may help you out. The first step should always be to make sure that nobody else is trying to write a driver for similar hardware yet. Of course, you're always welcome to work on user side USB support for ring3k ;) thanks, Mike