![]() | SystemEx 类 |
命名空间: Sweet.Common
SystemEx 类型公开以下成员。
名称 | 说明 | |
---|---|---|
![]() ![]() | BringToFront |
将程序调至前台
|
![]() ![]() | CloseFile |
关闭进程
|
![]() ![]() | ConsoleWriteLine | |
![]() ![]() | CpuUsed |
CPU使用率(单位:%)
|
![]() ![]() | Delay |
Delays the specified ms.
|
![]() ![]() | DisabledTaskManager | |
![]() ![]() | Disk |
根据文件名或者磁盘名获取磁盘信息
|
![]() ![]() | DiskExist |
根据文件名或者磁盘名判断磁盘是否存在
|
![]() ![]() | EnabledTaskManager | |
![]() ![]() | GetCursorPos |
获取鼠标位置
|
![]() ![]() | GetForegroundWindowBounds |
获取程序当前窗口的大小和位置
|
![]() ![]() | ProcessIsRun |
程序已经运行
|
![]() ![]() | ProcessRamUsed |
获取当前进程占用内存大小(单位:MB)
|
![]() ![]() | RegistryDisableTaskMgr | |
![]() ![]() | RegistryHooksTimeout | |
![]() ![]() | RunDosCmd |
运行dos命令
|
![]() ![]() | RunningInstance | |
![]() ![]() | ScreenCount |
显示器个数
|
![]() ![]() | ShowOnMonitor |
多显示器扩展,指定显示器显示
|
![]() ![]() | ThreadSafeCall(Control, Action) |
txtOutput.ThreadSafeCall(() => txtOutput.Text = "Updated");
|
![]() ![]() | ThreadSafeCallT(Control, FuncT) | |
![]() ![]() | ToGB |
Byte To GB
|
![]() ![]() | ToKB |
Byte To KB
|
![]() ![]() | ToMB |
Byte To MB
|
![]() ![]() | ToTB |
Byte To TB
|
名称 | 说明 | |
---|---|---|
![]() ![]() | SW_FORCEMINIMIZE |
在WindowNT5.0中最小化窗口,即使拥有窗口的线程被挂起也会最小化。在从其他线程最小化窗口时才使用这个参数。
Windows Server 2003, Windows 2000, and Windows XP: Minimizes a window, even when the thread that owns the window is hung. Only use this flag when minimizing windows from a different thread.
|
![]() ![]() | SW_HIDE |
最小化显示
Hides the window and activates another window.
|
![]() ![]() | SW_MINIMIZE |
最小化指定的窗口并且激活在Z序中的下一个顶层窗口。
Minimizes the specified window, and activates the next top-level window in the Z order.
|
![]() ![]() | SW_NORMAL |
正常显示
Activates and displays a window. If the window is minimized or maximized, the system restores it to the original size and position. An application specifies this flag when displaying the window for the first time.
|
![]() ![]() | SW_RESTORE |
激活并显示窗口。如果窗口最小化或最大化,则系统将窗口恢复到原来的尺寸和位置。在恢复最小化窗口时,应用程序应该指定这个标志。
Activates and displays the window. If the window is minimized or maximized, the system restores it to the original size and position. An application specifies this flag when restoring a minimized window.
|
![]() ![]() | SW_SHOW |
在窗口原来的位置以原来的尺寸激活和显示窗口。
Activates the window, and displays it at the current size and position.
|
![]() ![]() | SW_SHOWDEFAULT |
依据在STARTUPINFO结构中指定的SW_FLAG标志设定显示状态,STARTUPINFO结构是由启动应用程序的程序传递给CreateProcess函数的。
Sets the show state based on the SW_ value that is specified in the STARTUPINFO structure passed to the CreateProcess function by the program that starts the application.
|
![]() ![]() | SW_SHOWMAXIMIZED |
激活窗口并将其最大化
Activates the window, and displays it as a maximized window.
|
![]() ![]() | SW_SHOWMINIMIZED |
激活窗口并将其最小化
Activates the window, and displays it as a minimized window.
|
![]() ![]() | SW_SHOWMINNOACTIVE |
窗口最小化,激活窗口仍然维持激活状态。
Displays the window as a minimized window. This value is similar to SW_SHOWMINIMZED, except that the window is not activated.
|
![]() ![]() | SW_SHOWNA |
以窗口原来的状态显示窗口。激活窗口仍然维持激活状态。
Displays the window at the current size and position. This value is similar to SW_SHOW, except that the window is not activated.
|
![]() ![]() | SW_SHOWNOACTIVATE |
以窗口最近一次的大小和状态显示窗口。激活窗口仍然维持激活状态。
Displays a window in its most recent size and position. This value is similar to SW_SHOWNORMAL, except that the window is not activated.
|