Where can I find source code for Windows commands? [closed] - windows

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I've been messing around with command prompt for a few days now, but I want to have a better understanding of what's actually going on under the hood. Searching the Internet has been of no use so far, as almost all the results there will show, you the syntax of the commands, which is not I want.
Is it possible to retrieve the source code for any of the Windows commands?

Source code for some parts of Windows is open sourced. .NET for example. Other parts of the source code are available via various programs, described here. One program that I've used is Code Center Premium. In this program you are assigned a smart card/PIN and use a specific URL to access the source code for the various versions of Windows. Generally only RTM (release to manufacturing) code is available on CCP (as opposed to patched versions of the code).
If you are an individual you probably won't be able to get access via any of these programs, except possibly the MVP program. But if you were an MVP you probably would already understand "what's going on under the hood" to a large extent.
As an individual I suggest the book Windows Internals, which you can find as a PDF on the web. Note that the book is over 1000 pages, so a huge amount of information is available within. Also, there are various examples in the book in the way of commands that control/monitor various aspects of Windows (no source code, but an explanation of how the command works)
Note that a book will be much more comprehensible than the Windows source code which if I remember correctly is well over 100,000,000 lines currently.
Note that for "vanilla" commands like COPY, DIR, etc., perusing the Win32 API set for file & directory I/O on MSDN will yield the APIs that CMD.EXE uses. Many samples are also available on MSDN and elsewhere.

Related

List of all existing WinApi Functions [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
Is there a list of existing winapi functions? This paper claims it analyzed around 22000 winapi functions. Are those functions listed on a windows machine somewhere? Or are there websites that list those?
When following #IInspectable's approach I get the following error:
[A]re there websites that list those [winapi functions]?
Possibly. If there are, they probably suck. Either way, if that is your question, it would be off-topic around here.
Are those [winapi] functions listed on a windows machine somewhere?
No. There's no practical reason to have that listing. Applications know which APIs they need and either the OS loader will resolve those dependencies (for compile-time dynamic linking), or the runtime dynamic linking will report its outcome to the calling application.
Neither one requires a listing of all available APIs they aren't interested in calling anyway. If your application doesn't plan to call TABTHETEXTOUTFORWIMPS, it likely has no interest in knowing, where TABTHETEXTOUTFORWIMPS actually lives.
The available API calls are published by way of the Windows SDK. It includes both the function signatures, required by your compiler, as well as the information on where to find the functions' implementations, which the linker is mightily interested in.
It's the Windows SDK that has the information you appear to be interested in1.
The Win32 Metadata project collects metadata by scanning the Windows SDK header files, and makes it available as a machine-readable assembly. The results are published to the NuGet gallery.
The assembly can be opened with any tool that understands ECMA-335 metadata (like Visual Studio's Object Browser or ILSpy). If neither of those tools meet your immediate needs, you can parse the data yourself and derive arbitrary information. The binary file format is documented ("Partition II: Metadata Definition and Semantics" has all the information you'd need to parse out that information).
1 Apparently, the cardinality of the the Windows API surface. Not that I'd challenge the paper's authors' intentions, though I'd probably miss out on reading a paper that has "Deep Learning" in its title, even if my time weren't resource-constrained. With a pretty high probability it's just complete garbage.

How to generate documentation for Clojure code on Windows? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I can't seem to find a way to generate documentation for Clojure code on Windows.
Marginalia seems to be broken on all platforms since 1.7 (see here:
https://github.com/gdeer81/marginalia/issues/158).
Codox has an issue
open on this topic (https://github.com/weavejester/codox/issues/110).
The Autodoc plugin for Lein 2 seems to be broken as well (not
enough reputation to post more than two links, but there's an issue
open on this over at GitHub).
Has anyone succeeded in running any of these three on Windows? Should I try something else?
Note:
I do not have a choice here, it must run on Windows.
As I'm building a case for clojure in the company, it must play well with leiningen, which is used to build and test our code.
Another option is autodoc - seems to still be active, but from the README it seems there are no promises it works on windows - still you could give it a try.
I think codox might still be your best bet. It's pretty popular and well maintained (there's only 4 open bugs right now and they're pretty newish - one of which is the one you referenced in your question). So maybe give it some time.
Finally, I know this is probably obvious and not ideal, but you could at least do one-off generations of documentation on a *nix system for the time being.

Modern version of WinDiff? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
VB6 came with WinDiff.
Is there a free modern version of WinDiff available that is able to ignore case?
Along with WinMerge and the WinDiff from the latest SDK, I also have SourceGear's free DiffMerge.
I use WinMerge (which hasn't changed for a while either -- don't ignore blank lines; that exercises bugs) most, especially its ability to open two blank editable pages and you can paste anything, such as from a Remote Desktop to a machine that does not have any visual diff installed, and the differences automatically (or manually if you prefer) update.
DiffMerge's feature I like is its display of differences, which seems to cater for spuriously different line breaks better.
And, to answer your question, the WinDiff from the latest SDK (or at least the one included with Visual Studio 2010), WinMerge, and DiffMerge can all ignore case.
WinDiff is part of the Windows SDK, it still ships with it. But no, the SDK is targeted to programmers that write code in case-sensitive languages, C and C++.
The source code of WinDiff was once part of the SDK samples. You can still get it from this web page, assuming you're into hacking C code and have an old compiler laying around. You'll need to adapt line.c, the line_gethashcode() and line_compare() functions. Lower-casing the line is easiest.
Well, that was the programmer's answer. Plenty of other fish in the sea, Beyond Compare typically gets a lot of nods.

Are there any VBScript libraries? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Are there any open source free VBScript libraries? I am doing a lot of windows administration and always find myself writing error prone code. Any help here?
You really should move to powershell.
I haven't heard of a sysadmin working in vbscript in quite a long time.
update
There used to be several sites that hosted script libraries, like win32scripting, but they've been rapidly disappearing due to powershell.
You might go check out The Scripting Guy. They have a section just for VBScript in their forums that may be of help.
Even 5 years after the post above was written it is still short sighted and doesn't answer the question.
Admins need to work in whatever language is available and suitable -- some of us with LARGE (1000s) server or client estates still have quite a bit of Win2003, Win2000, and even a few NT4 servers.
I dislike VBScript somewhat but write using it, since it is the only language besides CMD.exe batch that is ubiquitously available on all Microsoft systems from NT4 on forward.
Even our Win2003 servers don't typically have PowerShell.
Libraries:
http://sourceforge.net/projects/vbslib/
http://www.microsoft.com/en-us/download/details.aspx?id=12028
https://code.google.com/p/vbslib/
http://www.robvanderwoude.com/vbstech.php
http://www.activexperts.com/admin/scripts/vbscript/

RapidWeaver-like editor for windows [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
After seeing a friend using RapidWeaver and producing wonderful results in a few clicks, I was astonished and started searching if a tool like that exists for Windows. Unfortunately, so far my search yielded no result, so I'm writing here the criteria I'm using hoping that anybody will come up with a relevant suggestion:
WYSIWYG HTML editor
Must work (well!) on Windows (Vista/7)
Must not be web based (I don't care about webapps allowing me to create sites off of crappy templates)
Template-based (and possibly with many templates available)
Pretty flexible (nothing like Dreamweaver, but I wouldn't like being stuck with just entering text into some prebuilt templates)
Intuitive (and possibly good looking) UI
Producing standards-compliant markup (office-like HTML is not an option)
Here is what I don't care about:
Price/License (if it's commercial it's probably even better for my purpose, as if the tool is good I will want fast, quality support)
Good code editing features (when I'll get my hands dirty with the markup I want things to be looking already pretty good so I'll just have to improve certain areas based on my requirements...)
Server-side scripting (I'm handling that otherwise, for this tool I just care about the design part)
Here's a list of commonly recommended tools I consider unfit for my needs:
NVU
KompoZer
Microsoft Expression Web
Microsoft Visual Web Designer
Adobe Dreamweaver (good, but too good for my needs. At this stage, I'd prefer something quicker, even if it means having lower quality html)
Thanks in advance for your suggestions!
Probably too late, and not sure if this helps you anyway:
http://www.artisteer.com
http://www.xara.com/eu/products/webdesigner/

Resources