Category: .Net
-
Enumerating All Network resources using Delphi Prism.
Read the article: Enumerating All Network resources using Delphi Prism.The next code uses the windows library mrp.dll (mpr.dll is a module containing functions used to handle communication between the Windows operating system and the installed network providers) and call…
-
Calculate the SHA1 hash of a file, using Delphi Prism
Read the article: Calculate the SHA1 hash of a file, using Delphi PrismThe next code show how calculate the SHA1 hash of a file, using Delphi Prism (Oxygene) [sourcecode language=”delphi” wraplines=”false”] uses System.IO, System.Security, System.Security.Cryptography; function CalcSHA1HashCode(oFile:String) : String; var sh1Provider :…
-
Detect if an antivirus software is installed in Windows using Delphi Prism
Read the article: Detect if an antivirus software is installed in Windows using Delphi PrismThe next code show how detect if an antivirus software is installed in Windows using Delphi Prism (Oxygene) and the WMI. [sourcecode language=”delphi”] uses System, System.Management, System.Text; type ConsoleApp =…
-
Detect if an antivirus software is installed in Windows using C#
Read the article: Detect if an antivirus software is installed in Windows using C#The next code shows how detect if an antivirus software is installed in Windows using C# and the WMI. [sourcecode language=”csharp”] using System; using System.Text; using System.Management; namespace ConsoleApplication1 {…
-
Using Rijndael Algorithm in Delphi 2007. Net
Read the article: Using Rijndael Algorithm in Delphi 2007. NetThe next code shows a sample of how use the Rijndael Algorithm in Delphi 2007. Net [sourcecode language=”delphi”] uses System.Security.Cryptography, System.Text; type TDynamicArrayOfByte = array of Byte; function Encrypt(StrtoEncrypt, PK:…
-
Detect if my application is running under the IDE “Delphi 2007 .Net”
Read the article: Detect if my application is running under the IDE “Delphi 2007 .Net”[sourcecode language=”delphi” wraplines=”false”] uses System.Diagnostics; function IDEDelphiNetRunning:Boolean; begin Result:=Debugger.IsAttached; end; [/sourcecode]
