Windows Academic: Kernel ForumQuestions & Answers regarding the Windows Research Kernel, its architecture, source code and use in teaching and research.© 2009 Microsoft Corporation. All rights reserved.Thu, 26 Nov 2009 08:56:37 Z1d96df48-4bfc-412f-b446-0ec24d116a83http://social.microsoft.com/Forums/en-US/kernel/thread/6278d560-b739-4c55-ac12-954de8fc4736http://social.microsoft.com/Forums/en-US/kernel/thread/6278d560-b739-4c55-ac12-954de8fc4736j.collinshttp://social.microsoft.com/Profile/en-US/?user=j.collinsmsvcp71.dllHave seen the threads for this and seems to be that they are all 32  bit app. related but,am having same prob.w Win 7 start up X64.any suggestions ?<br/>Thu, 26 Nov 2009 01:01:53 Z2009-11-26T08:56:37Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/dde80afc-d0ab-4590-9151-309276f51fafhttp://social.microsoft.com/Forums/en-US/kernel/thread/dde80afc-d0ab-4590-9151-309276f51fafAnand Pasunoorihttp://social.microsoft.com/Profile/en-US/?user=Anand%20Pasunooriwhat is the mean of Killer application?hey, <div><span style="background-color:#ffffff"><br/></span></div> <div>Could any one please explain me that is the mean of </div> <span style="font-family:sans-serif;font-size:13px;line-height:19px"> <h1 class=firstHeading style="color:black;background-image:none;background-repeat:initial;background-attachment:initial;background-color:initial;font-weight:normal;margin-top:0px;margin-right:0px;margin-bottom:0.1em;margin-left:0px;padding-top:0.5em;padding-bottom:0px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#aaaaaa;font-size:24px;line-height:1.2em">Killer application and what is the use of if.</h1> <div><br/></div> <div><br/></div> <div>Rgds,</div> <div>anand853@gmail.com</div> </span><hr class="sig">Regards, Anand Pasunoori anand853@gmail.com Koratla APMon, 23 Nov 2009 07:28:28 Z2009-11-26T08:52:16Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/b3b7d580-62e0-416a-979c-53adba7e95b3http://social.microsoft.com/Forums/en-US/kernel/thread/b3b7d580-62e0-416a-979c-53adba7e95b3sureshsundar007http://social.microsoft.com/Profile/en-US/?user=sureshsundar007Kernel ModeIf I understand correctly, any data structure (or pages) in the system space is only accessible when in kernel mode. The process's page directory resides in system space and whenever an address translation is required, the processor must be switched to kernel mode to access page directory?<br/><br/>Similarly, when the scheduler starts thread dispatching logic, should it first change to kernel mode and start accessing the dispatcher database?<br/><br/>Thanks,<br/>Suresh.Tue, 10 Nov 2009 18:49:35 Z2009-11-17T12:30:29Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/ffd41411-6d5e-4444-a335-f4e3ea4d79ebhttp://social.microsoft.com/Forums/en-US/kernel/thread/ffd41411-6d5e-4444-a335-f4e3ea4d79ebNosaybahttp://social.microsoft.com/Profile/en-US/?user=NosaybaUsing wrk on real machine Can I  boot windows 2003 from WRK on my machine &quot;not virtual machine&quot; .<br/> <br/> <br/> <input type=hidden> <input type=hidden>Mon, 15 Jun 2009 13:18:17 Z2009-11-13T08:21:16Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/11ae5810-cb78-42a3-9761-efa3e8455993http://social.microsoft.com/Forums/en-US/kernel/thread/11ae5810-cb78-42a3-9761-efa3e8455993sureshsundar007http://social.microsoft.com/Profile/en-US/?user=sureshsundar007Clock InterruptHi, <div><br/></div> <div>A thread is allowed to run a certain number of quantum in Windows. This check is performed by the Kernel whenever the clock interrupt happens. The question I have is, will the logic to perform this check happens within the clock interval itself? If so, will the thread get only a part of its each clock interval to do its work?</div> <div><br/></div> <div>Thanks,</div> <div>Suresh.</div>Sun, 01 Nov 2009 01:04:33 Z2009-11-04T20:59:57Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/a0967d47-a066-46be-a952-a19e345c3fc0http://social.microsoft.com/Forums/en-US/kernel/thread/a0967d47-a066-46be-a952-a19e345c3fc0Yu-ninghttp://social.microsoft.com/Profile/en-US/?user=Yu-ningThinking about the "missing msvcr71.dll" messageBrian and others,<br><br>  I followed the README.TXT in %wrk% to build the kernel. When making, I got the &quot;missing msvcr71.dll&quot; message launched by cl. Is copying the missing files to %wrk%\tools\x86\ the proper solution? Or doing some modification in makefile a proper one?<br><br>  Is this a little mistake in WRK? Or I am not having the correct WRK package (WRK v1.2)?<br><br>  Seems quite a few questions :-P. Any discussion appreciated~<br>Sun, 18 Mar 2007 03:34:08 Z2009-09-22T20:25:15Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/c283b142-094a-4de6-a976-22041a990703http://social.microsoft.com/Forums/en-US/kernel/thread/c283b142-094a-4de6-a976-22041a990703knight17http://social.microsoft.com/Profile/en-US/?user=knight17Which language is used to program kernelWhich la<span style="font-family:Tahoma,Helvetica,Sans-Serif">nguage is used to write the kernel ?<br>I read that it is with &quot;C&quot; programming language is this correct..if so can you tell me the proficiency level of a kernel programmer ?<br></span>Sun, 04 Mar 2007 22:20:42 Z2009-08-05T21:29:16Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/f8949962-5f2f-4869-be56-fca7cd4ac496http://social.microsoft.com/Forums/en-US/kernel/thread/f8949962-5f2f-4869-be56-fca7cd4ac496elecbankerhttp://social.microsoft.com/Profile/en-US/?user=elecbankerI am running Vista 64 and have come up with a missing msvcr71.dllI see this file in various program folders but cannot figure out what is causing this error if this dll is already on the desktop?  Any advice?  Please be advised I am somewhat computer savy but I am not a programmer and a detailed solution to resolve my issue would be appreciated.  Thanks again, TMon, 13 Jul 2009 10:42:44 Z2009-07-27T22:21:45Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/65ecbc85-057c-47bd-aad2-9ecbd4be3994http://social.microsoft.com/Forums/en-US/kernel/thread/65ecbc85-057c-47bd-aad2-9ecbd4be3994mshammahttp://social.microsoft.com/Profile/en-US/?user=mshammaCan't find "WRKInstall.bat"I am trying to build the WRK 1.2 according to the instructions in the document &quot;Getting Started with WRK.doc&quot; that is supplied with the distribution.<br/> <br/> The document however assumes that the user have installed the WRK sources, tools and Debugging Tools using the &quot;WRKInstall.bat&quot; script. The problem is that this script is not included in the distribution?!<br/> <br/> So I took one step ahead, assumed that the script will add the x86 tools directory (or the AMD) to the path environment variable. Then I changed directory into the &quot;ntos&quot; directory and entered &quot;nmake x86=&quot; at the command line. But the build failed and a message box titled &quot;cl.exe - Unable To Locate Component&quot; popped up telling me that &quot;This application has failed to start because MSVCR71.dll was not found. Re-installing the application may fix this problem&quot;.<br/> <br/> I can find the missing dll within the tools directory though. I have no idea how to direct the application to that.<br/> <br/> I hope somebody can help me solving this problem.Tue, 16 Jun 2009 21:14:20 Z2009-06-24T21:16:39Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/6fe7b0e6-138b-4250-b16c-867a2d9a9bachttp://social.microsoft.com/Forums/en-US/kernel/thread/6fe7b0e6-138b-4250-b16c-867a2d9a9bacMarek Dzikiewiczhttp://social.microsoft.com/Profile/en-US/?user=Marek%20DzikiewiczMaster project ideasHi,<br/> <br/> I am a IV year student of computer science at Warsaw University and I am looking for a subject for my Master thesis. I really like the idea of doing a project with the Windows Kernel, however I cannot find specific subject. I would prefer to implement some new kernel functionality or change some of the existing code, however I'm not sure if such project will be well suited for a thesis. Maybe describing some concepts of the kernel architecture would be a better idea. I was also thinking about some sort of comparison of the Windows kernel to the Linux kernel (almost all computer labs at Warsaw University are done on Linux).<br/> <br/> Does anyone have any ideas or suggestions in this matter?<br/> <br/> Thanks,<br/> Marek<br/>Sat, 30 May 2009 11:47:32 Z2009-05-30T11:47:32Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/903aa10d-ab1f-4355-89e7-b9d89483347ahttp://social.microsoft.com/Forums/en-US/kernel/thread/903aa10d-ab1f-4355-89e7-b9d89483347a何宗键http://social.microsoft.com/Profile/en-US/?user=%u4f55%u5b97%u952eHow could I know what happen in kernel when I call a user mode API<div>Hello everyone,</div> <div><br/></div> I want to monitor what happen in kernel after application call a specific API, such as Sleep or HeapAlloc. <div>I find it is difficult to associate a user mode API with a kernel function, since the source code of kernel32.dll and ntdll.dll haven't been opened.</div> <div>At present, the best solution is guess for me.... Do you have any good advice? </div> <div><br/></div> <div>Thanks in advance.</div> <div>Jason</div> <div><br/></div><hr class="sig">最近有了小宝宝,他比较淘气,所以来这里的时间少了挺多。非常抱歉。Mon, 20 Apr 2009 11:05:59 Z2009-04-21T09:03:56Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/46a6699e-8fd0-4aac-be89-b3511634a869http://social.microsoft.com/Forums/en-US/kernel/thread/46a6699e-8fd0-4aac-be89-b3511634a869Serge Lidinhttp://social.microsoft.com/Profile/en-US/?user=Serge%20LidinOther communication channels?Dear colleagues,<br/><br/>Our forums are not exactly overloaded with activity, so I'd like to ask everybody: what do you think about establishing other communication channels, such as a discussion mailing list or a newsletter? In both cases you subscribe to a mailing list. But in case of a newsletter, we (Windows Academic Program) send all the subscribers messages with the news, while in the case of a discussion list every subscriber can post a message. In other words, the discussion list works like a forum, but it all happens in your mail box. Let's discuss this.<br/><br/>And another question: would you like us to post here information about Windows Academic workshops we conduct now and then around the world? Would you like to have pre-announcements (&quot;such-and such workshop will take place then and there&quot;)? Would you like us to post and discuss &quot;trip reports&quot;?<br/><br/>Thanks,<br/>Serge Mon, 20 Apr 2009 23:06:48 Z2009-04-20T23:06:51Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/7ea8c982-fb1f-4a47-b6e6-13e2068d1a1ehttp://social.microsoft.com/Forums/en-US/kernel/thread/7ea8c982-fb1f-4a47-b6e6-13e2068d1a1ewangch079http://social.microsoft.com/Profile/en-US/?user=wangch079Adding system call to WRK Kernel Hi all:<font style="font-size:12px"></font><br>    I'm developing an application on WRK, and now I need to add a system call to pass some info. to the kernel. I searched the net and there's very few resources about adding system calls, fortunately I got an attached ppt which is other people's work,but there're still some questions:<br><br>here is the procedure to add system call extracted from the ppt(<font color="#ff0000">red is my comments</font>):<br><br><font color="#ff0000">this step is to add the entry in the dispatcher table</font><br>Edit the file: ntos\ke\i386\systable.asm:<br>1. insert the code under line 392: TABLE_ENTRY New_syscall, 1, 2 <font color="#ff0000">&lt;- 1 and 2 are the number of bytes of in the arguments, but not</font> <br>2. edit the following line as follows: TABLE_END 296                            <font color="#ff0000">match since the arguments are LONG and PCHAR ???<br></font><br><font color="#ff0000">I can't even find the &quot;Netexapi.h&quot; file</font><br>Edit the file: public\sdk\inc\Netexapi.h:<br>Insert the following code under line 2766 (it's a declearation of system call):<br>NTSYSCALLAPI<br>LONG NTAPI<br>NtNew_syscall(__in LONG input, __out PCHAR output);<br><br><font color="#ff0000">Is it true that all implementation of added system call must stay here?</font><br>Edit the file: ntos\ex\Exatom.c<br>From line 302 insert the implementation of the system call:<br>LONG NtNew_syscall(__in LONG input, __out PCHAR output)<br>{*output = 'A; return 100;'} <br><br><br>Edit the file: ntos\init\ntoskrnl.src<br>At line 912 insert this code: NtNew_syscall<br><br>recompile <br><br><br>in the implementation, I need to access two variables decleared in a file resisting in another directory, how can I do it? include the header file where the declearation of the two variables exist in? Anyone can help? thanks a lot.<br>Mon, 23 Feb 2009 16:08:36 Z2009-04-07T08:28:18Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/46643d5d-00c6-41ff-acc5-d9d0ac35b016http://social.microsoft.com/Forums/en-US/kernel/thread/46643d5d-00c6-41ff-acc5-d9d0ac35b016Serge Lidinhttp://social.microsoft.com/Profile/en-US/?user=Serge%20LidinFrequently Asked Questions (FAQ)<p class=MsoNoSpacing style="margin:0in 0in 0pt"><em><span style="font-family:Calibri">Q: Do you have any guidelines on posting to the forum?</span></em></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri">A: Here are a few suggestions to make it sure you get the best answer to your question as quickly as possible: </span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt 0.5in;text-indent:-0.25in"><span style="font-family:Symbol"><span>·<span style="font:7pt 'Times New Roman'">         Search </span></span></span><span><span style="font-family:Calibri">for keywords of your question in the WAP forums before posting – it's likely someone may have already answered your question, and you won't have to wait for it to be answered again.</span></span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt 0.5in;text-indent:-0.25in"><span style="font-family:Symbol"><span>·<span style="font:7pt 'Times New Roman'">         </span></span></span><span><span style="font-family:Calibri">Post in the correct WAP forum </span></span><span><span style="font-family:Calibri">(there are three: Curriculum, Windows Research Kernel, and ProjectOZ) – this will ensure subject matter experts who may not read all of the forums will see your question.</span></span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt 0.5in;text-indent:-0.25in"><span style="font-family:Symbol"><span>·<span style="font:7pt 'Times New Roman'">         </span></span></span><span style="font-family:Calibri">Make sure your title summarizes the specific problem or question you have – since we try to answer the maximum number of questions we can with our time, we often skim through question subjects to quickly find the ones that we know the answers to.  A question with a title of &quot;Urgent! Help needed!&quot; is less likely to be answered as a question with a title of &quot;Help needed with thread scheduler priority levels.&quot;  A more specific, detailed title is far more likely to get a response than a general one.  </span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt 0.5in;text-indent:-0.25in"><span style="font-family:Symbol"><span>·<span style="font:7pt 'Times New Roman'">         </span></span></span><span style="font-family:Calibri">Once you've received a correct answer to your question, either from a Microsoft employee, an MVP, or the WAP community, please mark the post as answered.  You can do this with the &quot;Mark as answer&quot; button that appears on the post containing your answer.  This step is important, since it lets us know that your question has been answered.  It also lets people scanning the forums know that they can find an answer to that question by reading the thread. </span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt 0.5in;text-indent:-0.25in"><span style="font-family:Symbol"><span>·<span style="font:7pt 'Times New Roman'">         </span></span></span><span style="font-family:Calibri">Please be aware the </span><a title="http://www.microsoft.com/resources/sharedsource/licensing/basics/wrklicense.mspx" href="http://www.microsoft.com/resources/sharedsource/licensing/basics/wrklicense.mspx"><span style="font-family:Calibri"><span><span style="color:#800080"><span style="text-decoration:underline">WRK licensing</span></span></span><span style="color:windowtext"><span style="text-decoration:underline"> </span>terms</span></span></a><span style="font-family:Calibri"> apply to all Windows kernel source code snippets and any derivative works posted to this forum. Any posts that violate the terms of this license will be deleted by the forum moderators. Please don’t post snippets longer than 50 lines.</span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri"> </span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><em><span style="font-family:Calibri">Q: What is the WRK?</span></em></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri">A: The Windows Research Kernel (WRK) packages core Microsoft Windows XP x64/Server 2003 SP1 kernel source code with an environment for building and testing experimental versions of the Windows kernel for use in teaching and research. The WRK includes source for processes, threads, LPC, virtual memory, scheduler, object manager, I/O manager, synchronization, worker threads, kernel heap manager, and other core NTOS functionality.</span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri"> </span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri">The WRK is useful in design projects that allow your students to explore operating system (OS) principles using the Windows kernel sources. It enables advanced teaching and research by facilitating building experiments and projects based on modifying the Windows kernel, as well as by promoting better understanding of the Windows architecture and implementation.</span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri"> </span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><em><span style="font-family:Calibri">Q: How do I get the WRK and build environment?</span></em></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri">A: Please note, the WRK sources are only available to those who teach or research core OS subjects at accredited universities worldwide. </span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri"> </span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri">The sources are available for download through MSNDAA (MSDN Academic Alliance) subscription which is available on a departmental basis – i.e. through your Computer Science department. Please check with your department’s MSDNAA administrator for access details and go to: <span class=MsoHyperlink><span><span style="color:#013da4"><a title="http://msdn.microsoft.com/academic/" href="http://msdn.microsoft.com/academic/">http://msdn.microsoft.com/academic/</a>. </span></span></span>Once authenticated, go to Subscriber Downloads -&gt; Faculty Connections -&gt; Windows Academic Program -&gt; Windows Research Kernel. </span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri"> </span><span style="font-family:Calibri"> </span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri">If your department is not an MSNDAA subscriber than you may alternatively download the WRK sources through the Faculty Connection program at </span><span style="font-family:Calibri"><span class=MsoHyperlink><span><span style="color:#013da4"><span style="color:#000000"><a href="http://www.facultyresourcecenter.com/curriculum/pfv.aspx?ID=7366">http://www.facultyresourcecenter.com/curriculum/pfv.aspx?ID=7366</a></span></span></span></span>. If you are registered with this site, click on “Get Verified Now” to log in and download the sources. However, if you are not a registered member of Faculty Connection, you will be directed to registration page. New registrations take up to 2 business days to process.<br/></span><span class=MsoHyperlink><span style="color:#013da4;font-family:Calibri"><br/>On the Faculty Resource Center site you can see other things that might interest you. Take a look at <a href="https://www.facultyresourcecenter.com/curriculum/resourcekits/default.aspx">https://www.facultyresourcecenter.com/curriculum/resourcekits/default.aspx</a><br/> </span></span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><em><span style="font-family:Calibri">Q: Do all universities, colleges, community colleges, professors worldwide have access to the WRK?</span></em></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri">A: We’re following in the Shared Source tradition of making academic source licensing programs broadly available. The WRK is available to those with academic affiliation with an accredited institution of higher education and direct involvement in teaching and/or research, such as being academic faculty members, system or lab administrators or instructors, students enrolled in relevant undergraduate or graduate programs, or academic researchers working on faculty sponsored projects.<span>  </span></span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><em><span style="font-family:Calibri"> </span></em></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><em><span style="font-family:Calibri">Q. How much does it cost to get the WRK source code and build environment?</span></em></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri">A. The Windows Academic Program components are available at no cost, under standard royalty-free, non-commercial academic terms. </span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri"> </span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><em><span style="font-family:Calibri">Q: What license is used for the WRK?</span></em></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri">A. The WRK license allows for non-commercial, academic use in accredited higher education institutions, including use in open class; it allows for derivative works defining how the modification can be published and shared with other academic users. For more information, please read the WRK license at <span style="font-family:Verdana"><a href="http://www.microsoft.com/resources/sharedsource/licensing/basics/wrklicense.mspx">http://www.microsoft.com/resources/sharedsource/licensing/basics/wrklicense.mspx</a></span></span><a title="http://www.microsoft.com/resources/sharedsource/licensingbasics/wrklicense.mspx" href="http://www.microsoft.com/resources/sharedsource/licensingbasics/wrklicense.mspx"></a></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><em><span style="font-family:Calibri"> </span></em></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><em><span style="font-family:Calibri">Q: What sources are available in the WRK?</span></em></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri">A: The WRK includes the source code for processes, threads, LPC, virtual memory, scheduler, object manager, I/O manager, synchronization, worker threads, kernel heap manager, and other core NTOS functionality.</span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri"> </span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><em><span style="font-family:Calibri">Q: Can I build on top of the code?</span></em></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-family:Calibri">A. Yes.<span>  </span>Students and faculty can modify the kernel to explore ideas and do experiments and redistribute the modified sources to others eligible to use the WRK.<span>  </span>The WRK license allows for non-commercial, academic use, and the modified sources cannot be co-mingled with source code under a non-compatible license. See the </span><a title="http://www.microsoft.com/resources/sharedsource/licensing/basics/wrklicense.mspx" href="http://www.microsoft.com/resources/sharedsource/licensing/basics/wrklicense.mspx"><span style="text-decoration:underline"><span style="color:#800080;font-family:Calibri">WRK license</span></span></a><span style="font-family:Calibri"> for the full terms and conditions.</span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><em><span style="font-family:Calibri">Q. Does the Windows Research Kernel source code include the ability to rebuild the kernel? </span></em></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-family:Calibri">A. Yes, it does. The current version of the WRK (v1.2) includes a build environment that can compile and link the sources to build a complete kernel for x86 (Server 2003 SP1) and x64 (Windows XP Pro AMD64) systems.</span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><em><span style="font-family:Calibri">Q. Would Microsoft own anything I built on top or from the OS layer?</span></em></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-family:Calibri">A. We own the IP in the code we provide, but not anything built on top of it.</span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><em><span style="font-family:Calibri">Q. Can source be shown to students in a classroom setting? Presumably all students would have to agree to licensing requirements in advance.</span></em></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri">A. Yes, the source code can be used in the classroom.  The licensing requirements should not be any more of a burden to students than they face with the intellectual property they are exposed to in many classes today.  They don't have to sign anything, but if they use the code they have to follow the license terms -- for example, only non-commercial use while they are students at an eligible university.</span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri"> </span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><em><span style="font-family:Calibri">Q: I don’t plan to use the CRK curriculum in OS instruction, but want to use the WRK for core OS research, is the CRK still useful to me?</span></em></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri">A: Yes, many of the PowerPoint presentation slides in the CRK provide the names of source files in the WRK that implement the core OS concept being discussed. The CRK is a roadmap into the architecture of the WRK sources and provides high level insights that would otherwise be very difficult to obtain through source code investigations alone.</span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri"> </span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><em><span style="font-family:Calibri">Q: Does this mean that you are &quot;open sourcing&quot; Windows?</span></em></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri">A: No. The WRK is not related to any of the community open source projects at </span></p> <p class=MsoNoSpacing style="margin:0in 0in 0pt"><span style="font-family:Calibri">Microsoft and is licensed specifically for use by universities for teaching and research.<br/><br/><em>Q: What if I find a bug in the source code, or have an idea how to improve the algorithms?<br/></em>A: As the <a title="http://www.microsoft.com/resources/sharedsource/licensing/basics/wrklicense.mspx" href="http://www.microsoft.com/resources/sharedsource/licensing/basics/wrklicense.mspx"><span style="text-decoration:underline"><span style="color:#800080;font-family:Calibri">WRK license</span></span></a><span style="font-family:Calibri"> says in recently added clause #5, Microsoft welcomes your comments and suggestions on the source code. Please see the license for details.<br/><br/></span></span></p>Sat, 04 Apr 2009 00:02:42 Z2009-04-04T00:03:11Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/968d66c5-65b9-429b-b05e-5613d1bd359bhttp://social.microsoft.com/Forums/en-US/kernel/thread/968d66c5-65b9-429b-b05e-5613d1bd359bArtsampathttp://social.microsoft.com/Profile/en-US/?user=ArtsampatEntry point not foundI use Windows XP operating system.<br/> Whenever I start my computer, I am getting an error message showing &quot;Entry Point Not Found : <span style="font-family:Arial;font-size:x-small">The entry point GetProcessId could not be located in the dynamic link library KERNEL32.dll &quot;...How do I solve this problem??<br/> And also when i connect to broadband, my computer gets hung up frequently while browsing and i need to restart my computer. Is this problem related to the former message and how can i solve it?</span>Thu, 02 Apr 2009 08:16:42 Z2009-04-03T20:04:35Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/0307bd79-c6da-4aec-9753-333430fb0a28http://social.microsoft.com/Forums/en-US/kernel/thread/0307bd79-c6da-4aec-9753-333430fb0a28Lerielhttp://social.microsoft.com/Profile/en-US/?user=LerielWhy request administrator rights when connecting USB flash memory..<p align=left><font face=Arial size=2></font> </p> <p>There are some workstations with Windows XP SP2 where users within Power Users group can not install flash memories.  Every time a flash memory is connected a dialog appears requesting admin credentials. Whether no credentials, it says &quot;You must be a member of administrators group...&quot; </p> <p align=left> </p> <p align=left>How could I avoid this?</p> <p align=left> </p> <p align=left>Thanks a lot in advance,</p> <p align=left>L. </p>Fri, 23 May 2008 17:01:01 Z2009-06-04T06:05:38Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/a351e930-b691-49c1-b748-60f5089cab43http://social.microsoft.com/Forums/en-US/kernel/thread/a351e930-b691-49c1-b748-60f5089cab43Serge Lidinhttp://social.microsoft.com/Profile/en-US/?user=Serge%20LidinANNOUNCEMENT: WRK NEWS<p><span style="font-size:10pt;font-family:'Arial','sans-serif'">Windows Academic Group has made some modifications and additions to the Windows Research Kernel published at <a title="http://www.facultyresourcecenter.com/curriculum/ResourceKits/os.aspx" href="http://www.facultyresourcecenter.com/curriculum/ResourceKits/os.aspx">http://www.facultyresourcecenter.com/curriculum/ResourceKits/os.aspx</a>:</span></p> <p> </p> <p><span style="font-size:10pt;font-family:'Arial','sans-serif'">1. <strong>WRK License</strong> has been extended to include the following passage:<br/>    “5. Microsoft welcomes your comments and suggestions on the source code, <br/>    which you provide on a strictly voluntary basis.  If you give Microsoft <br/>    comments and suggestions regarding bug fixes, enhancements or other <br/>    modifications to the source code, you agree that Microsoft may, <br/>    in connection with Microsoft products and services use, disclose or <br/></span><span style="font-size:10pt;font-family:'Arial','sans-serif'">    otherwise commercialize your comments and suggestions entirely without <br/>    any obligation or restriction based on intellectual property rights or <br/>    otherwise.  You will not give any comments or suggestions that you have <br/>    reason to believe are subject to any patent, copyright, or other <br/></span><span style="font-size:10pt;font-family:'Arial','sans-serif'">    intellectual property claim or right of any third party.”</span></p> <p><span style="font-size:10pt;font-family:'Arial','sans-serif'">2. Solution and project files for <strong>Visual Studio 2008</strong> have been added to integrate the WRK with VS 2008. The integration allows you to use the VS 2008 environment, including IntelliSense, to work with WRK code. The build process, however, uses the compilers and tools of VS 2003 supplied together with the WRK. Please note that the solution and project files are for VS 2008 and cannot be opened with VS 2003 or VS 2005. Visual Studio 2008 is available free of charge for faculty via MSDN Academic Alliance or via Faculty Connection (<a href="http://www.microsoft.com/education/facultyconnection/software/softwarelist.aspx?c1=en-us&amp;c2=0">http://www.microsoft.com/education/facultyconnection/software/softwarelist.aspx?c1=en-us&amp;c2=0</a>), and for students via DreamSpark (<a href="https://www.dreamspark.com/default.aspx">https://www.dreamspark.com/default.aspx</a>).</span></p> <p> </p> <p><span style="font-size:10pt;font-family:'Arial','sans-serif'">3. Six <strong>sample experimental projects</strong> have been added (see subdirectory “Docs and Examples”):</span></p> <p><span style="font-size:10pt;font-family:'Arial','sans-serif'">    - Experiment Environment Set Up<br/></span><span style="font-size:10pt;font-family:'Arial','sans-serif'">    - Easy Pager Example Project<br/></span><span style="font-size:10pt;font-family:'Arial','sans-serif'">    - Fair Share Scheduler Example Project<br/></span><span style="font-size:10pt;font-family:'Arial','sans-serif'">    - Inter-Process Communication (IPC)<br/></span><span style="font-size:10pt;font-family:'Arial','sans-serif'">    - Processor Scheduling<br/></span><span style="font-size:10pt;font-family:'Arial','sans-serif'">    - Working Set</span></p> <p><span style="font-size:10pt;font-family:'Arial','sans-serif'">   All sample projects that involve source code change and/or addition are packaged in new “Delta-Zip” format, which is how we are going to publish the sample projects from now on. <br/><strong>All sample projects have been developed by faculty</strong> from US, Germany and China. <br/></span></p> <p><span style="font-size:10pt;font-family:'Arial','sans-serif'"> </span><span style="font-size:10pt;font-family:'Arial','sans-serif'">4. A document “WRK Sample Publication Guidelines.doc” has been added, describing the minimal <strong>requirements</strong> to the sample WRK projects published via Faculty Resource Center site. If you have an interesting sample project you would like to share, here is how.</span></p> <p><span style="font-size:10pt;font-family:'Arial','sans-serif'">Please take your time to download new version of WindowsResearchKernel-WRK.zip (66 MB) and take a look. Please note that the source code of the WRK itself hasn’t changed in any way.</span></p> <p> </p> <p><span style="font-size:10pt;color:#1f497d;font-family:'Arial','sans-serif'"><strong>ALSO:</strong> PowerPoint presentation “New in Vista Kernel” has been added to “References and Related Materials” (<a title="http://www.facultyresourcecenter.com/curriculum/pfv.aspx?ID=7901" href="http://www.facultyresourcecenter.com/curriculum/pfv.aspx?ID=7901">http://www.facultyresourcecenter.com/curriculum/pfv.aspx?ID=7901</a>).</span></p> <p> </p> <p> </p> <p><span style="font-size:10pt;font-family:'Arial','sans-serif'"> </span></p> <p><span style="font-size:10pt;font-family:'Arial','sans-serif'">Thanks,</span></p> <p> </p> <div style="border-right:medium none;padding-right:0in;border-top:medium none;padding-left:0in;padding-bottom:1pt;border-left:medium none;padding-top:0in;border-bottom:windowtext 1pt solid"> <p><span style="font-size:10pt;font-family:'Arial','sans-serif'">Serge Lidin, Windows Academic Program</span></p> </div>Tue, 24 Mar 2009 20:06:15 Z2009-04-03T20:47:35Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/57bb2818-1bde-4f46-a907-5f7e01bf65c8http://social.microsoft.com/Forums/en-US/kernel/thread/57bb2818-1bde-4f46-a907-5f7e01bf65c8Amrapali Nimgirehttp://social.microsoft.com/Profile/en-US/?user=Amrapali%20NimgirePrivilege problemHi All,<br><br><br>Consider the scenario on windows XP operating system:<br><br>When I install the software as an administrator using the installer, the installer installs the software. This software is used to enumerate the processes and open them on the machine in restricted user with run as admin it works fine.<br><br>When the restricted user uses installer to install the software using the user name and password of administrator, the installer run as administrator and installs the software.<br><br>When the restricted user uses the installed software to enumerate the processes and open them, the software is unable to enumerate the processes even if it is run as admin.<br><br>So, my question is why the software fails to open the processes in case of restricted user even if we are running it as admin?<br><br>Please tell me the reason of failure.<br><br>Thanks &amp; RegardsTue, 10 Mar 2009 04:53:23 Z2009-03-22T20:08:16Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/78027c9f-35f4-43ee-a453-c25cb98da1cdhttp://social.microsoft.com/Forums/en-US/kernel/thread/78027c9f-35f4-43ee-a453-c25cb98da1cdchen.shinehttp://social.microsoft.com/Profile/en-US/?user=chen.shineafter compiling wrk1.2 just with -Oi (not with -Oxs -Oy-), logon fail(Blue Screen)Hi all,<br><br>if building wrk with -Oxs(the default makefile) , the value of some local variables can not be shown normally when debugging with windbg, because these variables are stored in registers, not in stacks due to -Oxs compilation option.<br>so i decide to build wrk without -Oxs, then i must replace the -Oxs using -Oi, or compilation errors will be product due to functions: _BitScanForward, _BitScanReverse, abs.<br>The build is totally successful. But when i use the new wrx86.exe(2.7M) instead of old wrx86.exe(2.1M),<br>i can not login the system, the screen is gray(then will show logon dialogbox). Access violation happens.<br><font color="#ff0000">Access violation - code c0000005 (!!! second chance !!!)<br>nt!ExpOptimizePushLockList+0x4d:<br>8081ab7d 8b5114          mov     edx,dword ptr [ecx+14h]<br><br><font color="#3366ff">kd&gt; !analyze -v<br>*******************************************************************************<br>*                                                                             *<br>*                        Bugcheck Analysis                                    *<br>*                                                                             *<br>*******************************************************************************<br><br>Unknown bugcheck code (0)<br>Unknown bugcheck description<br>Arguments:<br>Arg1: 00000000<br>Arg2: 00000000<br>Arg3: 00000000<br>Arg4: 00000000<br><br>Debugging Details:<br>------------------<br><br>*************************************************************************<br>***                                                                   ***<br>***                                                                   ***<br>***    Your debugger is not using the correct symbols                 ***<br>***                                                                   ***<br>***    In order for this command to work properly, your symbol path   ***<br>***    must point to .pdb files that have full type information.      ***<br>***                                                                   ***<br>***    Certain .pdb files (such as the public OS symbols) do not      ***<br>***    contain the required information.  Contact the group that      ***<br>***    provided you with these symbols if you need this command to    ***<br>***    work.                                                          ***<br>***                                                                   ***<br>***    Type referenced: kernel32!pNlsUserInfo                         ***<br>***                                                                   ***<br>*************************************************************************<br>*************************************************************************<br>***                                                                   ***<br>***                                                                   ***<br>***    Your debugger is not using the correct symbols                 ***<br>***                                                                   ***<br>***    In order for this command to work properly, your symbol path   ***<br>***    must point to .pdb files that have full type information.      ***<br>***                                                                   ***<br>***    Certain .pdb files (such as the public OS symbols) do not      ***<br>***    contain the required information.  Contact the group that      ***<br>***    provided you with these symbols if you need this command to    ***<br>***    work.                                                          ***<br>***                                                                   ***<br>***    Type referenced: kernel32!pNlsUserInfo                         ***<br>***                                                                   ***<br>*************************************************************************<br><br>PROCESS_NAME:  lsass.exe<br><br>FAULTING_IP: <br>nt!ExpOptimizePushLockList+4d [d:\wrk-v1.2\base\ntos\ex\pushlock.c @ 422]<br>8081ab7d 8b5114          mov     edx,dword ptr [ecx+14h]<br><br>EXCEPTION_RECORD:  ffffffff -- (.exr 0xffffffffffffffff)<br>ExceptionAddress: 8081ab7d (nt!ExpOptimizePushLockList+0x0000004d)<br>   ExceptionCode: c0000005 (Access violation)<br>  ExceptionFlags: 00000000<br>NumberParameters: 2<br>   Parameter[0]: 00000000<br>   Parameter[1]: 00000014<br>Attempt to read from address 00000014<br><br>ERROR_CODE: (NTSTATUS) 0xc0000005 - 0x%08lx<br><br>EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - 0x%08lx<br><br>EXCEPTION_PARAMETER1:  00000000<br><br>EXCEPTION_PARAMETER2:  00000014<br><br>READ_ADDRESS:  00000014 <br><br>FOLLOWUP_IP: <br>nt!ExpOptimizePushLockList+4d [d:\wrk-v1.2\base\ntos\ex\pushlock.c @ 422]<br>8081ab7d 8b5114          mov     edx,dword ptr [ecx+14h]<br><br>BUGCHECK_STR:  ACCESS_VIOLATION<br><br>DEFAULT_BUCKET_ID:  NULL_CLASS_PTR_DEREFERENCE<br><br>CURRENT_IRQL:  0<br><br>LAST_CONTROL_TRANSFER:  from 8081af0d to 8081ab7d<br><br>STACK_TEXT:  <br>f7fb76e4 8081af0d 00000007 00000000 00000000 nt!ExpOptimizePushLockList+0x4d [d:\wrk-v1.2\base\ntos\ex\pushlock.c @ 422]<br>f7fb775c 80815c3e 00000011 00000000 f7fb7848 nt!ExfAcquirePushLockShared+0x14d [d:\wrk-v1.2\base\ntos\ex\pushlock.c @ 713]<br>f7fb776c 8090fb21 e100e328 00000698 000004d3 nt!ExAcquirePushLockShared+0x2e [d:\wrk-v1.2\base\ntos\inc\ex.h @ 7351]<br>f7fb7848 8090ea79 f7fb78d4 00000004 00000004 nt!CmpBuildAndLockKcbArray+0x301 [d:\wrk-v1.2\base\ntos\config\cmparse.c @ 3402]<br>f7fb78a0 8090c2e1 f7fb78d4 00000004 f7fb7b94 nt!CmpCacheLookup+0x39 [d:\wrk-v1.2\base\ntos\config\cmparse.c @ 2574]<br>f7fb7a54 8090c505 e1674c08 f7fb7b64 f7fb7b7c nt!CmpBuildHashStackAndLookupCache+0xe1 [d:\wrk-v1.2\base\ntos\config\cmparse.c @ 293]<br>f7fb7ba4 8099306f e1674c08 81f8f7e0 81df5008 nt!CmpParseKey+0x1a5 [d:\wrk-v1.2\base\ntos\config\cmparse.c @ 495]<br>f7fb7c34 8098e8e1 00000020 f7fb7c70 00000040 nt!ObpLookupObjectName+0x18f [d:\wrk-v1.2\base\ntos\ob\obdir.c @ 1913]<br>f7fb7c90 808e2c5a 00eaf3a8 81f8f7e0 f7fb7d01 nt!ObOpenObjectByName+0x131 [d:\wrk-v1.2\base\ntos\ob\obref.c @ 766]<br>f7fb7d50 808b3dec 00eaf43c 000f003f 00eaf3a8 nt!NtOpenKey+0x2aa [d:\wrk-v1.2\base\ntos\config\ntapi.c @ 2144]<br>f7fb7d50 7c95ed54 00eaf43c 000f003f 00eaf3a8 nt!KiFastCallEntry+0xfc [D:\wrk-v1.2\base\ntos\ke\i386\trap.asm @ 1369]<br>00eaf384 7c951764 77f4d991 00eaf43c 000f003f ntdll!KiFastSystemCallRet<br>00eaf388 77f4d991 00eaf43c 000f003f 00eaf3a8 ntdll!ZwOpenKey+0xc<br>00eaf3e8 77f4dc4b 00000020 00eaf410 00000000 ADVAPI32!LocalBaseRegOpenKey+0xe4<br>00eaf41c 770f3ba9 80000002 770f3bb8 00000000 ADVAPI32!RegOpenKeyExW+0x116<br>00eaf440 770f3b6d 770d0000 00000001 00eaf4c8 setupapi!IsWinPEMode+0x23<br>00eaf5e4 770f35a3 770d0000 00000001 770d0000 setupapi!GetEmbeddedFlags+0x5a<br>00eaf868 770f3dc3 00000001 00000000 00000001 setupapi!CommonProcessAttach+0x99<br>00eaf89c 770d726a 770d0000 00000001 00000000 setupapi!ProcessAttach+0x9c<br>00eaf8b8 770d161e 770d0000 00000001 00000000 setupapi!DllMain+0x36<br>00eaf8d8 7c95257a 770d0000 00000001 00000000 setupapi!_DllMainCRTStartup+0x52<br>00eaf8f8 7c9658fb 770d15d6 770d0000 00000001 ntdll!LdrpCallInitRoutine+0x14<br>00eafa00 7c965bcb 00000000 00000000 00000000 ntdll!LdrpRunInitializeRoutines+0x367<br>00eafc94 7c963ee5 00000000 000ea5b8 00eaff5c ntdll!LdrpLoadDll+0x3cd<br>00eaff10 7c801c90 000ea5b8 00eaff5c 00eaff3c ntdll!LdrLoadDll+0x198<br>00eaff78 7c827b3f 74223d8c 00000000 00000000 kernel32!LoadLibraryExW+0x1b2<br>00eaff8c 74223b53 74223d8c 00000000 00000000 kernel32!LoadLibraryW+0x11<br>00eaffb8 7c826063 00000000 00000000 00000000 LSASRV!EFSRecover+0x16<br>00eaffec 00000000 74223b3d 00000000 00000000 kernel32!BaseThreadStart+0x34<br><br><br>STACK_COMMAND:  kb<br><br>FAULTING_SOURCE_CODE:  <br>   418:         FirstWaitBlock = WaitBlock;<br>   419: <br>   420:         while (1) {<br>   421: <br>&gt;  422:             NextWaitBlock = WaitBlock-&gt;Last;<br>   423:             if (NextWaitBlock != NULL) {<br>   424:                 FirstWaitBlock-&gt;Last = NextWaitBlock;<br>   425:                 break;<br>   426:             }<br>   427: <br><br><br>SYMBOL_STACK_INDEX:  0<br><br>SYMBOL_NAME:  nt!ExpOptimizePushLockList+4d<br><br>FOLLOWUP_NAME:  MachineOwner<br><br>MODULE_NAME: nt<br><br>IMAGE_NAME:  wrkx86.exe<br><br>DEBUG_FLR_IMAGE_TIMESTAMP:  49be8332<br><br>FAILURE_BUCKET_ID:  ACCESS_VIOLATION_nt!ExpOptimizePushLockList+4d<br><br>BUCKET_ID:  ACCESS_VIOLATION_nt!ExpOptimizePushLockList+4d<br><br>Followup: MachineOwner<br>---------<br></font></font><br>Please help me the problem.Thanks!<br><br>Mon, 16 Mar 2009 18:23:51 Z2009-03-16T18:23:53Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/6d209044-7021-45fd-b4b2-b346e99127ebhttp://social.microsoft.com/Forums/en-US/kernel/thread/6d209044-7021-45fd-b4b2-b346e99127ebAmrapali Nimgirehttp://social.microsoft.com/Profile/en-US/?user=Amrapali%20NimgireHow to access file which is opened with exclusive access by another processI want my process get access to a file which is opened in exclusive mode by another process.<br><br>Suppose a process A opens a file in exclusive mode and does some other task without releasing the file handle. Another process B wants to read this file for which it tries to get file handle using CreateFile() function. <br>In process B, CreateFile() fails as process A has locked file in exclusive mode.<br><br>I know that the Object Manager maintains a check to see that file is opened in compatible modes. <br>I want to know that is there any way using which we can access the file ??-- by bypassing checks by Object Manager or some other way.<br><br>If anyone has information about it please reply.<br><br>Thanks.<br>Mon, 09 Mar 2009 08:44:27 Z2009-03-09T08:44:31Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/8ec67a2b-95db-49c8-a007-0f31e08c801chttp://social.microsoft.com/Forums/en-US/kernel/thread/8ec67a2b-95db-49c8-a007-0f31e08c801cKiselev Ahttp://social.microsoft.com/Profile/en-US/?user=Kiselev%20ACompiling WRK with "Error (E08)"<strong>Hello! </strong><br>I cannot compile WRK:<br><br>C:\WRK\BASE\NTOS&gt;nmake -nologo %arch%=<br>checktoolarch x86<br>cd C:\WRK\BASE\NTOS\rtl\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\config\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\ex\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\ob\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\se\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\mm\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\ke\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\ps\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\io\iomgr\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\io\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\cache\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\lpc\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\dbgk\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\raw\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\fstub\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\fsrtl\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\wmi\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\perf\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\init\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br>cd C:\WRK\BASE\NTOS\BUILD<br>Error(E08): Invalid macro name ()<br>Error(E02): Make execution terminated<br><br>C:\WRK\BASE\NTOS&gt;<br><br>Wed, 04 Mar 2009 07:12:48 Z2009-03-04T07:12:51Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/05bb08de-e4e6-44bb-8772-a205be2ddca2http://social.microsoft.com/Forums/en-US/kernel/thread/05bb08de-e4e6-44bb-8772-a205be2ddca2dkg0414http://social.microsoft.com/Profile/en-US/?user=dkg0414No implementation of IoInvalidateDeviceRelations in WRKDoes anybody having any idea where IoInvalidateDeviceRelations implementation is in WRK code.<br><br>I can't find it code base.<br><br>Regards<br>Deepak<br> Thu, 05 Feb 2009 09:26:35 Z2009-03-16T18:43:15Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/17e600c8-c7e4-418d-81f2-d0abd300cd81http://social.microsoft.com/Forums/en-US/kernel/thread/17e600c8-c7e4-418d-81f2-d0abd300cd81rshriramhttp://social.microsoft.com/Profile/en-US/?user=rshrirammissing header file base/ntos/mm/i386/mipae.h<p>I wanted to enable the PAE mode so that I could work with the Hardware DEP features of wrkx86.exe (NX/XD bits).</p> <p>To enable it, I would have to define the <strong>_X86PAE_</strong> macro. </p> <p align=left>Unfortunately, defining it causes the #else part of <strong>base/ntos/mm/i386/mi386.h</strong> to be activated which contains <br><strong></strong></p> <p align=left><strong>#include i386/mipae.h</strong></p> <p>without this file, the code wont compile. As a result, the windows 2003 sp1 Os says that there is no Hardware DEP<br>(in the System Dialog box) and <strong>only software DEP</strong> is enabled (not of much use in my research ).</p> <p>As you may know, without the PAE, Hardware DEP cannot be enforced <img alt=Sad src="http://forums.microsoft.com/MSDN/emoticons/emotion-6.gif">.</p> <p>Does anyone have older versions of the wrk ? like version 1.1 or older, that may contain this file ?</p> <p align=left> </p> <p align=left> </p> <p align=left>An odd thing:</p> <p align=left>When I boot my wrkx86.exe in virtual PC, the System Panel says only Software DEP is available - as it emulates Pentium II or so (which doesnt have the NX functionality).</p> <p align=left> </p> <p align=left>But when I boot the kernel in vmware workstation 6.5 which has a more recent processor (with XD/NX), the</p> <p align=left>wmic OS DataExecutionPrevention_Available , etc checks (as detailed in the DEP documentation in KB) says Hardware DEP is enabled.</p> <p align=left> </p> <p align=left>What I cant understand is, if _X86PAE_ is not defined anywhere in the codebase and the windbg shows only non PAE pte structures, how can the system report that hardware DEP is enabled ? </p> <p align=left>Am confused.</p> <p align=left> </p> <p align=left>Add to that, for this DEP to be present, PAE must be available. But if PAE were to be available, then the system panel should have reported it. But it hasnt! <img alt=Sad src="http://forums.microsoft.com/MSDN/emoticons/emotion-6.gif"></p> <p align=left> </p> <p>thanks<br>shriram</p> <p align=left><font face=Arial size=2></font> </p>Thu, 08 Jan 2009 02:25:25 Z2009-02-16T10:16:37Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/409b788f-8d8c-496c-b920-efb980bdf7b0http://social.microsoft.com/Forums/en-US/kernel/thread/409b788f-8d8c-496c-b920-efb980bdf7b0Alicia Caleshttp://social.microsoft.com/Profile/en-US/?user=Alicia%20CalesThis forum has migrated successfully in January 2009<p style="margin:0in 0in 0pt"><span style="font-size:12pt;line-height:115%"><font face=Calibri>As part of the migration, posting of new threads and messages is no longer allowed on the Forums 2.x platform.  </font></span></p> <p style="margin:0in 0in 0pt"><span style="font-size:12pt;line-height:115%"><font face=Calibri>For reporting bugs on the new forums platform, visit:  </font><a href="http://social.msdn.microsoft.com/Forums/en-US/reportabug/threads/"><font face=Calibri>http://social.msdn.microsoft.com/Forums/en-US/reportabug/threads/</font></a><br><br><font face=Calibri>For making suggestions on the new forums platform,  visit:  </font><a href="http://social.msdn.microsoft.com/Forums/en-US/suggest/threads/"><font face=Calibri>http://social.msdn.microsoft.com/Forums/en-US/suggest/threads/</font></a><br><br><font face=Calibri>Thank you for your patience during the migration.</font></span></p> <p style="margin:0in 0in 0pt"><span style="font-size:12pt;line-height:115%"><font face=Calibri> </font></span></p> <p style="margin:0in 0in 0pt"><span style="font-size:12pt;line-height:115%"><font face=Calibri>Alicia.</font></span></p>Sat, 31 Jan 2009 00:48:47 Z2009-02-02T10:26:37Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/4677c1f9-5554-4cd4-83e1-7071988249c5http://social.microsoft.com/Forums/en-US/kernel/thread/4677c1f9-5554-4cd4-83e1-7071988249c5Alicia Caleshttp://social.microsoft.com/Profile/en-US/?user=Alicia%20CalesThis forum is moving the week of 1/27/2009<p align=left><font face=Arial size=2></font> </p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face=Calibri size=3>Microsoft has created a new forums platform (</font><a title="http://social.msdn.microsoft.com/forums/" href="http://social.msdn.microsoft.com/forums/"><font face=Calibri size=3>MSDN</font></a><font face=Calibri size=3> | </font><a title="http://social.technet.microsoft.com/forums" href="http://social.technet.microsoft.com/forums"><font face=Calibri size=3>TechNet</font></a><font face=Calibri size=3> | </font><a title="http://social.expression.microsoft.com/forums" href="http://social.expression.microsoft.com/forums"><font face=Calibri size=3>Expression</font></a><font face=Calibri size=3> | </font><a title="http://social.microsoft.com/en-US/forums/" href="http://social.microsoft.com/en-US/forums/"><font face=Calibri size=3>Microsoft</font></a><font size=3><font face=Calibri>) with increased performance, stability, and an improved user experience. <span style="color:#080808">During the week of 1/27/2009 this forum will move from the Forums 2.x Platform (</span></font></font><a title="http://forums.microsoft.com/" href="http://forums.microsoft.com/"><font face=Calibri size=3>http://forums.microsoft.com/</font></a><font size=3><font face=Calibri><span style="color:#080808">) to the Forums 3.x Platform.</span> To make sure this is a smooth transition, we want everyone using this forum to have a chance to try out the new forums in advance, and give feedback. We’ve created a </font></font><a title="http://social.microsoft.com/forums/en-US/comsandbox/threads/" href="http://social.microsoft.com/forums/en-US/comsandbox/threads/"><font face=Calibri size=3>Sandbox forum</font></a><font face=Calibri size=3>, where you can create threads and try out functionality, and a </font><a title="http://social.microsoft.com/forums/en-US/suggest/threads/" href="http://social.microsoft.com/forums/en-US/suggest/threads/"><font face=Calibri size=3>suggestions forum</font></a><font face=Calibri size=3> where you can give us your feedback. Please take some time to go to the new forums today and let us know what you think. </font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face=Calibri size=3> </font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face=Calibri size=3>On the day the forum moves to the new platform, a post will be made letting you know the process has been started, and the forum will be locked to new posts. Once the process is complete, a final post to the forum will be made letting you know the forum has moved.</font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face=Calibri size=3> </font></p> <p class=MsoListParagraph style="margin:0in 0in 0pt 0.5in;text-indent:-0.25in"><span style=""><span style=""><font face=Calibri size=3>1.</font><span style="font:7pt 'Times New Roman'">       </span></span></span><font face=Calibri size=3>All posts in the forum will be preserved</font></p> <p class=MsoListParagraph style="margin:0in 0in 0pt 0.5in;text-indent:-0.25in"><span style=""><span style=""><font face=Calibri size=3>2.</font><span style="font:7pt 'Times New Roman'">       </span></span></span><font face=Calibri size=3>Any points you’ve received for replies will move with you (on a per forum basis)</font></p> <p class=MsoListParagraph style="margin:0in 0in 0pt 0.5in;text-indent:-0.25in"><span style=""><span style=""><font face=Calibri size=3>3.</font><span style="font:7pt 'Times New Roman'">       </span></span></span><font face=Calibri size=3>Any bookmarks to this forum or threads within this forum will redirect to their new location</font></p> <p class=MsoListParagraph style="margin:0in 0in 0pt 0.5in;text-indent:-0.25in"><span style=""><span style=""><font face=Calibri size=3>4.</font><span style="font:7pt 'Times New Roman'">       </span></span></span><font face=Calibri size=3>Your “My Threads” will be preserved on the new platform</font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face=Calibri size=3> </font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face=Calibri size=3>The only thing you’ll need to do after migration is set Windows Live Alerts for any threads you were tracking.</font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face=Calibri size=3> </font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face=Calibri size=3>If you have feedback, let us know in the </font><a title="http://social.microsoft.com/en-US/suggest/threads/" href="http://social.microsoft.com/en-US/suggest/threads/"><font face=Calibri size=3>suggestions forum</font></a><font face=Calibri size=3> or contact the forum product planners directly at Andrew.Brenner at Microsoft.com or Jeremy.Kelley at Microsoft.com</font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face=Calibri size=3> </font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face=Calibri size=3>Thanks,</font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face=Calibri size=3>Alicia</font></p>Thu, 22 Jan 2009 13:39:39 Z2009-01-31T00:50:07Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/ff712277-f426-4572-b424-ff41f0f641cahttp://social.microsoft.com/Forums/en-US/kernel/thread/ff712277-f426-4572-b424-ff41f0f641cadkg0414http://social.microsoft.com/Profile/en-US/?user=dkg0414Did anybody try to load a compiled kernel from WRK package?<font size=2><span style="font-family:Arial">Hi All,<br><br>Did anybody tried to load the kernel compiled from WRK package.<br><br>I compiled it and tried to load by adding a entry in the boot.ini.<br>Unfortunately system is not coming up when i select boot option of compiled kernel from WRK.<br><br>NOTE --&gt; I have not done any changes in WRK, sources are same as they are present in the package.<br><br>Can any one guide if there are some extra settings that need to be done to get it working?<br><br>Cheers<br>Deepak<br></span></font>Thu, 06 Nov 2008 15:24:30 Z2009-01-31T00:50:07Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/b8cbe7df-9aff-45b9-89b5-1bd56610b095http://social.microsoft.com/Forums/en-US/kernel/thread/b8cbe7df-9aff-45b9-89b5-1bd56610b095minamohebhttp://social.microsoft.com/Profile/en-US/?user=minamohebdebugging kernel in a virtual machine<p align=left><font face=Arial size=2></font> </p> <p>I am running windbg on windows vista and I am running windows server 2003 sp1 on VMWare.</p> <p align=left> </p> <p align=left>Is there a way that I can debug the WRK from within the kernel? could you please tell me the command if available?</p> <p align=left> </p> <p align=left>Thank you</p> <p align=left> </p>Sun, 24 Feb 2008 09:56:44 Z2009-03-26T05:33:22Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/29314453-bb71-46e1-b5a5-7183bc3c26e1http://social.microsoft.com/Forums/en-US/kernel/thread/29314453-bb71-46e1-b5a5-7183bc3c26e1h3x___http://social.microsoft.com/Profile/en-US/?user=h3x___exclusive access to memoryhi, i want my driver to have exclusive access to system memory. Without interference from other threads.<br>Does windows implement such mechanizm? or its all about racing and % chance for BSoD?<br><br>Ofc i ask about SMP, so irql has nothing to do with it.<br>Mon, 17 Nov 2008 14:01:37 Z2009-01-31T00:50:07Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/cfae2aae-da76-4cf3-96e4-7d4fe2d1a474http://social.microsoft.com/Forums/en-US/kernel/thread/cfae2aae-da76-4cf3-96e4-7d4fe2d1a474carmeshttp://social.microsoft.com/Profile/en-US/?user=carmeslink help! please!<p>hello....</p> <p align=left>i know im in the wrong place.... </p> <p align=left>but i know nothing about pcs...lol </p> <p align=left>its a simple ques , if u know the answer pls tell me...</p> <p align=left> </p> <p align=left>Hoe can a copy a link from a webpage onto my own, for example myspace or facebook?</p> <p align=left>i dont want to just copy and paste, i want the actual link to be there so they can click on it.</p> <p align=left> </p> <p align=left>again, im sorry that im in the wrong place ,but i would GREATLY appreciate it! </p> <p align=left>thanks, </p> <p align=left>Carmen</p> <p align=left><font face=Arial size=2></font> </p>Thu, 11 Oct 2007 09:13:55 Z2009-08-23T19:32:53Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/ca4b5c63-77eb-499f-bf5c-11edcc64ec78http://social.microsoft.com/Forums/en-US/kernel/thread/ca4b5c63-77eb-499f-bf5c-11edcc64ec78tuengehttp://social.microsoft.com/Profile/en-US/?user=tuengeAlternative User Input<p align=left>Though I've found the FAQ for ctfmon.exe, I can't find a good description of the services that require this program:  </p> <p align=left> </p> <blockquote dir=ltr style="margin-right:0px"> <p align=left>Alternative User Input Text Input Processor</p> <p align=left> </p> <p align=left>Microsoft Office Language Bar</p></blockquote> <p align=left> </p> <blockquote dir=ltr style="margin-right:0px"> <p align=left><a title="http://support.microsoft.com/kb/282599/en-us" href="http://support.microsoft.com/kb/282599/en-us">http://support.microsoft.com/kb/282599/en-us</a></p></blockquote> <p align=left> </p> <p align=left>Voice and handwriting recognition are examples of alternative user input functions that I definitely don't need, but the FAQ also mentions &quot;keyboard&quot; and this makes me leary of removal...  Could someone clarify the relation to keyboard, etc?</p> <p align=left> </p> <p align=left>Also, I'm guessing this wasn't the best place to post this thread...  Could anyone direct me to a more suitable forum for such issues?</p> <p align=left> </p> <p align=left>Thanks!</p>Thu, 16 Oct 2008 17:43:28 Z2009-01-31T00:50:07Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/87a15927-1f6a-413e-a3ea-b7ed2e801117http://social.microsoft.com/Forums/en-US/kernel/thread/87a15927-1f6a-413e-a3ea-b7ed2e801117A. Schmidthttp://social.microsoft.com/Profile/en-US/?user=A.%20SchmidtA Bug in Windows Timer Management?<p align=left><font face=Arial size=2>Hi, </font></p> <p align=left> </p> <p align=left>I recently used the WRK sources to figure out some details about Windows timer management, when I recognized the following comment in file base\ntos\inc\ntosdef.h on lines 618 thru 624:</p> <p align=left> </p> <p align=left><span style="color:#cc66cc"> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Snippet</span></div> <p align=left><span style="color:#cc66cc">00618</span> <span style="color:#808080;font-style:italic">// </span><br><span style="color:#cc66cc">00619</span> <span style="color:#808080;font-style:italic">// Define timer table size. </span><br><span style="color:#cc66cc">00620</span> <span style="color:#808080;font-style:italic">// </span><br><span style="color:#cc66cc">00621</span> <span style="color:#808080;font-style:italic">// N.B. The size of the timer table must be less than or equal to 256 and a </span><br><span style="color:#cc66cc">00622</span> <span style="color:#808080;font-style:italic">// power of 2 in size. </span><br><span style="color:#cc66cc">00623</span> <br><span style="color:#cc66cc">00624</span> <span style="color:#339933">#define TIMER_TABLE_SIZE 512</span></p> <p align=left> </p></div></div> <p align=left> </p></span><span style="color:#339933"></span> <p></p> <p>Obviously, the definition of TIMER_TABLE_SIZE is inconsistent with the comment and it spent me some hours to find out that this might lead to a bug. I will briefly present my findings here, a more detailed version is available <a title="http://www.dcl.hpi.uni-potsdam.de/research/WRK/?p=32" href="http://www.dcl.hpi.uni-potsdam.de/research/WRK/?p=32">here</a>.</p> <p align=left> </p> <p align=left>When Windows inserts a timer object in its corresponding timer table entry, it stores the index of this entry in the timer's DISPATCHER_HEADER structure, i.e. DISPATCHER_HEADER::Hand. The index is calculated with the formula: Hand = (Due time / Maximum time) % TIMER_TABLE_SIZE. That means, Hand can be in range between 0 and 511. In function KeComputeDueTime() (see base\ntos\ke\ki.h), this index is cast into a UCHAR value, so index might overflow, because in a UCHAR you can only encode values between 0 and 255!</p> <p align=left> </p> <p align=left><span style="color:#cc66cc"> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Snippet</span></div><span style="color:#cc66cc">01219</span>  *Hand = KiComputeTimerTableIndex<span style="color:#66cc66">(</span>DueTime<span style="color:#66cc66">)</span>; <br><span style="color:#cc66cc">01220</span>  Timer-&gt;Header.<span style="color:#202020">Hand</span> = <span style="color:#66cc66">(</span>UCHAR<span style="color:#66cc66">)</span>*Hand; <br><span style="color:#cc66cc">01221</span>  Timer-&gt;Header.<span style="color:#202020">Inserted</span> = <span style="font-weight:bold;color:#000000">TRUE</span>; <br><span style="color:#cc66cc">01222</span>  <span style="color:#b1b100">return</span> <span style="font-weight:bold;color:#000000">TRUE</span>; <p align=left> </p></div></div> <p align=left></span> </p> <p align=left>This cast becomes a problem when Windows removes the timer from its timer list (KiRemoveEntryTimer in base\ntos\ke\ki.h):</p> <p align=left> </p> <p align=left><span style="color:#cc66cc"> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Snippet</span></div> <p dir=ltr style="margin-right:0px" align=left><span style="color:#cc66cc">01968</span> ULONG Hand; <br><span style="color:#cc66cc">01969</span> PKTIMER_TABLE_ENTRY TableEntry; <br><span style="color:#cc66cc">01970</span> <br><span style="color:#cc66cc">01971</span> <span style="color:#808080;font-style:italic">// </span><br><span style="color:#cc66cc">01972</span> <span style="color:#808080;font-style:italic">// Remove the timer from the timer table. If the timer table list is </span><br><span style="color:#cc66cc">01973</span> <span style="color:#808080;font-style:italic">// empty, then set the respective timer table due time to an infinite </span><br><span style="color:#cc66cc">01974</span> <span style="color:#808080;font-style:italic">// absolute time. </span><br><span style="color:#cc66cc">01975</span> <span style="color:#808080;font-style:italic">// </span><br><span style="color:#cc66cc">01976</span> <span style="color:#808080;font-style:italic">// N.B. It is the responsibility of the caller to set the timer inserted </span><br><span style="color:#cc66cc">01977</span> <span style="color:#808080;font-style:italic">// state. </span><br><span style="color:#cc66cc">01978</span> <span style="color:#808080;font-style:italic">// </span><br><span style="color:#cc66cc">01979</span> <br><span style="color:#cc66cc">01980</span> Hand = Timer-&gt;Header.<span style="color:#202020">Hand</span>; <br><span style="color:#cc66cc">01981</span> <span style="color:#b1b100">if</span> <span style="color:#66cc66">(</span>RemoveEntryList<span style="color:#66cc66">(</span>&amp;Timer-&gt;TimerListEntry<span style="color:#66cc66">)</span> != <span style="font-weight:bold;color:#000000">FALSE</span><span style="color:#66cc66">)</span> <span style="color:#66cc66">{</span> <br><span style="color:#cc66cc">01982</span>    TableEntry = &amp;KiTimerTableListHead<span style="color:#66cc66">[</span>Hand<span style="color:#66cc66">]</span>; <br><span style="color:#cc66cc">01983</span>    <span style="color:#b1b100">if</span> <span style="color:#66cc66">(</span>&amp;TableEntry-&gt;Entry == TableEntry-&gt;Entry.<span style="color:#202020">Flink</span><span style="color:#66cc66">)</span> <span style="color:#66cc66">{</span> <br><span style="color:#cc66cc">01984</span>        TableEntry-&gt;Time.<span style="color:#202020">HighPart</span> = 0xffffffff; <br><span style="color:#cc66cc">01985</span>    <span style="color:#66cc66">}</span> <br><span style="color:#cc66cc">01986</span> <span style="color:#66cc66">}</span></p> <p align=left> </p></div></div> <p align=left></span> </p> <p>In the code snippet above, Header.Hand is used to identify the timer table entry. If the timer list gets empty, the due time must be set to an infinite absolute due time. Unfortunately, if Hand was originally, let's say, 257, Hand in the above code is actually 1 (257 % 256)! So, Windows checks whether the timer list KiTimerTableListHead[1] is empty, although it should have checked KiTimerTableListHead[257]. If KiTimerTablerListHead[1] is not empty, the Time field in KiTimerTableListHead[257] keeps its old value, i.e., an absolute due time in the past.</p> <p align=left> </p> <p align=left>Now refer to KeUpdateSystemTime() in base\ntos\ke\<em>arch</em>\clockint.asm. The following code is used to determine, whether a timer has expired:</p> <p align=left> </p> <p align=left><span style="color:#ff0000"> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Snippet</span></div><span style="color:#ff0000">00212</span> <span style="color:#adadad;font-style:italic">; </span><br><span style="color:#ff0000">00213</span> <span style="color:#adadad;font-style:italic">; Check to determine if a timer has expired. </span><br><span style="color:#ff0000">00214</span> <span style="color:#adadad;font-style:italic">; (edi:esi) = KiInterruptTime </span><br><span style="color:#ff0000">00215</span> <span style="color:#adadad;font-style:italic">; (eax) = bucket </span><br><span style="color:#ff0000">00216</span> <span style="color:#adadad;font-style:italic">; (ebx) = KeTickCount.LowPart </span><br><span style="color:#ff0000">00217</span> <span style="color:#adadad;font-style:italic">; </span><br><span style="color:#ff0000">00218</span> <br><span style="color:#ff0000">00219</span> kust10:  <span style="color:#00007f">and</span> <span style="font-weight:bold;color:#46aa03">eax</span>,TIMER_TABLE_SIZE<span style="color:#ff0000">-1</span> <span style="color:#adadad;font-style:italic">; isolate current hand value </span><br><span style="color:#ff0000">00220</span>   <span style="color:#00007f">shl</span> <span style="font-weight:bold;color:#46aa03">eax</span>, <span style="color:#ff0000">4</span> <span style="color:#adadad;font-style:italic">; compute timer entry offset </span><br><span style="color:#ff0000">00221</span>   <span style="color:#00007f">cmp</span> <span style="font-weight:bold;color:#46aa03">esi</span>,<span style="color:#66cc66">[</span><span style="font-weight:bold;color:#46aa03">eax</span><span style="color:#66cc66">]</span>+_KiTimerTableListHead+TtTime<span style="color:#ff0000">+4</span> <span style="color:#adadad;font-style:italic">; compare high due time </span><br><span style="color:#ff0000">00222</span>   <span style="color:#00007f">jb</span> kustxx <span style="color:#adadad;font-style:italic">; if below, timer has not expired </span><br><span style="color:#ff0000">00223</span>   <span style="color:#00007f">ja</span> <span style="color:#0000ff">short</span> kust15 <span style="color:#adadad;font-style:italic">; if above, timer has expired </span><br><span style="color:#ff0000">00224</span>   <span style="color:#00007f">cmp</span> <span style="font-weight:bold;color:#46aa03">edi</span>,<span style="color:#66cc66">[</span><span style="font-weight:bold;color:#46aa03">eax</span><span style="color:#66cc66">]</span>+_KiTimerTableListHead+TtTime <span style="color:#adadad;font-style:italic">; compare low due time </span><br><span style="color:#ff0000">00225</span>   <span style="color:#00007f">jb</span> kustxx <span style="color:#adadad;font-style:italic">; if below, timer has not expired </span><br><span style="color:#ff0000">00226</span> kust15: <span style="color:#adadad;font-style:italic">; </span><br><span style="color:#ff0000">00227</span>  </div></div> <p align=left></span> </p> <p align=left>As the Time field remains a valid but past due time, this code results in enqueuing a DPC routine to handle expired timers, although the timer list is empty!</p> <p align=left> </p> <p align=left>Another critical routine is KiRemoveTreeTimer() (see base\ntos\ke\ki.h). This function does the same like KiRemoveEntryTimer, but additionaly, it also acquires the timer list lock. Again, the 8-bit wide Hand field is used to identify the lock of the timer list. When there was an overflow in Hand, the wrong list lock is acquired which might lead to corrupt timer list.</p> <p align=left> </p> <p align=left>So, would you agree this is a bug or did I simply just overlook an important detail?</p> <p align=left> </p> <p align=left>Regards,</p> <p align=left>Alexander</p>Fri, 10 Aug 2007 15:18:41 Z2009-11-02T20:14:29Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/18b9c8ed-d631-4b77-9bec-8b14f07c81dahttp://social.microsoft.com/Forums/en-US/kernel/thread/18b9c8ed-d631-4b77-9bec-8b14f07c81daJay_Vora_b4843ehttp://social.microsoft.com/Profile/en-US/?user=Jay_Vora_b4843emdm.exe comes evrytime<p>when i chk my taskmngr evry 15-20 minutes ..i find mdmexe running ..</p> <p>does it use internet?</p> <p>is it necessary for runnning?<br>shud i close?</p> <p>plz any info..</p> <p>thx in advance.</p>Tue, 27 Mar 2007 16:30:08 Z2009-01-31T00:50:07Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/660024e9-3459-4196-ad78-f45bd555b7bbhttp://social.microsoft.com/Forums/en-US/kernel/thread/660024e9-3459-4196-ad78-f45bd555b7bbrpuskarcikhttp://social.microsoft.com/Profile/en-US/?user=rpuskarcikOutlook, How to delete an unwanted message<p align=left><font face=Arial size=3>When you add a unique item to one of a set of recurring appointments you get the message&quot;</font></p> <p><font size=3>&quot;The contents of this appointment have been updated.&quot;</font></p> <p align=left><font size=3></font> </p> <p align=left><font size=3>This is good information, perhaps (once or the first time), but to have the entire cell cluttered up with it is useless.</font></p> <p align=left><font size=3></font> </p> <p align=left><font size=3>How do you get around it? Or better, delete it?</font></p>Fri, 19 Sep 2008 20:13:05 Z2009-01-31T00:50:07Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/4e2b8aae-109d-4174-91e9-5f38bdbf1434http://social.microsoft.com/Forums/en-US/kernel/thread/4e2b8aae-109d-4174-91e9-5f38bdbf1434Jay_187http://social.microsoft.com/Profile/en-US/?user=Jay_187WRK for full time employees<p align=left><font face=Verdana>Hi, </font></p> <p align=left><font face=Verdana></font> </p> <p align=left><font face=Verdana>As per the eligibility requirement of WRK; Windows Research Kernel requires academic affiliation with an accredited institution.</font></p> <p align=left><font face=Verdana></font> </p> <p align=left><font face=Verdana>Is there a way for a full time employees in Microsoft to download the WRK for self-education? </font></p> <p align=left><font face=Verdana></font> </p> <p align=left><font face=Verdana>I will appriciate your response.</font></p> <p align=left><font face=Verdana></font> </p> <p align=left><font face=Verdana>Regards,</font></p> <p align=left><font face=Verdana></font> </p> <p align=left><font face=Verdana>Jay </font></p>Mon, 05 Nov 2007 22:06:14 Z2009-01-31T00:50:07Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/2743ced4-1627-4718-b26b-be810f67f252http://social.microsoft.com/Forums/en-US/kernel/thread/2743ced4-1627-4718-b26b-be810f67f252SandeepMathewhttp://social.microsoft.com/Profile/en-US/?user=SandeepMathewWriting a Kernel in C#Hi ,<br>I  have a question . Instead of using ILDASM to emit il code , is there any way to directly  emit  il code by giving some option to csc compiler . I havent seen much useful options when i typed csc /? . I mean something like  <br>gcc -S simple.c <br>My idea is to convert the il code produced into x86 instructions so that it can be fed to nasm , masm or fasm .     Dissassembling the binary does not  appear to be very pretty. After  these  x86  instructions  are assembled into  object  code  , I can make use of a linker script to generate a  flat binary file . Then  this image can be booted using grub . This way I can create a simple prototype kernel that can serve as starting point for OS hackers all around the world who want to write<br>their OS in C# . Almost any help would be welcome ..<img src="http://forums.microsoft.com/WindowsAcademic/WebResource.axd?d=NySzF1eivP_rMoc50GQJzcvS4MHMOEKwYrCIgDtzuzlw7GsNki3H_INlfYaLgkxFdA4ESFRtesEUXj11MHjIL5WMBvm3Pubiu_iWcnqAaGQ1&amp;amp;t=633337194230757564"><br><br>Regards<br>Sandeep Mathew<br><br><br><br><br><br>Sat, 12 Apr 2008 02:26:39 Z2009-01-31T00:50:07Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/47b0ff85-7858-40ce-94ee-c54a141600e3http://social.microsoft.com/Forums/en-US/kernel/thread/47b0ff85-7858-40ce-94ee-c54a141600e3vittalsettyhttp://social.microsoft.com/Profile/en-US/?user=vittalsettyHow can i get the design time name of a control in an exe<p>Hi,</p> <p>I have an exe written in VB6.  It has some forms with some controls like textboxes, buttons etc.  If I hover / click on a particular control, I would want to get the designtime name of the control (txtUserName etc).  Is this possible?</p> <p> </p> <p>Any pointers on this?</p> <p> </p> <p>Thanks in Advance!</p> <p> </p> <p>REgards</p> <p>Vittal<br></p> <p align=left><font face=Arial size=2></font> </p>Sat, 24 May 2008 02:59:03 Z2009-01-31T00:50:07Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/c681b20b-068b-42a4-a338-5a673eb33508http://social.microsoft.com/Forums/en-US/kernel/thread/c681b20b-068b-42a4-a338-5a673eb33508sabarinathanhttp://social.microsoft.com/Profile/en-US/?user=sabarinathanKernal Mode's an operation's.what is the &quot;USER MODE AND SUPERVISOR MODE OPERATION&quot;?Thu, 18 May 2006 13:20:23 Z2009-01-31T00:50:07Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/b77e41a8-30a1-4d2e-93df-ae2744e55c5bhttp://social.microsoft.com/Forums/en-US/kernel/thread/b77e41a8-30a1-4d2e-93df-ae2744e55c5bpch521http://social.microsoft.com/Profile/en-US/?user=pch521question about compling the mrk<p align=left><font style="background-color:#cce8cc" face=Arial size=2>when i run nmake x86=,there is an arror:  checktoolarch is not a internal command.NMAKE : fatal error U1077: 'checktoolarch' : return code '0x1'</font></p> <p align=left><font style="background-color:#cce8cc">hoping your answer as soon as possible!</font></p> <p align=left><font style="background-color:#cce8cc">pch521</font></p>Sun, 06 Jul 2008 08:22:51 Z2009-01-31T00:50:07Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/f5ad3e6f-29d2-49ed-b283-5c957b1071b9http://social.microsoft.com/Forums/en-US/kernel/thread/f5ad3e6f-29d2-49ed-b283-5c957b1071b9mrscorpiohttp://social.microsoft.com/Profile/en-US/?user=mrscorpiomissing msvcp71.dll<p align=left><font face=Arial size=2></font> </p> <p>im needing help. can you help me, please.</p> <p align=left> </p>Mon, 28 Jan 2008 13:04:49 Z2009-01-31T00:50:07Zhttp://social.microsoft.com/Forums/en-US/kernel/thread/e3afe664-ef05-404a-88d0-765e8c406febhttp://social.microsoft.com/Forums/en-US/kernel/thread/e3afe664-ef05-404a-88d0-765e8c406febamos.thttp://social.microsoft.com/Profile/en-US/?user=amos.tnetrap.dll Net Remote Admin Protocol DLL information requestHello, <br><br>I use Windows XP Professional Version 2002 Service Pack 2 and I have noticed the presence of the netrap.dll dynamic link library in my system.<br><br>I have also found different versions of this library on the web that have the following MD5 sums:<br><br>84a5644ae4731202a4a02e6342d29ba6<br>4239cef617993868da65bf53ff16379e<br>e7fc69c00bebc04daef86071822b2b89<br><br>What is this library used for?<br><br>Thanks.<br><br>Amos.T<br><br><img src="http://forums.microsoft.com/WindowsAcademic/WebResource.axd?d=NySzF1eivP_rMoc50GQJzcvS4MHMOEKwYrCIgDtzuzlw7GsNki3H_INlfYaLgkxFjZzlJqkjpAu4Xq-FyiiVVaQaw-vp9CJ___CKdW9Lf2I1&amp;amp;t=633337194230757564"><br>Thu, 27 Mar 2008 11:36:29 Z2009-01-31T00:50:07Z