asm으로 메시지 박스 띠우기
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #include <windows.h> #include <iostream> using namespace std; void main() { char title[] = "Assembly for Win32"; char str[] = "asm을 이용해 메시지 박스 띠우기"; _asm { xor eax, eax push eax lea eax, dword ptr title push eax lea eax, dword ptr str push eax xor eax, eax push eax call dword ptr MessageBox // MessageBox(NULL, Title, Name, MB_OK); } } | cs |
반응형
'Programming > C/C++/C#' 카테고리의 다른 글
C# - 스레드를 이용한 외부 데이터 받기(With Tread) (0) | 2017.07.11 |
---|---|
C# 윈도우 핸들 찾기(FIndWindow) (0) | 2017.07.02 |
C# - 스레드의 생명주기 확인 예제 (0) | 2017.06.17 |
C# Network 예제 (0) | 2017.06.06 |
[C#] string 예제 (0) | 2016.09.25 |
C# enum 타입 foreach 예제 (0) | 2016.08.04 |
asm - 어셈블리 까먹을 까봐 정리함. (0) | 2016.07.14 |
C++ - 프로퍼티 get set (0) | 2016.07.13 |