Mercurial > pub > dyncall > bindings
comparison python/pydc/examples/win32msgbox.py @ 0:0cfcc391201f
initial from svn dyncall-1745
author | Daniel Adler |
---|---|
date | Thu, 19 Mar 2015 22:26:28 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:0cfcc391201f |
---|---|
1 from pydc import * | |
2 | |
3 """ show message box on windows """ | |
4 | |
5 user32 = load("user32") | |
6 fpMessageBoxA = find(user32,"MessageBoxA") | |
7 def showMessage(name,title="dyncall demo",type=0): | |
8 call(fpMessageBoxA,"ippi)v",0,name,title,type) | |
9 | |
10 showMessage("hello") | |
11 |