are there commands in vb for turning my pc off after a 30 second timer?

VB Code:
  1. Declare Function ExitWindowsEx Lib "user32" Alias "ExitWindowsEx" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long

something to do with the abov but im not sure guys