Method | Description | |
---|---|---|
AreHardlinked ( [ path1, [ path2 ) : bool |
Determines whether to files are hardlinked.
|
|
AttachConsole ( ) : bool |
Tries to attach to a command-line console owned by the parent process.
|
|
BroadcastMessage ( int messageID ) : void |
Sends a message of a specific type to all windows in the current session.
|
|
CreateHardlink ( [ sourcePath, [ targetPath ) : void |
Creates a hard link between two files. Only available on Windows 2000 or newer. |
|
CreateSymlink ( [ sourcePath, [ targetPath ) : void |
Creates a symbolic link for a file or directory.
|
|
MoveFileOnReboot ( [ sourcePath, [ destinationPath ) : void |
Moves a file on the next reboot of the OS. Replaces existing files. Useful for replacing in-use files. |
|
RegisterApplicationRestart ( [ arguments ) : void |
Registers the current application for automatic restart after updates or crashes.
|
|
RegisterWindowMessage ( [ message ) : int |
Registers a new message type that can be sent to windows.
|
|
SetCurrentProcessAppID ( string appID ) : void |
Sets the current process' explicit application user model ID. The application ID is used to group related windows in the taskbar. |
|
UnregisterApplicationRestart ( ) : void |
Unregisters the current application for automatic restart after updates or crashes.
|
|
WriteAllBytes ( [ path, [ data ) : void |
Writes the entire contents of a byte array to a file using the Win32 API. Existing files with the same name are overwritten. This method works like File.WriteAllBytes, but bypasses .NET's file path validation logic. |
Method | Description | |
---|---|---|
BuildException ( int error ) : |
Builds a suitable Exception for a given Win32Exception.NativeErrorCode.
|
|
GetFileIndex ( [ path ) : ulong | ||
GetNetFxDirectory ( [ version ) : string | ||
NotifyAssocChanged ( ) : void | ||
NotifyEnvironmentChanged ( ) : void | ||
ReadAllBytes ( [ path ) : byte[] | ||
SplitArgs ( [ commandLine ) : string[] |
public static AreHardlinked ( [ path1, [ path2 ) : bool | ||
path1 | [ | The path of the first file. |
path2 | [ | The path of the second file. |
return | bool |
public static BroadcastMessage ( int messageID ) : void | ||
messageID | int | A unique ID number used to identify the message type session-wide. |
return | void |
public static CreateHardlink ( [ sourcePath, [ targetPath ) : void | ||
sourcePath | [ | The path of the link to create. |
targetPath | [ | The absolute path of the existing file to point to. |
return | void |
public static CreateSymlink ( [ sourcePath, [ targetPath ) : void | ||
sourcePath | [ | The path of the link to create. |
targetPath | [ | The path of the existing file or directory to point to (relative to |
return | void |
public static MoveFileOnReboot ( [ sourcePath, [ destinationPath ) : void | ||
sourcePath | [ | The source path to move the file from. |
destinationPath | [ | The destination path to move the file to. |
return | void |
public static RegisterApplicationRestart ( [ arguments ) : void | ||
arguments | [ | The command-line arguments to pass to the application on restart. Must not be empty! |
return | void |
public static RegisterWindowMessage ( [ message ) : int | ||
message | [ | A unique string used to identify the message type session-wide. |
return | int |
public static SetCurrentProcessAppID ( string appID ) : void | ||
appID | string | The application ID to set. |
return | void |
public static UnregisterApplicationRestart ( ) : void | ||
return | void |
public static WriteAllBytes ( [ path, [ data ) : void | ||
path | [ | The path of the file to write to. |
data | [ | The data to write to the file. |
return | void |