Class Win32
Low-level Windows system calls.
Namespace: Neon.Windows
Assembly: Neon.Common.dll
Syntax
public static class Win32
Methods
DecryptFile(string)
Has Windows decrypt a file or folder at rest.
Declaration
public static extern bool DecryptFile(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The file or folder path. |
Returns
Type | Description |
---|---|
bool |
|
EncryptFile(string)
Has Windows encrypt a file or folder at rest.
Declaration
public static extern bool EncryptFile(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The file or folder path. |
Returns
Type | Description |
---|---|
bool |
|
GetPhysicallyInstalledSystemMemory(out ulong)
Returns the total installed physical RAM as kilobytes.
Declaration
public static extern bool GetPhysicallyInstalledSystemMemory(out ulong TotalMemoryInKilobytes)
Parameters
Type | Name | Description |
---|---|---|
ulong | TotalMemoryInKilobytes | Returns as the physical RAM as KiB. |
Returns
Type | Description |
---|---|
bool |
|
GlobalMemoryStatusEx(MEMORYSTATUSEX)
Obtains information about memory utilization on the current Windows machine.
Declaration
public static extern bool GlobalMemoryStatusEx(MEMORYSTATUSEX lpBuffer)
Parameters
Type | Name | Description |
---|---|---|
MEMORYSTATUSEX | lpBuffer | Returns as a MEMORYSTATUSEX with the infirmation. |
Returns
Type | Description |
---|---|
bool |
|
MakeWindowTopmost(nint)
Relocates a window to be topmost in the z-order such that it will be above all other windows on the desktop.
Declaration
public static void MakeWindowTopmost(nint hWnd)
Parameters
Type | Name | Description |
---|---|---|
nint | hWnd | Specifies the low-level handle for the target window. |