├── .gitignore
├── LICENSE
├── README.md
├── RTCSharp.sln
└── RTCSharp
├── App.config
├── App.xaml
├── App.xaml.cs
├── MainWindow.xaml
├── MainWindow.xaml.cs
├── OpenLibSys.cs
├── Properties
├── AssemblyInfo.cs
├── Resources.Designer.cs
├── Resources.resx
├── Settings.Designer.cs
└── Settings.settings
├── RTCSharp.csproj
├── RTCViewModel.cs
├── TextBoxLabel.xaml
├── TextBoxLabel.xaml.cs
├── app.manifest
└── dep
├── WinRing0.dll
├── WinRing0.sys
├── WinRing0x64.dll
├── WinRing0x64.sys
└── inpoutx64.dll
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.suo
8 | *.user
9 | *.userosscache
10 | *.sln.docstates
11 |
12 | # User-specific files (MonoDevelop/Xamarin Studio)
13 | *.userprefs
14 |
15 | # Build results
16 | [Dd]ebug/
17 | [Dd]ebugPublic/
18 | [Rr]elease/
19 | [Rr]eleases/
20 | x64/
21 | x86/
22 | bld/
23 | [Bb]in/
24 | [Oo]bj/
25 | [Ll]og/
26 |
27 | # Visual Studio 2015 cache/options directory
28 | .vs/
29 | # Uncomment if you have tasks that create the project's static files in wwwroot
30 | #wwwroot/
31 |
32 | # MSTest test Results
33 | [Tt]est[Rr]esult*/
34 | [Bb]uild[Ll]og.*
35 |
36 | # NUNIT
37 | *.VisualState.xml
38 | TestResult.xml
39 |
40 | # Build Results of an ATL Project
41 | [Dd]ebugPS/
42 | [Rr]eleasePS/
43 | dlldata.c
44 |
45 | # .NET Core
46 | project.lock.json
47 | project.fragment.lock.json
48 | artifacts/
49 | **/Properties/launchSettings.json
50 |
51 | *_i.c
52 | *_p.c
53 | *_i.h
54 | *.ilk
55 | *.meta
56 | *.obj
57 | *.pch
58 | *.pdb
59 | *.pgc
60 | *.pgd
61 | *.rsp
62 | *.sbr
63 | *.tlb
64 | *.tli
65 | *.tlh
66 | *.tmp
67 | *.tmp_proj
68 | *.log
69 | *.vspscc
70 | *.vssscc
71 | .builds
72 | *.pidb
73 | *.svclog
74 | *.scc
75 |
76 | # Chutzpah Test files
77 | _Chutzpah*
78 |
79 | # Visual C++ cache files
80 | ipch/
81 | *.aps
82 | *.ncb
83 | *.opendb
84 | *.opensdf
85 | *.sdf
86 | *.cachefile
87 | *.VC.db
88 | *.VC.VC.opendb
89 |
90 | # Visual Studio profiler
91 | *.psess
92 | *.vsp
93 | *.vspx
94 | *.sap
95 |
96 | # TFS 2012 Local Workspace
97 | $tf/
98 |
99 | # Guidance Automation Toolkit
100 | *.gpState
101 |
102 | # ReSharper is a .NET coding add-in
103 | _ReSharper*/
104 | *.[Rr]e[Ss]harper
105 | *.DotSettings.user
106 |
107 | # JustCode is a .NET coding add-in
108 | .JustCode
109 |
110 | # TeamCity is a build add-in
111 | _TeamCity*
112 |
113 | # DotCover is a Code Coverage Tool
114 | *.dotCover
115 |
116 | # Visual Studio code coverage results
117 | *.coverage
118 | *.coveragexml
119 |
120 | # NCrunch
121 | _NCrunch_*
122 | .*crunch*.local.xml
123 | nCrunchTemp_*
124 |
125 | # MightyMoose
126 | *.mm.*
127 | AutoTest.Net/
128 |
129 | # Web workbench (sass)
130 | .sass-cache/
131 |
132 | # Installshield output folder
133 | [Ee]xpress/
134 |
135 | # DocProject is a documentation generator add-in
136 | DocProject/buildhelp/
137 | DocProject/Help/*.HxT
138 | DocProject/Help/*.HxC
139 | DocProject/Help/*.hhc
140 | DocProject/Help/*.hhk
141 | DocProject/Help/*.hhp
142 | DocProject/Help/Html2
143 | DocProject/Help/html
144 |
145 | # Click-Once directory
146 | publish/
147 |
148 | # Publish Web Output
149 | *.[Pp]ublish.xml
150 | *.azurePubxml
151 | # TODO: Comment the next line if you want to checkin your web deploy settings
152 | # but database connection strings (with potential passwords) will be unencrypted
153 | *.pubxml
154 | *.publishproj
155 |
156 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
157 | # checkin your Azure Web App publish settings, but sensitive information contained
158 | # in these scripts will be unencrypted
159 | PublishScripts/
160 |
161 | # NuGet Packages
162 | *.nupkg
163 | # The packages folder can be ignored because of Package Restore
164 | **/packages/*
165 | # except build/, which is used as an MSBuild target.
166 | !**/packages/build/
167 | # Uncomment if necessary however generally it will be regenerated when needed
168 | #!**/packages/repositories.config
169 | # NuGet v3's project.json files produces more ignorable files
170 | *.nuget.props
171 | *.nuget.targets
172 |
173 | # Microsoft Azure Build Output
174 | csx/
175 | *.build.csdef
176 |
177 | # Microsoft Azure Emulator
178 | ecf/
179 | rcf/
180 |
181 | # Windows Store app package directories and files
182 | AppPackages/
183 | BundleArtifacts/
184 | Package.StoreAssociation.xml
185 | _pkginfo.txt
186 |
187 | # Visual Studio cache files
188 | # files ending in .cache can be ignored
189 | *.[Cc]ache
190 | # but keep track of directories ending in .cache
191 | !*.[Cc]ache/
192 |
193 | # Others
194 | ClientBin/
195 | ~$*
196 | *~
197 | *.dbmdl
198 | *.dbproj.schemaview
199 | *.jfm
200 | *.pfx
201 | *.publishsettings
202 | orleans.codegen.cs
203 |
204 | # Since there are multiple workflows, uncomment next line to ignore bower_components
205 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
206 | #bower_components/
207 |
208 | # RIA/Silverlight projects
209 | Generated_Code/
210 |
211 | # Backup & report files from converting an old project file
212 | # to a newer Visual Studio version. Backup files are not needed,
213 | # because we have git ;-)
214 | _UpgradeReport_Files/
215 | Backup*/
216 | UpgradeLog*.XML
217 | UpgradeLog*.htm
218 |
219 | # SQL Server files
220 | *.mdf
221 | *.ldf
222 | *.ndf
223 |
224 | # Business Intelligence projects
225 | *.rdl.data
226 | *.bim.layout
227 | *.bim_*.settings
228 |
229 | # Microsoft Fakes
230 | FakesAssemblies/
231 |
232 | # GhostDoc plugin setting file
233 | *.GhostDoc.xml
234 |
235 | # Node.js Tools for Visual Studio
236 | .ntvs_analysis.dat
237 | node_modules/
238 |
239 | # Typescript v1 declaration files
240 | typings/
241 |
242 | # Visual Studio 6 build log
243 | *.plg
244 |
245 | # Visual Studio 6 workspace options file
246 | *.opt
247 |
248 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
249 | *.vbw
250 |
251 | # Visual Studio LightSwitch build output
252 | **/*.HTMLClient/GeneratedArtifacts
253 | **/*.DesktopClient/GeneratedArtifacts
254 | **/*.DesktopClient/ModelManifest.xml
255 | **/*.Server/GeneratedArtifacts
256 | **/*.Server/ModelManifest.xml
257 | _Pvt_Extensions
258 |
259 | # Paket dependency manager
260 | .paket/paket.exe
261 | paket-files/
262 |
263 | # FAKE - F# Make
264 | .fake/
265 |
266 | # JetBrains Rider
267 | .idea/
268 | *.sln.iml
269 |
270 | # CodeRush
271 | .cr/
272 |
273 | # Python Tools for Visual Studio (PTVS)
274 | __pycache__/
275 | *.pyc
276 |
277 | # Cake - Uncomment if you are using it
278 | # tools/**
279 | # !tools/packages.config
280 |
281 | # Telerik's JustMock configuration file
282 | *.jmconfig
283 |
284 | # BizTalk build output
285 | *.btp.cs
286 | *.btm.cs
287 | *.odx.cs
288 | *.xsd.cs
289 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # RTCSharp
2 | Ryzen Timing Checker in C#
3 |
--------------------------------------------------------------------------------
/RTCSharp.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.27130.2010
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RTCSharp", "RTCSharp\RTCSharp.csproj", "{3F7E9E99-8A3E-4986-888B-B6E3D9658EF2}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {3F7E9E99-8A3E-4986-888B-B6E3D9658EF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {3F7E9E99-8A3E-4986-888B-B6E3D9658EF2}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {3F7E9E99-8A3E-4986-888B-B6E3D9658EF2}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {3F7E9E99-8A3E-4986-888B-B6E3D9658EF2}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {FFC8CFD4-83CF-40A4-BBF7-FC7994696E4D}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/RTCSharp/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/RTCSharp/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/RTCSharp/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Configuration;
4 | using System.Data;
5 | using System.Linq;
6 | using System.Threading.Tasks;
7 | using System.Windows;
8 |
9 | namespace RTCSharp
10 | {
11 | ///
12 | /// Interaction logic for App.xaml
13 | ///
14 | public partial class App : Application
15 | {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/RTCSharp/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
--------------------------------------------------------------------------------
/RTCSharp/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows;
3 |
4 | namespace RTCSharp
5 | {
6 | ///
7 | /// Interaction logic for MainWindow.xaml
8 | ///
9 | public partial class MainWindow : Window
10 | {
11 | private RTCViewModel model;
12 |
13 | public MainWindow()
14 | {
15 | InitializeComponent();
16 |
17 | try
18 | {
19 | model = new RTCViewModel();
20 | }
21 | catch (Exception exc)
22 | {
23 | MessageBox.Show(string.Format("Driver initialization error:\n{0}", exc.Message), "Fatal Error!");
24 | Close();
25 | }
26 |
27 | DataContext = model;
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/RTCSharp/OpenLibSys.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------------
2 | // Author : hiyohiyo
3 | // Mail : hiyohiyo@crystalmark.info
4 | // Web : http://openlibsys.org/
5 | // License : The modified BSD license
6 | //
7 | // Copyright 2007-2009 OpenLibSys.org. All rights reserved.
8 | //-----------------------------------------------------------------------------
9 | // This is support library for WinRing0 1.3.x.
10 |
11 | #define _PHYSICAL_MEMORY_SUPPORT
12 |
13 | using System;
14 | using System.Runtime.InteropServices;
15 |
16 | namespace OpenLibSys
17 | {
18 | public class Ols : IDisposable
19 | {
20 | const string dllNameX64 = "WinRing0x64.dll";
21 | const string dllName = "WinRing0.dll";
22 |
23 | // for this support library
24 | public enum OlsStatus
25 | {
26 | NO_ERROR = 0,
27 | DLL_NOT_FOUND = 1,
28 | DLL_INCORRECT_VERSION = 2,
29 | DLL_INITIALIZE_ERROR = 3,
30 | }
31 |
32 | // for WinRing0
33 | public enum OlsDllStatus
34 | {
35 | OLS_DLL_NO_ERROR = 0,
36 | OLS_DLL_UNSUPPORTED_PLATFORM = 1,
37 | OLS_DLL_DRIVER_NOT_LOADED = 2,
38 | OLS_DLL_DRIVER_NOT_FOUND = 3,
39 | OLS_DLL_DRIVER_UNLOADED = 4,
40 | OLS_DLL_DRIVER_NOT_LOADED_ON_NETWORK = 5,
41 | OLS_DLL_UNKNOWN_ERROR = 9
42 | }
43 |
44 | // for WinRing0
45 | public enum OlsDriverType
46 | {
47 | OLS_DRIVER_TYPE_UNKNOWN = 0,
48 | OLS_DRIVER_TYPE_WIN_9X = 1,
49 | OLS_DRIVER_TYPE_WIN_NT = 2,
50 | OLS_DRIVER_TYPE_WIN_NT4 = 3, // Obsolete
51 | OLS_DRIVER_TYPE_WIN_NT_X64 = 4,
52 | OLS_DRIVER_TYPE_WIN_NT_IA64 = 5
53 | }
54 |
55 | // for WinRing0
56 | public enum OlsErrorPci : uint
57 | {
58 | OLS_ERROR_PCI_BUS_NOT_EXIST = 0xE0000001,
59 | OLS_ERROR_PCI_NO_DEVICE = 0xE0000002,
60 | OLS_ERROR_PCI_WRITE_CONFIG = 0xE0000003,
61 | OLS_ERROR_PCI_READ_CONFIG = 0xE0000004
62 | }
63 |
64 | // Bus Number, Device Number and Function Number to PCI Device Address
65 | public uint PciBusDevFunc(uint bus, uint dev, uint func)
66 | {
67 | return ((bus & 0xFF) << 8) | ((dev & 0x1F) << 3) | (func & 7);
68 | }
69 |
70 | // PCI Device Address to Bus Number
71 | public uint PciGetBus(uint address)
72 | {
73 | return ((address >> 8) & 0xFF);
74 | }
75 |
76 | // PCI Device Address to Device Number
77 | public uint PciGetDev(uint address)
78 | {
79 | return ((address >> 3) & 0x1F);
80 | }
81 |
82 | // PCI Device Address to Function Number
83 | public uint PciGetFunc(uint address)
84 | {
85 | return (address & 7);
86 | }
87 |
88 | [DllImport("kernel32")]
89 | public extern static IntPtr LoadLibrary(string lpFileName);
90 |
91 | [DllImport("kernel32", SetLastError = true)]
92 | private static extern bool FreeLibrary(IntPtr hModule);
93 |
94 | [DllImport("kernel32", CharSet = CharSet.Ansi, SetLastError = true, ExactSpelling = false)]
95 | private static extern IntPtr GetProcAddress(IntPtr hModule, [MarshalAs(UnmanagedType.LPStr)] string lpProcName);
96 |
97 | private IntPtr module = IntPtr.Zero;
98 | private OlsStatus status = OlsStatus.NO_ERROR;
99 |
100 | public Ols()
101 | {
102 | string fileName;
103 |
104 | if (IntPtr.Size == 8)
105 | {
106 | fileName = dllNameX64;
107 | }
108 | else
109 | {
110 | fileName = dllName;
111 | }
112 |
113 | module = LoadLibrary(fileName);
114 | if (module == IntPtr.Zero)
115 | {
116 | status = OlsStatus.DLL_NOT_FOUND;
117 | }
118 | else
119 | {
120 | GetDllStatus = GetDelegate<_GetDllStatus>("GetDllStatus");
121 | GetDllVersion = GetDelegate<_GetDllVersion>("GetDllVersion");
122 | GetDriverVersion = GetDelegate<_GetDriverVersion>("GetDriverVersion");
123 | GetDriverType = GetDelegate<_GetDriverType>("GetDriverType");
124 |
125 | InitializeOls = GetDelegate<_InitializeOls>("InitializeOls");
126 | DeinitializeOls = GetDelegate<_DeinitializeOls>("DeinitializeOls");
127 |
128 | IsCpuid = GetDelegate<_IsCpuid>("IsCpuid");
129 | IsMsr = GetDelegate<_IsMsr>("IsMsr");
130 | IsTsc = GetDelegate<_IsTsc>("IsTsc");
131 | Hlt = GetDelegate<_Hlt>("Hlt");
132 | HltTx = GetDelegate<_HltTx>("HltTx");
133 | HltPx = GetDelegate<_HltPx>("HltPx");
134 | Rdmsr = GetDelegate<_Rdmsr>("Rdmsr");
135 | RdmsrTx = GetDelegate<_RdmsrTx>("RdmsrTx");
136 | RdmsrPx = GetDelegate<_RdmsrPx>("RdmsrPx");
137 | Wrmsr = GetDelegate<_Wrmsr>("Wrmsr");
138 | WrmsrTx = GetDelegate<_WrmsrTx>("WrmsrTx");
139 | WrmsrPx = GetDelegate<_WrmsrPx>("WrmsrPx");
140 | Rdpmc = GetDelegate<_Rdpmc>("Rdpmc");
141 | RdpmcTx = GetDelegate<_RdpmcTx>("RdpmcTx");
142 | RdpmcPx = GetDelegate<_RdpmcPx>("RdpmcPx");
143 | Cpuid = GetDelegate<_Cpuid>("Cpuid");
144 | CpuidTx = GetDelegate<_CpuidTx>("CpuidTx");
145 | CpuidPx = GetDelegate<_CpuidPx>("CpuidPx");
146 | Rdtsc = GetDelegate<_Rdtsc>("Rdtsc");
147 | RdtscTx = GetDelegate<_RdtscTx>("RdtscTx");
148 | RdtscPx = GetDelegate<_RdtscPx>("RdtscPx");
149 |
150 | ReadIoPortByte = GetDelegate<_ReadIoPortByte>("ReadIoPortByte");
151 | ReadIoPortWord = GetDelegate<_ReadIoPortWord>("ReadIoPortWord");
152 | ReadIoPortDword = GetDelegate<_ReadIoPortDword>("ReadIoPortDword");
153 | ReadIoPortByteEx = GetDelegate<_ReadIoPortByteEx>("ReadIoPortByteEx");
154 | ReadIoPortWordEx = GetDelegate<_ReadIoPortWordEx>("ReadIoPortWordEx");
155 | ReadIoPortDwordEx = GetDelegate<_ReadIoPortDwordEx>("ReadIoPortDwordEx");
156 |
157 | WriteIoPortByte = GetDelegate<_WriteIoPortByte>("WriteIoPortByte");
158 | WriteIoPortWord = GetDelegate<_WriteIoPortWord>("WriteIoPortWord");
159 | WriteIoPortDword = GetDelegate<_WriteIoPortDword>("WriteIoPortDword");
160 | WriteIoPortByteEx = GetDelegate<_WriteIoPortByteEx>("WriteIoPortByteEx");
161 | WriteIoPortWordEx = GetDelegate<_WriteIoPortWordEx>("WriteIoPortWordEx");
162 | WriteIoPortDwordEx = GetDelegate<_WriteIoPortDwordEx>("WriteIoPortDwordEx");
163 |
164 | SetPciMaxBusIndex = GetDelegate<_SetPciMaxBusIndex>("SetPciMaxBusIndex");
165 | ReadPciConfigByte = GetDelegate<_ReadPciConfigByte>("ReadPciConfigByte");
166 | ReadPciConfigWord = GetDelegate<_ReadPciConfigWord>("ReadPciConfigWord");
167 | ReadPciConfigDword = GetDelegate<_ReadPciConfigDword>("ReadPciConfigDword");
168 | ReadPciConfigByteEx = GetDelegate<_ReadPciConfigByteEx>("ReadPciConfigByteEx");
169 | ReadPciConfigWordEx = GetDelegate<_ReadPciConfigWordEx>("ReadPciConfigWordEx");
170 | ReadPciConfigDwordEx = GetDelegate<_ReadPciConfigDwordEx>("ReadPciConfigDwordEx");
171 | WritePciConfigByte = GetDelegate<_WritePciConfigByte>("WritePciConfigByte");
172 | WritePciConfigWord = GetDelegate<_WritePciConfigWord>("WritePciConfigWord");
173 | WritePciConfigDword = GetDelegate<_WritePciConfigDword>("WritePciConfigDword");
174 | WritePciConfigByteEx = GetDelegate<_WritePciConfigByteEx>("WritePciConfigByteEx");
175 | WritePciConfigWordEx = GetDelegate<_WritePciConfigWordEx>("WritePciConfigWordEx");
176 | WritePciConfigDwordEx = GetDelegate<_WritePciConfigDwordEx>("WritePciConfigDwordEx");
177 | FindPciDeviceById = GetDelegate<_FindPciDeviceById>("FindPciDeviceById");
178 | FindPciDeviceByClass = GetDelegate<_FindPciDeviceByClass>("FindPciDeviceByClass");
179 |
180 | #if _PHYSICAL_MEMORY_SUPPORT
181 | ReadDmiMemory = GetDelegate<_ReadDmiMemory>("ReadDmiMemory");
182 | ReadPhysicalMemory = GetDelegate<_ReadPhysicalMemory>("ReadPhysicalMemory");
183 | WritePhysicalMemory = GetDelegate<_WritePhysicalMemory>("WritePhysicalMemory");
184 | #endif
185 | if (!(
186 | GetDllStatus != null
187 | && GetDllVersion != null
188 | && GetDriverVersion != null
189 | && GetDriverType != null
190 | && InitializeOls != null
191 | && DeinitializeOls != null
192 | && IsCpuid != null
193 | && IsMsr != null
194 | && IsTsc != null
195 | && Hlt != null
196 | && HltTx != null
197 | && HltPx != null
198 | && Rdmsr != null
199 | && RdmsrTx != null
200 | && RdmsrPx != null
201 | && Wrmsr != null
202 | && WrmsrTx != null
203 | && WrmsrPx != null
204 | && Rdpmc != null
205 | && RdpmcTx != null
206 | && RdpmcPx != null
207 | && Cpuid != null
208 | && CpuidTx != null
209 | && CpuidPx != null
210 | && Rdtsc != null
211 | && RdtscTx != null
212 | && RdtscPx != null
213 | && ReadIoPortByte != null
214 | && ReadIoPortWord != null
215 | && ReadIoPortDword != null
216 | && ReadIoPortByteEx != null
217 | && ReadIoPortWordEx != null
218 | && ReadIoPortDwordEx != null
219 | && WriteIoPortByte != null
220 | && WriteIoPortWord != null
221 | && WriteIoPortDword != null
222 | && WriteIoPortByteEx != null
223 | && WriteIoPortWordEx != null
224 | && WriteIoPortDwordEx != null
225 | && SetPciMaxBusIndex != null
226 | && ReadPciConfigByte != null
227 | && ReadPciConfigWord != null
228 | && ReadPciConfigDword != null
229 | && ReadPciConfigByteEx != null
230 | && ReadPciConfigWordEx != null
231 | && ReadPciConfigDwordEx != null
232 | && WritePciConfigByte != null
233 | && WritePciConfigWord != null
234 | && WritePciConfigDword != null
235 | && WritePciConfigByteEx != null
236 | && WritePciConfigWordEx != null
237 | && WritePciConfigDwordEx != null
238 | && FindPciDeviceById != null
239 | && FindPciDeviceByClass != null
240 | #if _PHYSICAL_MEMORY_SUPPORT
241 | && ReadDmiMemory != null
242 | && ReadPhysicalMemory != null
243 | && WritePhysicalMemory != null
244 | #endif
245 | ))
246 | {
247 | status = OlsStatus.DLL_INCORRECT_VERSION;
248 | }
249 |
250 | if (InitializeOls() == 0)
251 | {
252 | status = OlsStatus.DLL_INITIALIZE_ERROR;
253 | }
254 | }
255 | }
256 |
257 | public OlsStatus Status => status;
258 |
259 | public OlsDllStatus DllStatus => (OlsDllStatus)GetDllStatus();
260 |
261 | public void Dispose()
262 | {
263 | if (module != IntPtr.Zero)
264 | {
265 | DeinitializeOls();
266 | FreeLibrary(module);
267 | module = IntPtr.Zero;
268 | }
269 | }
270 |
271 | public T GetDelegate(string procName)
272 | {
273 | IntPtr ptr = GetProcAddress(module, procName);
274 |
275 | if (ptr != IntPtr.Zero)
276 | return Marshal.GetDelegateForFunctionPointer(ptr);
277 |
278 | int result = Marshal.GetHRForLastWin32Error();
279 | throw Marshal.GetExceptionForHR(result);
280 | }
281 |
282 | //-----------------------------------------------------------------------------
283 | // DLL Information
284 | //-----------------------------------------------------------------------------
285 | public delegate uint _GetDllStatus();
286 | public delegate uint _GetDllVersion(ref byte major, ref byte minor, ref byte revision, ref byte release);
287 | public delegate uint _GetDriverVersion(ref byte major, ref byte minor, ref byte revision, ref byte release);
288 | public delegate uint _GetDriverType();
289 |
290 | public delegate int _InitializeOls();
291 | public delegate void _DeinitializeOls();
292 |
293 | public _GetDllStatus GetDllStatus = null;
294 | public _GetDllVersion GetDllVersion = null;
295 | public _GetDriverVersion GetDriverVersion = null;
296 | public _GetDriverType GetDriverType = null;
297 |
298 | public _InitializeOls InitializeOls = null;
299 | public _DeinitializeOls DeinitializeOls = null;
300 |
301 | //-----------------------------------------------------------------------------
302 | // CPU
303 | //-----------------------------------------------------------------------------
304 | public delegate int _IsCpuid();
305 | public delegate int _IsMsr();
306 | public delegate int _IsTsc();
307 | public delegate int _Hlt();
308 | public delegate int _HltTx(UIntPtr threadAffinityMask);
309 | public delegate int _HltPx(UIntPtr processAffinityMask);
310 | public delegate int _Rdmsr(uint index, ref uint eax, ref uint edx);
311 | public delegate int _RdmsrTx(uint index, ref uint eax, ref uint edx, UIntPtr threadAffinityMask);
312 | public delegate int _RdmsrPx(uint index, ref uint eax, ref uint edx, UIntPtr processAffinityMask);
313 | public delegate int _Wrmsr(uint index, uint eax, uint edx);
314 | public delegate int _WrmsrTx(uint index, uint eax, uint edx, UIntPtr threadAffinityMask);
315 | public delegate int _WrmsrPx(uint index, uint eax, uint edx, UIntPtr processAffinityMask);
316 | public delegate int _Rdpmc(uint index, ref uint eax, ref uint edx);
317 | public delegate int _RdpmcTx(uint index, ref uint eax, ref uint edx, UIntPtr threadAffinityMask);
318 | public delegate int _RdpmcPx(uint index, ref uint eax, ref uint edx, UIntPtr processAffinityMask);
319 | public delegate int _Cpuid(uint index, ref uint eax, ref uint ebx, ref uint ecx, ref uint edx);
320 | public delegate int _CpuidTx(uint index, ref uint eax, ref uint ebx, ref uint ecx, ref uint edx, UIntPtr threadAffinityMask);
321 | public delegate int _CpuidPx(uint index, ref uint eax, ref uint ebx, ref uint ecx, ref uint edx, UIntPtr processAffinityMask);
322 | public delegate int _Rdtsc(ref uint eax, ref uint edx);
323 | public delegate int _RdtscTx(ref uint eax, ref uint edx, UIntPtr threadAffinityMask);
324 | public delegate int _RdtscPx(ref uint eax, ref uint edx, UIntPtr processAffinityMask);
325 |
326 | public _IsCpuid IsCpuid = null;
327 | public _IsMsr IsMsr = null;
328 | public _IsTsc IsTsc = null;
329 | public _Hlt Hlt = null;
330 | public _HltTx HltTx = null;
331 | public _HltPx HltPx = null;
332 | public _Rdmsr Rdmsr = null;
333 | public _RdmsrTx RdmsrTx = null;
334 | public _RdmsrPx RdmsrPx = null;
335 | public _Wrmsr Wrmsr = null;
336 | public _WrmsrTx WrmsrTx = null;
337 | public _WrmsrPx WrmsrPx = null;
338 | public _Rdpmc Rdpmc = null;
339 | public _RdpmcTx RdpmcTx = null;
340 | public _RdpmcPx RdpmcPx = null;
341 | public _Cpuid Cpuid = null;
342 | public _CpuidTx CpuidTx = null;
343 | public _CpuidPx CpuidPx = null;
344 | public _Rdtsc Rdtsc = null;
345 | public _RdtscTx RdtscTx = null;
346 | public _RdtscPx RdtscPx = null;
347 |
348 | //-----------------------------------------------------------------------------
349 | // I/O
350 | //-----------------------------------------------------------------------------
351 | public delegate byte _ReadIoPortByte(ushort port);
352 | public delegate ushort _ReadIoPortWord(ushort port);
353 | public delegate uint _ReadIoPortDword(ushort port);
354 | public _ReadIoPortByte ReadIoPortByte;
355 | public _ReadIoPortWord ReadIoPortWord;
356 | public _ReadIoPortDword ReadIoPortDword;
357 |
358 | public delegate int _ReadIoPortByteEx(ushort port, ref byte value);
359 | public delegate int _ReadIoPortWordEx(ushort port, ref ushort value);
360 | public delegate int _ReadIoPortDwordEx(ushort port, ref uint value);
361 | public _ReadIoPortByteEx ReadIoPortByteEx;
362 | public _ReadIoPortWordEx ReadIoPortWordEx;
363 | public _ReadIoPortDwordEx ReadIoPortDwordEx;
364 |
365 | public delegate void _WriteIoPortByte(ushort port, byte value);
366 | public delegate void _WriteIoPortWord(ushort port, ushort value);
367 | public delegate void _WriteIoPortDword(ushort port, uint value);
368 | public _WriteIoPortByte WriteIoPortByte;
369 | public _WriteIoPortWord WriteIoPortWord;
370 | public _WriteIoPortDword WriteIoPortDword;
371 |
372 | public delegate int _WriteIoPortByteEx(ushort port, byte value);
373 | public delegate int _WriteIoPortWordEx(ushort port, ushort value);
374 | public delegate int _WriteIoPortDwordEx(ushort port, uint value);
375 | public _WriteIoPortByteEx WriteIoPortByteEx;
376 | public _WriteIoPortWordEx WriteIoPortWordEx;
377 | public _WriteIoPortDwordEx WriteIoPortDwordEx;
378 |
379 | //-----------------------------------------------------------------------------
380 | // PCI
381 | //-----------------------------------------------------------------------------
382 | public delegate void _SetPciMaxBusIndex(byte max);
383 | public _SetPciMaxBusIndex SetPciMaxBusIndex;
384 |
385 | public delegate byte _ReadPciConfigByte(uint pciAddress, byte regAddress);
386 | public delegate ushort _ReadPciConfigWord(uint pciAddress, byte regAddress);
387 | public delegate uint _ReadPciConfigDword(uint pciAddress, byte regAddress);
388 | public _ReadPciConfigByte ReadPciConfigByte;
389 | public _ReadPciConfigWord ReadPciConfigWord;
390 | public _ReadPciConfigDword ReadPciConfigDword;
391 |
392 | public delegate int _ReadPciConfigByteEx(uint pciAddress, uint regAddress, ref byte value);
393 | public delegate int _ReadPciConfigWordEx(uint pciAddress, uint regAddress, ref ushort value);
394 | public delegate int _ReadPciConfigDwordEx(uint pciAddress, uint regAddress, ref uint value);
395 | public _ReadPciConfigByteEx ReadPciConfigByteEx;
396 | public _ReadPciConfigWordEx ReadPciConfigWordEx;
397 | public _ReadPciConfigDwordEx ReadPciConfigDwordEx;
398 |
399 | public delegate void _WritePciConfigByte(uint pciAddress, byte regAddress, byte value);
400 | public delegate void _WritePciConfigWord(uint pciAddress, byte regAddress, ushort value);
401 | public delegate void _WritePciConfigDword(uint pciAddress, byte regAddress, uint value);
402 | public _WritePciConfigByte WritePciConfigByte;
403 | public _WritePciConfigWord WritePciConfigWord;
404 | public _WritePciConfigDword WritePciConfigDword;
405 |
406 | public delegate int _WritePciConfigByteEx(uint pciAddress, uint regAddress, byte value);
407 | public delegate int _WritePciConfigWordEx(uint pciAddress, uint regAddress, ushort value);
408 | public delegate int _WritePciConfigDwordEx(uint pciAddress, uint regAddress, uint value);
409 | public _WritePciConfigByteEx WritePciConfigByteEx;
410 | public _WritePciConfigWordEx WritePciConfigWordEx;
411 | public _WritePciConfigDwordEx WritePciConfigDwordEx;
412 |
413 | public delegate uint _FindPciDeviceById(ushort vendorId, ushort deviceId, byte index);
414 | public delegate uint _FindPciDeviceByClass(byte baseClass, byte subClass, byte programIf, byte index);
415 | public _FindPciDeviceById FindPciDeviceById;
416 | public _FindPciDeviceByClass FindPciDeviceByClass;
417 |
418 | //-----------------------------------------------------------------------------
419 | // Physical Memory (unsafe)
420 | //-----------------------------------------------------------------------------
421 | #if _PHYSICAL_MEMORY_SUPPORT
422 | public unsafe delegate uint _ReadDmiMemory(byte* buffer, uint count, uint unitSize);
423 | public _ReadDmiMemory ReadDmiMemory;
424 |
425 | public unsafe delegate uint _ReadPhysicalMemory(UIntPtr address, byte* buffer, uint count, uint unitSize);
426 | public unsafe delegate uint _WritePhysicalMemory(UIntPtr address, byte* buffer, uint count, uint unitSize);
427 |
428 | public _ReadPhysicalMemory ReadPhysicalMemory;
429 | public _WritePhysicalMemory WritePhysicalMemory;
430 |
431 | public uint GetPhysLong(UIntPtr address)
432 | {
433 | unsafe
434 | {
435 | byte* buf = stackalloc byte[4];
436 |
437 | //Console.ReadKey();
438 |
439 | uint res2 = 0;
440 |
441 | var res = ReadPhysicalMemory(address, (byte*)&res2, 1, 4);
442 | //var res = ReadPhysicalMemory(address, buf, 1, 4);
443 |
444 | int error = Marshal.GetLastWin32Error();
445 |
446 | return res2;
447 | //return *(uint*)buf;
448 | }
449 | }
450 |
451 | [DllImport("inpoutx64.dll")]
452 | [return: MarshalAs(UnmanagedType.Bool)]
453 | private static extern bool IsInpOutDriverOpen();
454 |
455 | [DllImport("inpoutx64.dll")]
456 | [return: MarshalAs(UnmanagedType.Bool)]
457 | private static extern bool GetPhysLong(UIntPtr memAddress, out uint Data);
458 |
459 | public static bool IsInpOutDriverOpen2()
460 | {
461 | return IsInpOutDriverOpen();
462 | }
463 |
464 | public static unsafe uint GetPhysLong2(UIntPtr memAddress)
465 | {
466 | uint num;
467 | if (GetPhysLong(memAddress, out num))
468 | return num;
469 | return 0;
470 | }
471 | #endif
472 | }
473 | }
474 |
--------------------------------------------------------------------------------
/RTCSharp/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Windows;
6 |
7 | // General Information about an assembly is controlled through the following
8 | // set of attributes. Change these attribute values to modify the information
9 | // associated with an assembly.
10 | [assembly: AssemblyTitle("RTCSharp")]
11 | [assembly: AssemblyDescription("")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyCompany("")]
14 | [assembly: AssemblyProduct("RTCSharp")]
15 | [assembly: AssemblyCopyright("Copyright © TOM_RUS 2017")]
16 | [assembly: AssemblyTrademark("")]
17 | [assembly: AssemblyCulture("")]
18 |
19 | // Setting ComVisible to false makes the types in this assembly not visible
20 | // to COM components. If you need to access a type in this assembly from
21 | // COM, set the ComVisible attribute to true on that type.
22 | [assembly: ComVisible(false)]
23 |
24 | //In order to begin building localizable applications, set
25 | //CultureYouAreCodingWith in your .csproj file
26 | //inside a . For example, if you are using US english
27 | //in your source files, set the to en-US. Then uncomment
28 | //the NeutralResourceLanguage attribute below. Update the "en-US" in
29 | //the line below to match the UICulture setting in the project file.
30 |
31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32 |
33 |
34 | [assembly: ThemeInfo(
35 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
36 | //(used if a resource is not found in the page,
37 | // or application resource dictionaries)
38 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
39 | //(used if a resource is not found in the page,
40 | // app, or any theme specific resource dictionaries)
41 | )]
42 |
43 |
44 | // Version information for an assembly consists of the following four values:
45 | //
46 | // Major Version
47 | // Minor Version
48 | // Build Number
49 | // Revision
50 | //
51 | // You can specify all the values or you can default the Build and Revision Numbers
52 | // by using the '*' as shown below:
53 | // [assembly: AssemblyVersion("1.0.*")]
54 | [assembly: AssemblyVersion("1.0.0.0")]
55 | [assembly: AssemblyFileVersion("1.0.0.0")]
56 |
--------------------------------------------------------------------------------
/RTCSharp/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace RTCSharp.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("RTCSharp.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/RTCSharp/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | text/microsoft-resx
107 |
108 |
109 | 2.0
110 |
111 |
112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
113 |
114 |
115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
--------------------------------------------------------------------------------
/RTCSharp/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace RTCSharp.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.5.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/RTCSharp/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/RTCSharp/RTCSharp.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {3F7E9E99-8A3E-4986-888B-B6E3D9658EF2}
8 | Exe
9 | RTCSharp
10 | RTCSharp
11 | v4.5.2
12 | 512
13 | {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
14 | 4
15 | true
16 |
17 |
18 |
19 | AnyCPU
20 | true
21 | full
22 | false
23 | bin\Debug\
24 | DEBUG;TRACE
25 | prompt
26 | 4
27 | false
28 | true
29 |
30 |
31 | AnyCPU
32 | pdbonly
33 | true
34 | bin\Release\
35 | TRACE
36 | prompt
37 | 4
38 | false
39 | true
40 |
41 |
42 | app.manifest
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 | 4.0
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 | MSBuild:Compile
66 | Designer
67 |
68 |
69 |
70 |
71 | TextBoxLabel.xaml
72 |
73 |
74 | MSBuild:Compile
75 | Designer
76 |
77 |
78 | App.xaml
79 | Code
80 |
81 |
82 | MainWindow.xaml
83 | Code
84 |
85 |
86 | Designer
87 | MSBuild:Compile
88 |
89 |
90 |
91 |
92 | Code
93 |
94 |
95 | True
96 | True
97 | Resources.resx
98 |
99 |
100 | True
101 | Settings.settings
102 | True
103 |
104 |
105 | ResXFileCodeGenerator
106 | Resources.Designer.cs
107 |
108 |
109 |
110 | SettingsSingleFileGenerator
111 | Settings.Designer.cs
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 | xcopy /Y "$(ProjectDir)dep\*.*" "$(TargetDir)"
120 |
121 |
--------------------------------------------------------------------------------
/RTCSharp/RTCViewModel.cs:
--------------------------------------------------------------------------------
1 | using OpenLibSys;
2 | using System;
3 | using System.Threading;
4 |
5 | namespace RTCSharp
6 | {
7 | public class RTCViewModel
8 | {
9 | private Ols ols;
10 |
11 | private const bool SMUSlow = false;
12 | private int SMUDelay = SMUSlow ? 60 : 10;
13 |
14 | public unsafe RTCViewModel()
15 | {
16 | ols = new Ols();
17 |
18 | Ols.OlsStatus status = ols.Status;
19 |
20 | Ols.OlsDllStatus dllStatus = ols.DllStatus;
21 |
22 | if (status != Ols.OlsStatus.NO_ERROR)
23 | throw new ApplicationException(string.Format("OlsStatus error:\nstatus {0}\ndllStatus {1}", status, dllStatus));
24 |
25 | if (dllStatus != Ols.OlsDllStatus.OLS_DLL_NO_ERROR)
26 | throw new ApplicationException(string.Format("OlsDllStatus error:\nstatus {0}\ndllStatus {1}", status, dllStatus));
27 |
28 | uint eax = 0, ebx = 0, ecx = 0, edx = 0;
29 |
30 | ols.CpuidPx(0x80000001, ref eax, ref ebx, ref ecx, ref edx, (UIntPtr)0x01);
31 |
32 | uint CPUFMS = eax & 0xFFFF00;
33 |
34 | if (CPUFMS != 0x00800F00 && CPUFMS != 0x00810F00 && CPUFMS != 0x00870F00)
35 | {
36 | ols.Dispose();
37 | throw new ApplicationException("The software only supports RV & ZP based Ryzen CPUs");
38 | }
39 |
40 | uint SMUORG = ols.ReadPciConfigDword(0x00, 0xB8);
41 | Thread.Sleep(SMUDelay);
42 |
43 | uint someOffset = ReadDword(0x50200) == 0x300 ? 0x100000u : 0x0u;
44 |
45 | // Read data
46 | uint BGS = ReadDword(0x00050058 + someOffset);
47 | uint BGSA = ReadDword(0x000500D0 + someOffset);
48 |
49 | uint DramConfiguration = ReadDword(0x00050200 + someOffset);
50 |
51 | uint DramTiming1 = ReadDword(0x00050204 + someOffset);
52 | uint DramTiming2 = ReadDword(0x00050208 + someOffset);
53 | uint DramTiming3 = ReadDword(0x0005020C + someOffset);
54 | uint DramTiming4 = ReadDword(0x00050210 + someOffset);
55 | uint DramTiming5 = ReadDword(0x00050214 + someOffset);
56 | uint DramTiming6 = ReadDword(0x00050218 + someOffset);
57 | uint DramTiming7 = ReadDword(0x0005021C + someOffset);
58 | uint DramTiming8 = ReadDword(0x00050220 + someOffset);
59 | uint DramTiming9 = ReadDword(0x00050224 + someOffset);
60 | uint DramTiming10 = ReadDword(0x00050228 + someOffset);
61 | // 11?
62 | uint DramTiming12 = ReadDword(0x00050230 + someOffset);
63 | uint DramTiming13 = ReadDword(0x00050234 + someOffset);
64 | uint DramTiming20 = ReadDword(0x00050250 + someOffset);
65 | uint DramTiming21 = ReadDword(0x00050254 + someOffset);
66 | uint DramTiming22 = ReadDword(0x00050258 + someOffset);
67 |
68 | uint tRFCTiming0 = ReadDword(0x00050260 + someOffset);
69 | uint tRFCTiming1 = ReadDword(0x00050264 + someOffset);
70 |
71 | uint tSTAGTiming0 = ReadDword(0x00050270 + someOffset);
72 | uint tSTAGTiming1 = ReadDword(0x00050274 + someOffset);
73 |
74 | uint DramTiming35 = ReadDword(0x0005028C + someOffset);
75 |
76 | uint tRFCTiming, tSTAGTiming;
77 |
78 | if (tRFCTiming0 == tRFCTiming1) // Checks if 2DPC is used or if tRFC has been manually set.
79 | {
80 | tRFCTiming = tRFCTiming0;
81 | tSTAGTiming = tSTAGTiming0;
82 | }
83 | else if (tRFCTiming0 == 0x21060138) // Checks if DIMM0 tRFC is set to AGESA defaults, meaning DIMM1 is populated.
84 | {
85 | tRFCTiming = tRFCTiming1;
86 | tSTAGTiming = tSTAGTiming1;
87 | }
88 | else
89 | {
90 | tRFCTiming = tRFCTiming0;
91 | tSTAGTiming = tSTAGTiming0;
92 | }
93 |
94 | this.BGS = BGS != 0x87654321;
95 | this.BGSA = BGSA == 0x111107F1;
96 |
97 | Preamble2T = (DramConfiguration & 0x1000) >> 12 != 0;
98 | GDM = (DramConfiguration & 0x800) >> 11 != 0;
99 | Cmd2T = (DramConfiguration & 0x400) >> 10 != 0;
100 |
101 | MEMCLK = DramConfiguration & 0x7F;
102 | float MEMCLKTRxx = MEMCLK / 3.0f * 100;
103 | MEMCLK = (uint)(MEMCLK / 3.0f * 200);
104 |
105 | tRCDWR = (DramTiming1 & 0x3F000000) >> 24;
106 | tRCDRD = (DramTiming1 & 0x3F0000) >> 16;
107 | tRAS = (DramTiming1 & 0x7F00) >> 8;
108 | tCL = DramTiming1 & 0x3F;
109 |
110 | tRPPB = (DramTiming2 & 0x3F000000) >> 24;
111 | tRP = (DramTiming2 & 0x3F0000) >> 16;
112 | tRCPB = (DramTiming2 & 0xFF00) >> 8;
113 | tRC = DramTiming2 & 0xFF;
114 |
115 | tRTP = (DramTiming3 & 0x1F000000) >> 24;
116 | tRRDDLR = (DramTiming3 & 0x1F0000) >> 16;
117 | tRRDL = (DramTiming3 & 0x1F00) >> 8;
118 | tRRDS = DramTiming3 & 0x1F;
119 |
120 | tFAWDLR = (DramTiming4 & 0x7E000000) >> 25;
121 | tFAWSLR = (DramTiming4 & 0xFC0000) >> 18;
122 | tFAW = DramTiming4 & 0x7F;
123 |
124 | tWTRL = (DramTiming5 & 0x7F0000) >> 16;
125 | tWTRS = (DramTiming5 & 0x1F00) >> 8;
126 | tCWL = DramTiming5 & 0x3F;
127 |
128 | tWR = DramTiming6 & 0x7F;
129 |
130 | tRCPage = (DramTiming7 & 0xFFF00000) >> 20;
131 |
132 | tRDRDBAN = (DramTiming8 & 0xC0000000) >> 30; // 0 - Disabled, 1 - Ban 2, 2 - Ban 2&3
133 | tRDRDSCL = (DramTiming8 & 0x3F000000) >> 24;
134 | tRDRDSCDLR = (DramTiming8 & 0xF00000) >> 20;
135 | tRDRDSC = (DramTiming8 & 0xF0000) >> 16;
136 | tRDRDSD = (DramTiming8 & 0xF00) >> 8;
137 | tRDRDDD = DramTiming8 & 0xF;
138 |
139 | tWRWRBAN = (DramTiming9 & 0xC0000000) >> 30; // 0 - Disabled, 1 - Ban 2, 2 - Ban 2&3
140 | tWRWRSCL = (DramTiming9 & 0x3F000000) >> 24;
141 | tWRWRSCDLR = (DramTiming9 & 0xF00000) >> 20;
142 | tWRWRSC = (DramTiming9 & 0xF0000) >> 16;
143 | tWRWRSD = (DramTiming9 & 0xF00) >> 8;
144 | tWRWRDD = DramTiming9 & 0xF;
145 |
146 | tWRRDSCDLR = (DramTiming10 & 0x1F0000) >> 16;
147 | tRDWR = (DramTiming10 & 0x1F00) >> 8;
148 | tWRRD = DramTiming10 & 0xF;
149 |
150 | tREF = DramTiming12 & 0xFFFF;
151 | tREFCT = (uint)(1000 / MEMCLKTRxx * tREF);
152 |
153 | tMODPDA = (DramTiming13 & 0x3F000000) >> 24;
154 | tMRDPDA = (DramTiming13 & 0x3F0000) >> 16;
155 | tMOD = (DramTiming13 & 0x3F00) >> 8;
156 | tMRD = DramTiming13 & 0x3F;
157 |
158 | tSTAG = (DramTiming20 & 0xFF0000) >> 16;
159 |
160 | tCKE = (DramTiming21 & 0x1F000000) >> 24;
161 |
162 | tPHYWRD = (DramTiming22 & 0x7000000) >> 24;
163 | tPHYRDLAT = (DramTiming22 & 0x3F0000) >> 16;
164 | tPHYWRLAT = (DramTiming22 & 0x1F00) >> 8;
165 | tRDDATA = DramTiming22 & 0x7F;
166 |
167 | tRFC4 = (tRFCTiming & 0xFFC00000) >> 22;
168 | tRFC4CT = (uint)(1000 / MEMCLKTRxx * tRFC4);
169 |
170 | tRFC2 = (tRFCTiming & 0x3FF800) >> 11;
171 | tRFC2CT = (uint)(1000 / MEMCLKTRxx * tRFC2);
172 |
173 | tRFC = tRFCTiming & 0x7FF;
174 | tRFCCT = (uint)(1000 / MEMCLKTRxx * tRFC);
175 |
176 | tSTAG4LR = (tSTAGTiming & 0x1FF00000) >> 20; // 0 - Disabled
177 |
178 | tSTAG2LR = (tSTAGTiming & 0x7FC00) >> 10; // 0 - Disabled
179 |
180 | tSTAGLR = tSTAGTiming & 0x1FF; // 0 - Disabled
181 |
182 | tWRMPR = (DramTiming35 & 0x3F000000) >> 24;
183 |
184 | ols.WritePciConfigDword(0x00, 0xB8, 0x3B10528);
185 | ols.WritePciConfigDword(0x00, 0xBC, 0x02);
186 | ols.WritePciConfigDword(0x00, 0xB8, 0x3B10598);
187 | uint somethingVersion = ols.ReadPciConfigDword(0, 0xBC); // some agesa version? 0x195200, 0x195300...
188 |
189 | uint eax2 = 0, ebx2 = 0, ecx2 = 0, edx2 = 0;
190 | ols.CpuidPx(0x80000001, ref eax2, ref ebx2, ref ecx2, ref edx2, (UIntPtr)0x01);
191 | eax2 &= 0xFFFF00;
192 | ebx2 = (ebx2 & 0xF0000000) >> 28;
193 |
194 | uint someOffset2 = 0;
195 |
196 | if (ebx2 == 7)
197 | someOffset2 = 0x2180;
198 | else if (ebx2 == 2)
199 | someOffset2 = 0x100;
200 | else
201 | someOffset2 = 0x00;
202 |
203 | if (eax2 == 0x810F00) // Raven Ridge?
204 | {
205 | this.ProcODT = "N/A";
206 | this.RttNom = "N/A";
207 | this.RttWr = "N/A";
208 | this.RttPark = "N/A";
209 | this.AddrCmdSetup = "N/A";
210 | this.CsOdtSetup = "N/A";
211 | this.CkeSetup = "N/A";
212 | this.ClkDrvStrength = "N/A";
213 | this.AddrCmdDrvStrength = "N/A";
214 | this.CsOdtDrvStrength = "N/A";
215 | this.CkeDrvStrength = "N/A";
216 | }
217 | else if (false/*eax2 == 0x800F00 && somethingVersion < 0x195300*/) // Zeppelin? & some version < X
218 | {
219 | this.ProcODT = "N/A";
220 | this.RttNom = "N/A";
221 | this.RttWr = "N/A";
222 | this.RttPark = "N/A";
223 | this.AddrCmdSetup = "N/A";
224 | this.CsOdtSetup = "N/A";
225 | this.CkeSetup = "N/A";
226 | this.ClkDrvStrength = "N/A";
227 | this.AddrCmdDrvStrength = "N/A";
228 | this.CsOdtDrvStrength = "N/A";
229 | this.CkeDrvStrength = "N/A";
230 | }
231 | else if (ebx2 == 1 || ebx2 == 3 || ebx2 == 4)
232 | {
233 | this.ProcODT = "N/A";
234 | this.RttNom = "N/A";
235 | this.RttWr = "N/A";
236 | this.RttPark = "N/A";
237 | this.AddrCmdSetup = "N/A";
238 | this.CsOdtSetup = "N/A";
239 | this.CkeSetup = "N/A";
240 | this.ClkDrvStrength = "N/A";
241 | this.AddrCmdDrvStrength = "N/A";
242 | this.CsOdtDrvStrength = "N/A";
243 | this.CkeDrvStrength = "N/A";
244 | }
245 | else
246 | {
247 | ols.WritePciConfigDword(0x00, 0xB8, 0x3B10528);
248 | ols.WritePciConfigDword(0x00, 0xBC, 0x2C);
249 | //ols.WritePciConfigDword(0x00, 0xBC, 0x25);
250 | ols.WritePciConfigDword(0x00, 0xB8, 0x3B1059C);
251 | uint x = ols.ReadPciConfigDword(0, 0xBC);
252 | ulong num26 = x - someOffset2;
253 |
254 | Ols.IsInpOutDriverOpen2();
255 |
256 | //uint num27 = 0xB1;
257 | //uint physLong1 = Ols.GetPhysLong2(new UIntPtr(num26 + num27));
258 | //uint num28 = 0xB5;
259 | //uint physLong2 = Ols.GetPhysLong2(new UIntPtr(num26 + num28));
260 | //uint num29 = 0xBA;
261 | //uint physLong3 = Ols.GetPhysLong2(new UIntPtr(num26 + num29));
262 |
263 | uint num27 = 0xB1;
264 | uint physLong1 = ols.GetPhysLong(new UIntPtr(num26 + num27));
265 | uint num28 = 0xB5;
266 | uint physLong2 = ols.GetPhysLong(new UIntPtr(num26 + num28));
267 | uint num29 = 0xBA;
268 | uint physLong3 = ols.GetPhysLong(new UIntPtr(num26 + num29));
269 |
270 | uint addrCmdSetup = physLong1 & 0xFF;
271 | // addrCmdSetup / 32, addrCmdSetup % 32
272 | switch (addrCmdSetup)
273 | {
274 | case 0:
275 | this.AddrCmdSetup = "0/0";
276 | break;
277 | case 1:
278 | this.AddrCmdSetup = "0/1";
279 | break;
280 | case 2:
281 | this.AddrCmdSetup = "0/2";
282 | break;
283 | case 3:
284 | this.AddrCmdSetup = "0/3";
285 | break;
286 | case 4:
287 | this.AddrCmdSetup = "0/4";
288 | break;
289 | case 5:
290 | this.AddrCmdSetup = "0/5";
291 | break;
292 | case 6:
293 | this.AddrCmdSetup = "0/6";
294 | break;
295 | case 7:
296 | this.AddrCmdSetup = "0/7";
297 | break;
298 | case 8:
299 | this.AddrCmdSetup = "0/8";
300 | break;
301 | case 9:
302 | this.AddrCmdSetup = "0/9";
303 | break;
304 | case 10:
305 | this.AddrCmdSetup = "0/10";
306 | break;
307 | case 11:
308 | this.AddrCmdSetup = "0/11";
309 | break;
310 | case 12:
311 | this.AddrCmdSetup = "0/12";
312 | break;
313 | case 13:
314 | this.AddrCmdSetup = "0/13";
315 | break;
316 | case 14:
317 | this.AddrCmdSetup = "0/14";
318 | break;
319 | case 15:
320 | this.AddrCmdSetup = "0/15";
321 | break;
322 | case 16:
323 | this.AddrCmdSetup = "0/16";
324 | break;
325 | case 17:
326 | this.AddrCmdSetup = "0/17";
327 | break;
328 | case 18:
329 | this.AddrCmdSetup = "0/18";
330 | break;
331 | case 19:
332 | this.AddrCmdSetup = "0/19";
333 | break;
334 | case 20:
335 | this.AddrCmdSetup = "0/20";
336 | break;
337 | case 21:
338 | this.AddrCmdSetup = "0/21";
339 | break;
340 | case 22:
341 | this.AddrCmdSetup = "0/22";
342 | break;
343 | case 23:
344 | this.AddrCmdSetup = "0/23";
345 | break;
346 | case 24:
347 | this.AddrCmdSetup = "0/24";
348 | break;
349 | case 25:
350 | this.AddrCmdSetup = "0/25";
351 | break;
352 | case 26:
353 | this.AddrCmdSetup = "0/26";
354 | break;
355 | case 27:
356 | this.AddrCmdSetup = "0/27";
357 | break;
358 | case 28:
359 | this.AddrCmdSetup = "0/28";
360 | break;
361 | case 29:
362 | this.AddrCmdSetup = "0/29";
363 | break;
364 | case 30:
365 | this.AddrCmdSetup = "0/30";
366 | break;
367 | case 31:
368 | this.AddrCmdSetup = "0/31";
369 | break;
370 | case 32:
371 | this.AddrCmdSetup = "1/0";
372 | break;
373 | case 33:
374 | this.AddrCmdSetup = "1/1";
375 | break;
376 | case 34:
377 | this.AddrCmdSetup = "1/2";
378 | break;
379 | case 35:
380 | this.AddrCmdSetup = "1/3";
381 | break;
382 | case 36:
383 | this.AddrCmdSetup = "1/4";
384 | break;
385 | case 37:
386 | this.AddrCmdSetup = "1/5";
387 | break;
388 | case 38:
389 | this.AddrCmdSetup = "1/6";
390 | break;
391 | case 39:
392 | this.AddrCmdSetup = "1/7";
393 | break;
394 | case 40:
395 | this.AddrCmdSetup = "1/8";
396 | break;
397 | case 41:
398 | this.AddrCmdSetup = "1/9";
399 | break;
400 | case 42:
401 | this.AddrCmdSetup = "1/10";
402 | break;
403 | case 43:
404 | this.AddrCmdSetup = "1/11";
405 | break;
406 | case 44:
407 | this.AddrCmdSetup = "1/12";
408 | break;
409 | case 45:
410 | this.AddrCmdSetup = "1/13";
411 | break;
412 | case 46:
413 | this.AddrCmdSetup = "1/14";
414 | break;
415 | case 47:
416 | this.AddrCmdSetup = "1/15";
417 | break;
418 | case 48:
419 | this.AddrCmdSetup = "1/16";
420 | break;
421 | case 49:
422 | this.AddrCmdSetup = "1/17";
423 | break;
424 | case 50:
425 | this.AddrCmdSetup = "1/18";
426 | break;
427 | case 51:
428 | this.AddrCmdSetup = "1/19";
429 | break;
430 | case 52:
431 | this.AddrCmdSetup = "1/20";
432 | break;
433 | case 53:
434 | this.AddrCmdSetup = "1/21";
435 | break;
436 | case 54:
437 | this.AddrCmdSetup = "1/22";
438 | break;
439 | case 55:
440 | this.AddrCmdSetup = "1/23";
441 | break;
442 | case 56:
443 | this.AddrCmdSetup = "1/24";
444 | break;
445 | case 57:
446 | this.AddrCmdSetup = "1/25";
447 | break;
448 | case 58:
449 | this.AddrCmdSetup = "1/26";
450 | break;
451 | case 59:
452 | this.AddrCmdSetup = "1/27";
453 | break;
454 | case 60:
455 | this.AddrCmdSetup = "1/28";
456 | break;
457 | case 61:
458 | this.AddrCmdSetup = "1/29";
459 | break;
460 | case 62:
461 | this.AddrCmdSetup = "1/30";
462 | break;
463 | case 63:
464 | this.AddrCmdSetup = "1/31";
465 | break;
466 | }
467 |
468 | uint csOdtSetup = (physLong1 & 0xFF00) >> 8;
469 | // csOdtSetup / 32, csOdtSetup % 32
470 | switch (csOdtSetup)
471 | {
472 | case 0:
473 | this.CsOdtSetup = "0/0";
474 | break;
475 | case 1:
476 | this.CsOdtSetup = "0/1";
477 | break;
478 | case 2:
479 | this.CsOdtSetup = "0/2";
480 | break;
481 | case 3:
482 | this.CsOdtSetup = "0/3";
483 | break;
484 | case 4:
485 | this.CsOdtSetup = "0/4";
486 | break;
487 | case 5:
488 | this.CsOdtSetup = "0/5";
489 | break;
490 | case 6:
491 | this.CsOdtSetup = "0/6";
492 | break;
493 | case 7:
494 | this.CsOdtSetup = "0/7";
495 | break;
496 | case 8:
497 | this.CsOdtSetup = "0/8";
498 | break;
499 | case 9:
500 | this.CsOdtSetup = "0/9";
501 | break;
502 | case 10:
503 | this.CsOdtSetup = "0/10";
504 | break;
505 | case 11:
506 | this.CsOdtSetup = "0/11";
507 | break;
508 | case 12:
509 | this.CsOdtSetup = "0/12";
510 | break;
511 | case 13:
512 | this.CsOdtSetup = "0/13";
513 | break;
514 | case 14:
515 | this.CsOdtSetup = "0/14";
516 | break;
517 | case 15:
518 | this.CsOdtSetup = "0/15";
519 | break;
520 | case 16:
521 | this.CsOdtSetup = "0/16";
522 | break;
523 | case 17:
524 | this.CsOdtSetup = "0/17";
525 | break;
526 | case 18:
527 | this.CsOdtSetup = "0/18";
528 | break;
529 | case 19:
530 | this.CsOdtSetup = "0/19";
531 | break;
532 | case 20:
533 | this.CsOdtSetup = "0/20";
534 | break;
535 | case 21:
536 | this.CsOdtSetup = "0/21";
537 | break;
538 | case 22:
539 | this.CsOdtSetup = "0/22";
540 | break;
541 | case 23:
542 | this.CsOdtSetup = "0/23";
543 | break;
544 | case 24:
545 | this.CsOdtSetup = "0/24";
546 | break;
547 | case 25:
548 | this.CsOdtSetup = "0/25";
549 | break;
550 | case 26:
551 | this.CsOdtSetup = "0/26";
552 | break;
553 | case 27:
554 | this.CsOdtSetup = "0/27";
555 | break;
556 | case 28:
557 | this.CsOdtSetup = "0/28";
558 | break;
559 | case 29:
560 | this.CsOdtSetup = "0/29";
561 | break;
562 | case 30:
563 | this.CsOdtSetup = "0/30";
564 | break;
565 | case 31:
566 | this.CsOdtSetup = "0/31";
567 | break;
568 | case 32:
569 | this.CsOdtSetup = "1/0";
570 | break;
571 | case 33:
572 | this.CsOdtSetup = "1/1";
573 | break;
574 | case 34:
575 | this.CsOdtSetup = "1/2";
576 | break;
577 | case 35:
578 | this.CsOdtSetup = "1/3";
579 | break;
580 | case 36:
581 | this.CsOdtSetup = "1/4";
582 | break;
583 | case 37:
584 | this.CsOdtSetup = "1/5";
585 | break;
586 | case 38:
587 | this.CsOdtSetup = "1/6";
588 | break;
589 | case 39:
590 | this.CsOdtSetup = "1/7";
591 | break;
592 | case 40:
593 | this.CsOdtSetup = "1/8";
594 | break;
595 | case 41:
596 | this.CsOdtSetup = "1/9";
597 | break;
598 | case 42:
599 | this.CsOdtSetup = "1/10";
600 | break;
601 | case 43:
602 | this.CsOdtSetup = "1/11";
603 | break;
604 | case 44:
605 | this.CsOdtSetup = "1/12";
606 | break;
607 | case 45:
608 | this.CsOdtSetup = "1/13";
609 | break;
610 | case 46:
611 | this.CsOdtSetup = "1/14";
612 | break;
613 | case 47:
614 | this.CsOdtSetup = "1/15";
615 | break;
616 | case 48:
617 | this.CsOdtSetup = "1/16";
618 | break;
619 | case 49:
620 | this.CsOdtSetup = "1/17";
621 | break;
622 | case 50:
623 | this.CsOdtSetup = "1/18";
624 | break;
625 | case 51:
626 | this.CsOdtSetup = "1/19";
627 | break;
628 | case 52:
629 | this.CsOdtSetup = "1/20";
630 | break;
631 | case 53:
632 | this.CsOdtSetup = "1/21";
633 | break;
634 | case 54:
635 | this.CsOdtSetup = "1/22";
636 | break;
637 | case 55:
638 | this.CsOdtSetup = "1/23";
639 | break;
640 | case 56:
641 | this.CsOdtSetup = "1/24";
642 | break;
643 | case 57:
644 | this.CsOdtSetup = "1/25";
645 | break;
646 | case 58:
647 | this.CsOdtSetup = "1/26";
648 | break;
649 | case 59:
650 | this.CsOdtSetup = "1/27";
651 | break;
652 | case 60:
653 | this.CsOdtSetup = "1/28";
654 | break;
655 | case 61:
656 | this.CsOdtSetup = "1/29";
657 | break;
658 | case 62:
659 | this.CsOdtSetup = "1/30";
660 | break;
661 | case 63:
662 | this.CsOdtSetup = "1/31";
663 | break;
664 | }
665 |
666 | uint ckeSetup = (physLong1 & 0xFF0000) >> 16;
667 | // ckeSetup / 32, ckeSetup % 32
668 | switch (ckeSetup)
669 | {
670 | case 0:
671 | this.CkeSetup = "0/0";
672 | break;
673 | case 1:
674 | this.CkeSetup = "0/1";
675 | break;
676 | case 2:
677 | this.CkeSetup = "0/2";
678 | break;
679 | case 3:
680 | this.CkeSetup = "0/3";
681 | break;
682 | case 4:
683 | this.CkeSetup = "0/4";
684 | break;
685 | case 5:
686 | this.CkeSetup = "0/5";
687 | break;
688 | case 6:
689 | this.CkeSetup = "0/6";
690 | break;
691 | case 7:
692 | this.CkeSetup = "0/7";
693 | break;
694 | case 8:
695 | this.CkeSetup = "0/8";
696 | break;
697 | case 9:
698 | this.CkeSetup = "0/9";
699 | break;
700 | case 10:
701 | this.CkeSetup = "0/10";
702 | break;
703 | case 11:
704 | this.CkeSetup = "0/11";
705 | break;
706 | case 12:
707 | this.CkeSetup = "0/12";
708 | break;
709 | case 13:
710 | this.CkeSetup = "0/13";
711 | break;
712 | case 14:
713 | this.CkeSetup = "0/14";
714 | break;
715 | case 15:
716 | this.CkeSetup = "0/15";
717 | break;
718 | case 16:
719 | this.CkeSetup = "0/16";
720 | break;
721 | case 17:
722 | this.CkeSetup = "0/17";
723 | break;
724 | case 18:
725 | this.CkeSetup = "0/18";
726 | break;
727 | case 19:
728 | this.CkeSetup = "0/19";
729 | break;
730 | case 20:
731 | this.CkeSetup = "0/20";
732 | break;
733 | case 21:
734 | this.CkeSetup = "0/21";
735 | break;
736 | case 22:
737 | this.CkeSetup = "0/22";
738 | break;
739 | case 23:
740 | this.CkeSetup = "0/23";
741 | break;
742 | case 24:
743 | this.CkeSetup = "0/24";
744 | break;
745 | case 25:
746 | this.CkeSetup = "0/25";
747 | break;
748 | case 26:
749 | this.CkeSetup = "0/26";
750 | break;
751 | case 27:
752 | this.CkeSetup = "0/27";
753 | break;
754 | case 28:
755 | this.CkeSetup = "0/28";
756 | break;
757 | case 29:
758 | this.CkeSetup = "0/29";
759 | break;
760 | case 30:
761 | this.CkeSetup = "0/30";
762 | break;
763 | case 31:
764 | this.CkeSetup = "0/31";
765 | break;
766 | case 32:
767 | this.CkeSetup = "1/0";
768 | break;
769 | case 33:
770 | this.CkeSetup = "1/1";
771 | break;
772 | case 34:
773 | this.CkeSetup = "1/2";
774 | break;
775 | case 35:
776 | this.CkeSetup = "1/3";
777 | break;
778 | case 36:
779 | this.CkeSetup = "1/4";
780 | break;
781 | case 37:
782 | this.CkeSetup = "1/5";
783 | break;
784 | case 38:
785 | this.CkeSetup = "1/6";
786 | break;
787 | case 39:
788 | this.CkeSetup = "1/7";
789 | break;
790 | case 40:
791 | this.CkeSetup = "1/8";
792 | break;
793 | case 41:
794 | this.CkeSetup = "1/9";
795 | break;
796 | case 42:
797 | this.CkeSetup = "1/10";
798 | break;
799 | case 43:
800 | this.CkeSetup = "1/11";
801 | break;
802 | case 44:
803 | this.CkeSetup = "1/12";
804 | break;
805 | case 45:
806 | this.CkeSetup = "1/13";
807 | break;
808 | case 46:
809 | this.CkeSetup = "1/14";
810 | break;
811 | case 47:
812 | this.CkeSetup = "1/15";
813 | break;
814 | case 48:
815 | this.CkeSetup = "1/16";
816 | break;
817 | case 49:
818 | this.CkeSetup = "1/17";
819 | break;
820 | case 50:
821 | this.CkeSetup = "1/18";
822 | break;
823 | case 51:
824 | this.CkeSetup = "1/19";
825 | break;
826 | case 52:
827 | this.CkeSetup = "1/20";
828 | break;
829 | case 53:
830 | this.CkeSetup = "1/21";
831 | break;
832 | case 54:
833 | this.CkeSetup = "1/22";
834 | break;
835 | case 55:
836 | this.CkeSetup = "1/23";
837 | break;
838 | case 56:
839 | this.CkeSetup = "1/24";
840 | break;
841 | case 57:
842 | this.CkeSetup = "1/25";
843 | break;
844 | case 58:
845 | this.CkeSetup = "1/26";
846 | break;
847 | case 59:
848 | this.CkeSetup = "1/27";
849 | break;
850 | case 60:
851 | this.CkeSetup = "1/28";
852 | break;
853 | case 61:
854 | this.CkeSetup = "1/29";
855 | break;
856 | case 62:
857 | this.CkeSetup = "1/30";
858 | break;
859 | case 63:
860 | this.CkeSetup = "1/31";
861 | break;
862 | }
863 |
864 | uint clkDrvStrength = (physLong1 & 0xFF000000) >> 24;
865 | if (clkDrvStrength <= 7)
866 | {
867 | switch (clkDrvStrength)
868 | {
869 | case 0:
870 | this.ClkDrvStrength = "120.0Ω";
871 | break;
872 | case 1:
873 | this.ClkDrvStrength = "60.0Ω";
874 | break;
875 | case 2:
876 | break;
877 | case 3:
878 | this.ClkDrvStrength = "40.0Ω";
879 | break;
880 | case 7:
881 | this.ClkDrvStrength = "30.0Ω";
882 | break;
883 | default:
884 | break;
885 | }
886 | }
887 | else if (clkDrvStrength != 15)
888 | {
889 | if (clkDrvStrength == 31)
890 | this.ClkDrvStrength = "20.0Ω";
891 | }
892 | else
893 | this.ClkDrvStrength = "24.0Ω";
894 |
895 | uint addrCmdDrvStrength = physLong2 & 0xFF;
896 | if (addrCmdDrvStrength <= 7)
897 | {
898 | switch (addrCmdDrvStrength)
899 | {
900 | case 0:
901 | this.AddrCmdDrvStrength = "120.0Ω";
902 | break;
903 | case 1:
904 | this.AddrCmdDrvStrength = "60.0Ω";
905 | break;
906 | case 2:
907 | break;
908 | case 3:
909 | this.AddrCmdDrvStrength = "40.0Ω";
910 | break;
911 | case 7:
912 | this.AddrCmdDrvStrength = "30.0Ω";
913 | break;
914 | default:
915 | break;
916 | }
917 | }
918 | else if (addrCmdDrvStrength != 15)
919 | {
920 | if (addrCmdDrvStrength == 31)
921 | this.AddrCmdDrvStrength = "20.0Ω";
922 | }
923 | else
924 | this.AddrCmdDrvStrength = "24.0Ω";
925 |
926 | uint csOdtDrvStrength = (physLong2 & 0xFF00) >> 8;
927 | if (csOdtDrvStrength <= 7)
928 | {
929 | switch (csOdtDrvStrength)
930 | {
931 | case 0:
932 | this.CsOdtDrvStrength = "120.0Ω";
933 | break;
934 | case 1:
935 | this.CsOdtDrvStrength = "60.0Ω";
936 | break;
937 | case 2:
938 | break;
939 | case 3:
940 | this.CsOdtDrvStrength = "40.0Ω";
941 | break;
942 | case 7:
943 | this.CsOdtDrvStrength = "30.0Ω";
944 | break;
945 | default:
946 | break;
947 | }
948 | }
949 | else if (csOdtDrvStrength != 15)
950 | {
951 | if (csOdtDrvStrength == 31)
952 | this.CsOdtDrvStrength = "20.0Ω";
953 | }
954 | else
955 | this.CsOdtDrvStrength = "24.0Ω";
956 |
957 | uint ckeDrvStrength = (physLong2 & 0xFF0000) >> 16;
958 | if (ckeDrvStrength <= 7)
959 | {
960 | switch (ckeDrvStrength)
961 | {
962 | case 0:
963 | this.CkeDrvStrength = "120.0Ω";
964 | break;
965 | case 1:
966 | this.CkeDrvStrength = "60.0Ω";
967 | break;
968 | case 2:
969 | break;
970 | case 3:
971 | this.CkeDrvStrength = "40.0Ω";
972 | break;
973 | case 7:
974 | this.CkeDrvStrength = "30.0Ω";
975 | break;
976 | default:
977 | break;
978 | }
979 | }
980 | else if (ckeDrvStrength != 15)
981 | {
982 | if (ckeDrvStrength == 31)
983 | this.CkeDrvStrength = "20.0Ω";
984 | }
985 | else
986 | this.CkeDrvStrength = "24.0Ω";
987 |
988 | // physLong2 byte 4?
989 |
990 | uint rttNom = physLong3 & 0xFF;
991 | switch (rttNom)
992 | {
993 | case 0:
994 | this.RttNom = "Disabled";
995 | break;
996 | case 1:
997 | this.RttNom = "60.0Ω";
998 | break;
999 | case 2:
1000 | this.RttNom = "120.0Ω";
1001 | break;
1002 | case 3:
1003 | this.RttNom = "40.0Ω";
1004 | break;
1005 | case 4:
1006 | this.RttNom = "240.0Ω";
1007 | break;
1008 | case 5:
1009 | this.RttNom = "48.0Ω";
1010 | break;
1011 | case 6:
1012 | this.RttNom = "80.0Ω";
1013 | break;
1014 | case 7:
1015 | this.RttNom = "34.3Ω";
1016 | break;
1017 | }
1018 |
1019 | uint rttWr = (physLong3 & 0xFF00) >> 8;
1020 | switch (rttWr)
1021 | {
1022 | case 0:
1023 | this.RttWr = "Disabled";
1024 | break;
1025 | case 1:
1026 | this.RttWr = "120.0Ω";
1027 | break;
1028 | case 2:
1029 | this.RttWr = "240.0Ω";
1030 | break;
1031 | case 3:
1032 | this.RttWr = "Hi-Z";
1033 | break;
1034 | case 4:
1035 | this.RttWr = "80.0Ω";
1036 | break;
1037 | }
1038 |
1039 | uint rttPark = (physLong3 & 0xFF0000) >> 16;
1040 | switch (rttPark)
1041 | {
1042 | case 0:
1043 | this.RttPark = "Disabled";
1044 | break;
1045 | case 1:
1046 | this.RttPark = "60.0Ω";
1047 | break;
1048 | case 2:
1049 | this.RttPark = "120.0Ω";
1050 | break;
1051 | case 3:
1052 | this.RttPark = "40.0Ω";
1053 | break;
1054 | case 4:
1055 | this.RttPark = "240.0Ω";
1056 | break;
1057 | case 5:
1058 | this.RttPark = "48.0Ω";
1059 | break;
1060 | case 6:
1061 | this.RttPark = "80.0Ω";
1062 | break;
1063 | case 7:
1064 | this.RttPark = "34.3Ω";
1065 | break;
1066 | }
1067 |
1068 | uint procODT = (physLong3 & 0xFF000000) >> 24;
1069 | switch (procODT)
1070 | {
1071 | case 8:
1072 | this.ProcODT = "120.0Ω";
1073 | break;
1074 | case 9:
1075 | this.ProcODT = "96.0Ω";
1076 | break;
1077 | case 10:
1078 | this.ProcODT = "80.0Ω";
1079 | break;
1080 | case 11:
1081 | this.ProcODT = "68.6Ω";
1082 | break;
1083 | default:
1084 | switch (procODT)
1085 | {
1086 | case 24:
1087 | this.ProcODT = "60.0Ω";
1088 | break;
1089 | case 25:
1090 | this.ProcODT = "53.3Ω";
1091 | break;
1092 | case 26:
1093 | this.ProcODT = "48.0Ω";
1094 | break;
1095 | case 27:
1096 | this.ProcODT = "43.6Ω";
1097 | break;
1098 | default:
1099 | switch (procODT)
1100 | {
1101 | case 56:
1102 | this.ProcODT = "40.0Ω";
1103 | break;
1104 | case 57:
1105 | this.ProcODT = "36.9Ω";
1106 | break;
1107 | case 58:
1108 | this.ProcODT = "34.3Ω";
1109 | break;
1110 | case 59:
1111 | this.ProcODT = "32.0Ω";
1112 | break;
1113 | case 62:
1114 | this.ProcODT = "30.0Ω";
1115 | break;
1116 | case 63:
1117 | this.ProcODT = "28.2Ω";
1118 | break;
1119 | }
1120 | break;
1121 | }
1122 | break;
1123 | }
1124 | }
1125 |
1126 | ols.WritePciConfigDword(0x0, 0xB8, 0x3B10528);
1127 | ols.WritePciConfigDword(0x0, 0xBC, 0x02);
1128 | ols.WritePciConfigDword(0x00, 0xB8, SMUORG);
1129 | Thread.Sleep(SMUDelay);
1130 |
1131 | ols.Dispose();
1132 | }
1133 |
1134 | private uint ReadDword(uint value)
1135 | {
1136 | ols.WritePciConfigDword(0x00, 0xB8, value);
1137 | Thread.Sleep(SMUDelay);
1138 | return ols.ReadPciConfigDword(0x00, 0xBC);
1139 | }
1140 |
1141 | public bool BGS { get; private set; }
1142 | public string BGS_Display => BGS ? "Enabled" : "Disabled";
1143 | public bool BGSA { get; private set; }
1144 | public string BGSA_Display => BGSA ? "Enabled" : "Disabled";
1145 | public bool Preamble2T { get; private set; }
1146 | public bool GDM { get; private set; }
1147 | public string GDM_Display => GDM ? "Enabled" : "Disabled";
1148 | public bool Cmd2T { get; private set; }
1149 | public string CmdRate => Cmd2T ? "2T" : "1T";
1150 | public uint MEMCLK { get; private set; }
1151 | public uint tRCDWR { get; private set; }
1152 | public uint tRCDRD { get; private set; }
1153 | public uint tRAS { get; private set; }
1154 | public uint tCL { get; private set; }
1155 | public uint tRPPB { get; private set; }
1156 | public uint tRP { get; private set; }
1157 | public uint tRCPB { get; private set; }
1158 | public uint tRC { get; private set; }
1159 | public uint tRTP { get; private set; }
1160 | public uint tRRDDLR { get; private set; }
1161 | public uint tRRDL { get; private set; }
1162 | public uint tRRDS { get; private set; }
1163 | public uint tFAWDLR { get; private set; }
1164 | public uint tFAWSLR { get; private set; }
1165 | public uint tFAW { get; private set; }
1166 | public uint tWTRL { get; private set; }
1167 | public uint tWTRS { get; private set; }
1168 | public uint tCWL { get; private set; }
1169 | public uint tWR { get; private set; }
1170 | public uint tRCPage { get; private set; }
1171 | public uint tRDRDBAN { get; private set; }
1172 | public string tRDRDBAN_Display => tRDRDBAN == 0 ? "Disabled" : (tRDRDBAN == 1 ? "Ban 2" : "Ban 2&3");
1173 | public uint tRDRDSCL { get; private set; }
1174 | public uint tRDRDSCDLR { get; private set; }
1175 | public uint tRDRDSC { get; private set; }
1176 | public uint tRDRDSD { get; private set; }
1177 | public uint tRDRDDD { get; private set; }
1178 | public uint tWRWRBAN { get; private set; }
1179 | public string tWRWRBAN_Display => tWRWRBAN == 0 ? "Disabled" : (tWRWRBAN == 1 ? "Ban 2" : "Ban 2&3");
1180 | public uint tWRWRSCL { get; private set; }
1181 | public uint tWRWRSCDLR { get; private set; }
1182 | public uint tWRWRSC { get; private set; }
1183 | public uint tWRWRSD { get; private set; }
1184 | public uint tWRWRDD { get; private set; }
1185 | public uint tWRRDSCDLR { get; private set; }
1186 | public uint tRDWR { get; private set; }
1187 | public uint tWRRD { get; private set; }
1188 | public uint tREF { get; private set; }
1189 | public uint tREFCT { get; private set; }
1190 | public uint tMODPDA { get; private set; }
1191 | public uint tMRDPDA { get; private set; }
1192 | public uint tMOD { get; private set; }
1193 | public uint tMRD { get; private set; }
1194 | public uint tSTAG { get; private set; }
1195 | public uint tCKE { get; private set; }
1196 | public uint tPHYWRD { get; private set; }
1197 | public uint tPHYRDLAT { get; private set; }
1198 | public uint tPHYWRLAT { get; private set; }
1199 | public uint tRDDATA { get; private set; }
1200 | public uint tRFC4 { get; private set; }
1201 | public uint tRFC4CT { get; private set; }
1202 | public uint tRFC2 { get; private set; }
1203 | public uint tRFC2CT { get; private set; }
1204 | public uint tRFC { get; private set; }
1205 | public uint tRFCCT { get; private set; }
1206 | public uint tSTAG4LR { get; private set; }
1207 | public string tSTAG4LR_Display => tSTAG4LR == 0 ? "Disabled" : tSTAG4LR.ToString();
1208 | public uint tSTAG2LR { get; private set; }
1209 | public string tSTAG2LR_Display => tSTAG2LR == 0 ? "Disabled" : tSTAG2LR.ToString();
1210 | public uint tSTAGLR { get; private set; }
1211 | public string tSTAGLR_Display => tSTAGLR == 0 ? "Disabled" : tSTAGLR.ToString();
1212 | public uint tWRMPR { get; private set; }
1213 |
1214 | public string ProcODT { get; private set; }
1215 | public string RttNom { get; private set; }
1216 | public string RttWr { get; private set; }
1217 | public string RttPark { get; private set; }
1218 | public string AddrCmdSetup { get; private set; }
1219 | public string CsOdtSetup { get; private set; }
1220 | public string CkeSetup { get; private set; }
1221 | public string ClkDrvStrength { get; private set; }
1222 | public string AddrCmdDrvStrength { get; private set; }
1223 | public string CsOdtDrvStrength { get; private set; }
1224 | public string CkeDrvStrength { get; private set; }
1225 | }
1226 | }
1227 |
--------------------------------------------------------------------------------
/RTCSharp/TextBoxLabel.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/RTCSharp/TextBoxLabel.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows;
3 | using System.Windows.Controls;
4 |
5 | namespace RTCSharp
6 | {
7 | ///
8 | /// Interaction logic for TextBoxLabel.xaml
9 | ///
10 | public partial class TextBoxLabel : UserControl
11 | {
12 | #region LabelText DP
13 |
14 | ///
15 | /// Gets or sets the Label which is displayed next to the field
16 | ///
17 | public String LabelText
18 | {
19 | get { return (String)GetValue(LabelTextProperty); }
20 | set { SetValue(LabelTextProperty, value); }
21 | }
22 |
23 | ///
24 | /// Identified the Label dependency property
25 | ///
26 | public static readonly DependencyProperty LabelTextProperty = DependencyProperty.Register("LabelText", typeof(string), typeof(TextBoxLabel), new PropertyMetadata(""));
27 |
28 | #endregion
29 |
30 | #region Value DP
31 |
32 | ///
33 | /// Gets or sets the Value which is being displayed
34 | ///
35 | public object Value
36 | {
37 | get { return GetValue(ValueProperty); }
38 | set { SetValue(ValueProperty, value); }
39 | }
40 |
41 | ///
42 | /// Identified the Label dependency property
43 | ///
44 | public static readonly DependencyProperty ValueProperty = DependencyProperty.Register("Value", typeof(object), typeof(TextBoxLabel), new PropertyMetadata(null));
45 |
46 | #endregion
47 |
48 | public TextBoxLabel()
49 | {
50 | InitializeComponent();
51 | }
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/RTCSharp/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
52 |
59 |
60 |
61 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/RTCSharp/dep/WinRing0.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomrus88/RTCSharp/a4040d7b087e325f3915c48dda36ee3ed4d37120/RTCSharp/dep/WinRing0.dll
--------------------------------------------------------------------------------
/RTCSharp/dep/WinRing0.sys:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomrus88/RTCSharp/a4040d7b087e325f3915c48dda36ee3ed4d37120/RTCSharp/dep/WinRing0.sys
--------------------------------------------------------------------------------
/RTCSharp/dep/WinRing0x64.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomrus88/RTCSharp/a4040d7b087e325f3915c48dda36ee3ed4d37120/RTCSharp/dep/WinRing0x64.dll
--------------------------------------------------------------------------------
/RTCSharp/dep/WinRing0x64.sys:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomrus88/RTCSharp/a4040d7b087e325f3915c48dda36ee3ed4d37120/RTCSharp/dep/WinRing0x64.sys
--------------------------------------------------------------------------------
/RTCSharp/dep/inpoutx64.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomrus88/RTCSharp/a4040d7b087e325f3915c48dda36ee3ed4d37120/RTCSharp/dep/inpoutx64.dll
--------------------------------------------------------------------------------