質問編集履歴
1
ソースを追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,6 +7,41 @@
|
|
7
7
|
### 該当のソースコード
|
8
8
|
|
9
9
|
```VB.NET
|
10
|
+
'はじめの宣言
|
11
|
+
Public Class Form1
|
12
|
+
Inherits Form
|
13
|
+
|
14
|
+
Enum DWMWINDOWATTRIBUTE As UInteger
|
15
|
+
NCRenderingEnabled = 1
|
16
|
+
NCRenderingPolicy
|
17
|
+
TransitionsForceDisabled
|
18
|
+
AllowNCPaint
|
19
|
+
CaptionButtonBounds
|
20
|
+
NonClientRtlLayout
|
21
|
+
ForceIconicRepresentation
|
22
|
+
Flip3DPolicy
|
23
|
+
ExtendedFrameBounds
|
24
|
+
HasIconicBitmap
|
25
|
+
DisallowPeek
|
26
|
+
ExcludedFromPeek
|
27
|
+
Cloak
|
28
|
+
Cloaked
|
29
|
+
FreezeRepresentation
|
30
|
+
End Enum
|
31
|
+
|
32
|
+
<StructLayout(LayoutKind.Sequential)>
|
33
|
+
Private Structure RECT
|
34
|
+
Public left As Integer
|
35
|
+
Public top As Integer
|
36
|
+
Public right As Integer
|
37
|
+
Public bottom As Integer
|
38
|
+
End Structure
|
39
|
+
|
40
|
+
Private Declare Function GetWindowRect Lib "user32.dll" (ByVal hwnd As IntPtr, ByRef lpRect As RECT) As Boolean
|
41
|
+
Private Declare Function DwmGetWindowAttribute Lib "dwmapi.dll" (ByVal hwnd As IntPtr, ByVal dwAttribute As DWMWINDOWATTRIBUTE, ByRef pvAttribute As RECT, ByVal cbAttribute As Integer) As Integer
|
42
|
+
|
43
|
+
|
44
|
+
'該当箇所
|
10
45
|
System.Diagnostics.Process()
|
11
46
|
Dim p As System.Diagnostics.Process
|
12
47
|
For Each p In System.Diagnostics.Process.GetProcesses()
|