Not supported at present. I'd have to think a little about it, but at first glance, it seems doable. I've not look under the surface at how the CLR handles PInvoke via DLLImport, so some investigation is required.
Attributes are supported on method defs in various places (but not yet documented). Allowing the equivalent of 'extern', specifically not having a method definition with the declaration is not supported where it would count. If you could give me a small example of how you would like to use this, I can take a look. -David On Dec 1, 8:09 am, Fiel Cabral <e4696wyoa63emq6w3250kiw60i4...@gmail.com> wrote: > Does ClojureCLR support PInvoke and the DLLImport attribute or > something similar? > > (e.g., from PInvoke.net) > DllImport("crypt32.dll", EntryPoint = "CertGetNameString", CharSet = > CharSet.Auto, SetLastError = true)] > static extern System.UInt32 CertGetNameString(IntPtr CertContext, > System.UInt32 lType, System.UInt32 lFlags, IntPtr pTypeParameter, > System.Text.StringBuilder str, system.UInt32 cch); > > Thanks. > > -Fiel -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en