Hello Sheetal,
You can use the Windows SDK SendMessage function.
#include "windows.h"
HWND hwnd;
hwnd = (HWND)GetCVIWindowHandle();
To turn off the monitor:
SendMessage(hwnd, WM_SYSCOMMAND, SC_MONITORPOWER, 2) ;
To put the monitor in standby:
SendMessage(hwnd, WM_SYSCOMMAND, SC_MONITORPOWER, 1) ;
To turn on the monitor:
SendMessage(hwnd, WM_SYSCOMMAND, SC_MONITORPOWER, -1) ;
More documentation on these functions can be found on MSDN.
Thanks.
Wendy L
LabWindows/CVI Developer Newsletter