본문 바로가기

분류 전체보기202

Windows 작업관리자 차단 및 Alt+F4 키 차단 Protected Overrides Function ProcessDialogKey(ByVal keyData As System.Windows.Forms.Keys) As Boolean Select Case (keyData) Case Keys.Control Return True Case Keys.Alt Or Keys.F4 Return True End Select Return MyBase.ProcessDialogKey(keyData) End Function Private Sub DisableTaskManager() Dim regkey As RegistryKey Dim keyValueInt As String = "1" Dim subKey As String = "Software\Microsoft\Windows\Cu.. 2021. 6. 3.
키보드 후킹(Hooking)을 통한 HomeKey 방지 '===================== 키보드 Hook을 통한 Window Home 키 입력 방지 Private Const WM_KEYUP As Integer = &H101 Private Const WM_KEYDOWN As Short = &H100S Private Const WM_SYSKEYDOWN As Integer = &H104 Private Const WM_SYSKEYUP As Integer = &H105 Public Structure KBDLLHOOKSTRUCT Public vkCode As Integer Public scanCode As Integer Public flags As Integer Public time As Integer Public dwExtraInfo As Integer End.. 2021. 6. 3.
InitiateSystemShutdown 선언: C# [DllImport("advapi32")] public static extern Int32 InitiateSystemShutdown(String lpMachineName, String lpMessage, Int32 dwTimeout, Boolean bForceAppsClosed, Boolean bRebootAfterShutdown); VB.NET _ Public Shared Function InitiateSystemShutdown(lpMachineName As [String], lpMessage As [String], dwTimeout As Int32, bForceAppsClosed As [Boolean], bRebootAfterShutdown As [Boolean]) As Int32 End.. 2021. 4. 28.
Windows Invoke 코드 활용가능한 라이브러리 Vanara-master 참고 사이트 : github.com/dahall/Vanara dahall/Vanara A set of .NET libraries for Windows implementing PInvoke calls to many native Windows APIs with supporting wrappers. - dahall/Vanara github.com 2021. 4. 15.