-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29df8b9
commit 242d258
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
//go:build !windows | ||
// +build !windows | ||
|
||
package sys | ||
|
||
// RunningByDoubleClick 是否通过双击运行 | ||
func RunningByDoubleClick() bool { | ||
return true | ||
} | ||
|
||
// NoMoreDoubleClick 提示不要双击运行,并生成启动脚本 | ||
func NoMoreDoubleClick() error { | ||
return nil | ||
} | ||
|
||
// toHighDPI tries to raise DPI awareness context to DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED | ||
func toHighDPI() {} | ||
|
||
// BoxW of Win32 API. Check https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messageboxw for more detail. | ||
func boxW() {} | ||
|
||
// GetConsoleWindows retrieves the window handle used by the console associated with the calling process. | ||
func getConsoleWindows() { | ||
return | ||
} |