일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- MSSQL PYTHON
- 크롤링
- 파이썬
- windows10
- c#
- Serial
- rs422
- matplot
- Python
- 티스토리 초대장
- oracle
- rs485
- 윈도우10
- M2M
- django
- sql developer
- Visual Studio Code
- 텐서플로우
- 자본주의
- MEAN Stack
- MX Component
- 오라클
- 장고
- pymssql
- 딥러닝
- tensorflow
- vscode
- scrapy
- MSSQL
- PYTHON MSSQL
Archives
- Today
- Total
안까먹을라고 쓰는 블로그
[C#] 모니터 ON/OFF 제어 본문
반응형
using System.Runtime.InteropServices; const int WM_SYSCOMMAND = 0x0112; const int SC_MONITORPOWER = 0xF170; const int MONITOR_ON = -1; const int MONITOR_OFF = 2; const int MONITOR_STANBY = 1; [DllImport("user32.dll")] private static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam); // Monitor On SendMessage(this.Handle.ToInt32(), WM_SYSCOMMAND, SC_MONITORPOWER, MONITOR_ON); // Monitor Off SendMessage(this.Handle.ToInt32(), WM_SYSCOMMAND, SC_MONITORPOWER, MONITOR_OFF);
반응형
Comments