S
Serduko
Есть ли возможность запустить агент по ярлыку? Т.е. запуская клиент, открывается нужная база и запускается нужный агент.
Познакомьтесь с пентестом веб-приложений на практике в нашем новом бесплатном курсе
Спасибо
Добавлено: А есть какая нибудь команда в LS что бы свернуть клиент Lotus Notes?
'(Declarations)
Const SW_FORCEMINIMIZE = 11 'Minimizes a window, even if the thread that owns the window is not responding. This flag should only be used when minimizing windows from a different thread.
Const SW_HIDE = 0 'Hides the window and activates another window.
Const SW_MAXIMIZE = 3 'Maximizes the specified window.
Const SW_MINIMIZE = 6 'Minimizes the specified window and activates the next top-level window in the Z order.
Const SW_RESTORE = 9 'Activates and displays the window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when restoring a minimized window.
Const SW_SHOW = 5 'Activates the window and displays it in its current size and position.
Const SW_SHOWDEFAULT = 10 'Sets the show state based on the SW_ value specified in the STARTUPINFO structure passed to the CreateProcess function by the program that started the application.
Const SW_SHOWMAXIMIZED = 3 'Activates the window and displays it as a maximized window.
Const SW_SHOWMINIMIZED = 2 'Activates the window and displays it as a minimized window.
Const SW_SHOWMINNOACTIVE = 7 'Displays the window as a minimized window. This value is similar to SW_SHOWMINIMIZED, except the window is not activated.
Const SW_SHOWNA = 8 'Displays the window in its current size and position. This value is similar to SW_SHOW, except that the window is not activated.
Const SW_SHOWNOACTIVATE = 4 'Displays a window in its most recent size and position. This value is similar to SW_SHOWNORMAL, except that the window is not activated.
Const SW_SHOWNORMAL = 1 'Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.
Declare Private Function GetActiveWindow Lib "user32" () As Long
Declare Private Function ShowWindow Lib "user32" Alias "ShowWindow"(Byval lhwnd As Long, Byval nCmdShow As Long) As Long
Sub Initialize
Call ShowWindow(GetActiveWindow, SW_MINIMIZE)
End Sub
Declare Private Function FindWindow Lib "user32" (Byval lpClassName As Lmbcs String, Byval lpWindowName As Lmbcs String) As Long
Об этом я уже догадался, вставляя:Код:Declare Private Function FindWindow Lib "user32" (Byval lpClassName As Lmbcs String, Byval lpWindowName As Lmbcs String) As Long
Print FindWindowA("","about:blank - Microsoft Internet Explorer")
Declare Private Function FindWindow Lib "user32" (Byval lpClassName As Long, Byval lpWindowName As Lmbcs String) As Long
Print FindWindowA(0,"about:blank - Microsoft Internet Explorer")
Declare Private Function FindWindow Lib "user32" Alias "FindWindowA" (Byval lpClassName As Long, Byval lpWindowName As String) As Long
Msgbox Cstr(FindWindow(0, "Безымянный - Блокнот")
Declare Private Function FindWindow Lib "user32" Alias "FindWindowW" (Byval lpClassName As Long, Byval lpWindowName As Unicode String) As Long
Msgbox Cstr(FindWindow(0, "Безымянный - Блокнот")
Declare Private Function FindWindow Lib "user32" Alias "FindWindowA" (lpClassName As Any, lpWindowName As Any) As Long
Msgbox Cstr(FindWindow(Byval 0&, Byval "Безымянный - Блокнот"))
Обучение наступательной кибербезопасности в игровой форме. Начать игру!