|
|
|
|
|
Dicas
|
|
Visual Basic (Windows)
|
|
|
Título da Dica: abre janela propriedade do video
|
|
|
|
Postada em 1/9/2003 por Ð@®l@n
'num módulo Public Declare Function GetDesktopWindow Lib "user32.dll" () As Long Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long Public Const SW_SHOWNORMAL = 1
Public Function StartCPLApp(AppName As String) As Long ' AppName With ending Dim Scr_hDC As Long
Scr_hDC = GetDesktopWindow() StartCPLApp = ShellExecute(Scr_hDC, "Open", "Control", AppName, "C:\", SW_SHOWNORMAL) End Function
'Example: 'num form Private Sub Command1_Click() StartCPLApp "DESK.CPL" End Sub
|
|
|
|
|