annotate R/rdc/demo/win32.R @ 30:baf087cf5971

- fixed two ref counting problems - minor improvements
author Tassilo Philipp
date Fri, 10 Apr 2020 20:35:19 +0200
parents 0cfcc391201f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
1 # example: message box on windows
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
2
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
3 h <- rdcLoad("user32")
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
4 f <- rdcFind(h,"MessageBoxA")
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
5 rdcCall(f,"ippi)v",0,"hallo","welt",0)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
6 rdcFree(h)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
7