본문 바로가기

전체 글202

x86, x64 모두 사용 가능한 cmd Dim result_Cmd As New RichTextBox Dim output As String Dim ptr As IntPtr = New IntPtr() Wow64DisableWow64FsRedirection(ptr) Dim info As ProcessStartInfo = New ProcessStartInfo() Dim proc As Process = New Process() With info .RedirectStandardOutput = True .UseShellExecute = False .FileName = "cmd.exe" .Arguments = "/c query session /vm" End With proc.StartInfo = info proc.Start() output = proc.St.. 2021. 3. 31.
Key입력(VirtureKey and HardwareKey) [사용법] InputHelper.PressKey(Keys.Escape, False) InputHelper.PressKey(Keys.Escape, True) [라이브러리 코드] Imports System.Runtime.InteropServices Public NotInheritable Class InputHelper Private Sub New() End Sub #Region "Methods" #Region "PressKey()" ''' ''' Virtually presses a key. ''' ''' The key to press. ''' Whether or not to press the key using its hardware scan code. ''' Public Shared Sub PressKey(.. 2021. 3. 31.
Windows 작업 스케줄 API 참고 Site : github.com/dahall/taskscheduler dahall/TaskScheduler Provides a .NET wrapper for the Windows Task Scheduler. It aggregates the multiple versions, provides an editor and allows for localization. - dahall/TaskScheduler github.com 참고 소스 2020. 12. 8.
Windows 암호정책 확인하는 Class (VB 버전) Imports System Imports System.Collections.Generic Imports System.ComponentModel Imports System.Linq Imports System.Runtime.InteropServices Imports System.Security.Principal Imports System.Text Imports System.Threading.Tasks Public Class Sam_Class Partial Public Class SamServer : Implements IDisposable Private _handle As IntPtr Public Sub New(ByVal name As String, ByVal access As SERVER_ACCESS_MA.. 2020. 12. 1.