Delphi snippet details dynamically calling windows apis with encryption.
Due to the default Windows handling of the WM_GETMINMAXINFO message, the max size of the form is set to the screen size. Add a button to a form and try this:
[UNIT] Im Spreading. I posted it as learning to defend yourself.
Delphi code example for [UNIT] ROT1 Encrypt Strings
This snippet will check memory and then print initial, final and peak usages.
Delphi code example to get process memory usage
Just got inspired last night and decided to start a class to get the screen in "blocks" and check which one has changed to update only those.
Extracts the month from a specified date.
To detect if Aero Glass is enabled we must use the DwmIsCompositionEnabled function.
Delphi code example to get computer MAC address
Delphi code to return type of drive that contains the given (full) path.
Delphi code to return root drive path for drive with given number.
Delphi code for using CreateProcess to Execute Programs
Delphi example code for Hex Color to RGB Color
Code that will convert a simple Hex code value (from HTML colors) to an actual useable NSColor.
Returns the hexadecimal representation of the given long (4 byte) word value.
Returns the hexadecimal representation of the given byte value.
Set the Border style of your main form to bsNone and then use System Parameters Info message to get the SPI_GETWORKAREA value then use Set Bounds to make your Window the correct size.
Making a transparent form. Add a Button (Button1) to a Delphi form (Form1)...
Returns the given directory with a trailing backslash. If the directory already ends in backslash it is returned unchanged.