-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56b39ee
commit 3aef404
Showing
9 changed files
with
142 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
pe-parser | ||
========= | ||
|
||
Required reading: | ||
----------------- | ||
|
||
* [https://msdn.microsoft.com/en-us/library/windows/desktop/ms680547(v=vs.85).aspx](PE format documentation) | ||
* [https://msdn.microsoft.com/en-us/library/windows/desktop/ms647001(v=vs.85).aspx](Version resource documentation) | ||
|
||
If you're reading the code for the first time, I recommend skimming the docs above first, then start with getFileVersionInfoAsync in index.ts. The various .ts files | ||
mostly correspond to the major structures of the file: | ||
* PEImageFile => signatures and COFF header | ||
* SectionTable => section table | ||
* ResourceSection => resource table | ||
* VersionResource => VS\_VERSION\_INFO resource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"extends": [ | ||
"tslint:latest" | ||
], | ||
"rules": { | ||
"member-ordering": [ false ], | ||
"interface-name": [ false ], | ||
|
||
// lots of objects in this package are sorted by file order | ||
"object-literal-sort-keys": false, | ||
|
||
"whitespace": [ | ||
"check-branch", | ||
"check-decl", | ||
"check-operator", | ||
"check-module", | ||
"check-separator", | ||
"check-type" | ||
/* "check-typecast" -- the vs code formatter introduces violations of these */ | ||
], | ||
|
||
"one-line": [ | ||
"check-open-brace", | ||
"check-whitespace" | ||
/* the vs code formatter introduces violations of these | ||
"check-catch", | ||
"check-finally", | ||
"check-else" */ | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"extends": [ | ||
"tslint:latest" | ||
], | ||
"rules": { | ||
"member-ordering": [ false ], | ||
"interface-name": [ false ], | ||
|
||
// lots of objects in this package are sorted by file order | ||
"object-literal-sort-keys": false, | ||
|
||
"whitespace": [ | ||
"check-branch", | ||
"check-decl", | ||
"check-operator", | ||
"check-module", | ||
"check-separator", | ||
"check-type" | ||
/* "check-typecast" -- the vs code formatter introduces violations of these */ | ||
], | ||
|
||
"one-line": [ | ||
"check-open-brace", | ||
"check-whitespace" | ||
/* the vs code formatter introduces violations of these | ||
"check-catch", | ||
"check-finally", | ||
"check-else" */ | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"extends": [ | ||
"tslint:latest" | ||
], | ||
"rules": { | ||
"member-ordering": [ false ], | ||
"interface-name": [ false ], | ||
|
||
// lots of objects in this package are sorted by file order | ||
"object-literal-sort-keys": false, | ||
|
||
"whitespace": [ | ||
"check-branch", | ||
"check-decl", | ||
"check-operator", | ||
"check-module", | ||
"check-separator", | ||
"check-type" | ||
/* "check-typecast" -- the vs code formatter introduces violations of these */ | ||
], | ||
|
||
"one-line": [ | ||
"check-open-brace", | ||
"check-whitespace" | ||
/* the vs code formatter introduces violations of these | ||
"check-catch", | ||
"check-finally", | ||
"check-else" */ | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters