Sunday, 18 August 2013

How to Restart the PC Using QTP

Dim OpSysSet
Set OpSysSet = GetObject(”winmgmts:{(Shutdown)}//./root/cimv2″).ExecQuery(”select * from
Win32_OperatingSystem where Primary=true”)
for each OpSys in OpSysSet
OpSys.Reboot()
HWND – HWND is a lowlevel pointer to the memory loacation from where the definition of any object in memory starts. HWND is used to access those objects.

No comments:

Post a Comment