Sunday, April 4, 2010

VB6 Code - Fungsi Shutdown, Restart, Log-off

Di bawah ini merupakan fungsi untuk men-shutdown, restart, log-off sebuah komputer.Option ExplicitPrivate Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As LongPrivate Const ENDSESSION_LOGOFF As Long = &H80000000Public...
READ MORE - VB6 Code - Fungsi Shutdown, Restart, Log-off

VB6 Code - Mengetahui Lama Windows Dijalankan

Fungsi VB6 untuk mengetahui berapa lama windows telah dijalankan.Option ExplicitPrivate Declare Function GetTickCount Lib "Kernel32" () As LongPrivate Sub Timer1_Timer() Text1.Text = Format(GetTickCount, "0") & " milisceconds" Text2.Text =...
READ MORE - VB6 Code - Mengetahui Lama Windows Dijalankan

VB6 Code - Memperoleh Time Out Screen Saver

Di bawah ini merupakan fungsi VB6 untuk memperoleh/mengetahui time out screen saver. Adapun kodenya di bawah ini:Option ExplicitPrivate Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam...
READ MORE - VB6 Code - Memperoleh Time Out Screen Saver

Saturday, April 3, 2010

VB6 Code - Fungsi Untuk Merubah Desktop Wallpaper

Di bawah ini merupakan fungsi VB6 untuk merubah desktop wallpaper. Bagaimana implementasinya dalam Visual Basic 6.0?Option ExplicitPrivate Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal...
READ MORE - VB6 Code - Fungsi Untuk Merubah Desktop Wallpaper