-
Beta Was this translation helpful? Give feedback.
Answered by
Lamparter
Mar 18, 2025
Replies: 1 comment 4 replies
-
I think they can be used like: from System.Runtime.InteropServices import DllImportAttribute, PreserveSigAttribute
DllImport = clrtype.attribute(DllImportAttribute)
PreserveSig = clrtype.attribute(PreserveSigAttribute)
@staticmethod
@DllImport("user32.dll")
@PreserveSig()
@clrtype.accepts(System.IntPtr, System.String, System.String, System.UInt32)
@clrtype.returns(System.Int32)
def MessageBox(hwnd, text, caption, type): #body |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
knowwy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think they can be used like: