Skip to content

Latest commit

 

History

History
58 lines (58 loc) · 5.11 KB

README.md

File metadata and controls

58 lines (58 loc) · 5.11 KB

MSDNDemos

Demo projects used on MSDN forum


WinFirewall

Simple demo on how to add rules to Advanced Firewall that comes with Vista+.


WinFormWPFHybrid

Inspired by this question. This WinForm example contains a UserControl that hosts WPF control and will display RichText input upside down.


TripleDESTest

Demo to perform DESede/ECB/PKCS5Padding encryption / decryption in C# and Java.

Originally posted here and revised a bit to make sure both programs are functionally identical.
The Java source is written with strictly only libraries come with JDK8 and nothing else.
For those who need CBC version, please refer to here. (Basically you only need to add IV parameter after changing ECB to CBC)
Hope this can help people who have problem in porting Java code to C#.

Compile instruction:
Let's assume you install it at "C:\Program Files\Java\jdk1.8.0_141"

C:\Program Files\Java\jdk1.8.0_141\javac.exe TripleDESTest.java
C:\Program Files\Java\jdk1.8.0_141\java TripleDESTest


MSAAListener

Inspired by this question. Simple demo on how to get windows handle of window under cursor, and how to convert the retrieved window handle to IAccessible object.

The code for get windows handle of window under cursor is provided by Castorix31 of MSDN forum.


DisableEdgeDoubleTapZoom

Not a MSDN forum project.
Experimenting with TamperMonkey to fix an usability problem that bugs me for a long time.
Since I pressed Export button but not sure where it'll save to, I'll just post the script content here.
Really simple change. Feel free to share it if you know someone who is also annoyed by this "Double tap zoom" feature.


TransparentPicBoxTest

A very simple demo for this question on MSDN forum.


wb

A very simple demo for this question on MSDN forum to show how to invoke double click on HTML element in WebBrowser control.


ConsoleControlChar

A demo for this question on MSDN forum to show how to print non-printable character in Console application, as well as how to change font in Console application.


pastefile

A demo for this question on MSDN forum to show how to copy file acress RDP session.


RogueChecker

This is a tool created by TeamDHCP on TechNet blog that can be used to detech rogue DHCP servers inside your network.

Unfortunately seems the blog does not survive the transition to docs.microsoft.com, so I preserve a copy here for my future use.

The original download URL is at: https://web.archive.org/web/20150103002912/http://blogs.technet.com/cfs-filesystemfile.ashx/__key/communityserver-components-postattachments/00-03-26-09-62/RogueChecker.zip

Although I downloaded this file fresh from the WebArchive, I don't claim this file is safe or free from virus. You're strongly recommanded to download the file from source and scan with virus scanners before use it.


Event1644Reader

The PowerShell script referenced by Use Event1644Reader.ps1 to analyze LDAP query performance in Windows Server.

Since the Microsoft Script Center is closed and the "Browse code samples" site don't preserve all old scripts, I'll store one in here.

Originally downloaded from https://web.archive.org/web/20200318200838/https://gallery.technet.microsoft.com/scriptcenter/Event-1644-reader-Export-45205268/file/140579/1/Event1644Reader.ps1