Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
ox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itchio
ox
Commits
23103ad9
Commit
23103ad9
authored
Aug 07, 2018
by
Amos Wenger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ShowWindow syscall
parent
78365f06
Pipeline
#11878
passed with stage
in 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
user32_windows.go
syscallex/user32_windows.go
+22
-0
No files found.
syscallex/user32_windows.go
View file @
23103ad9
...
...
@@ -13,6 +13,7 @@ var (
procEnumWindows
=
moduser32
.
NewProc
(
"EnumWindows"
)
procGetWindowThreadProcessId
=
moduser32
.
NewProc
(
"GetWindowThreadProcessId"
)
procSetForegroundWindow
=
moduser32
.
NewProc
(
"SetForegroundWindow"
)
procShowWindow
=
moduser32
.
NewProc
(
"ShowWindow"
)
)
func
EnumWindows
(
...
...
@@ -69,3 +70,24 @@ func SetForegroundWindow(
}
return
}
func
ShowWindow
(
hwnd
syscall
.
Handle
,
flags
int
,
)
(
err
error
)
{
r1
,
_
,
e1
:=
syscall
.
Syscall
(
procShowWindow
.
Addr
(),
1
,
uintptr
(
hwnd
),
uintptr
(
flags
),
0
,
)
if
r1
==
0
{
if
e1
!=
0
{
err
=
e1
}
else
{
err
=
syscall
.
EINVAL
}
}
return
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment