Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: SuppressUnmanagedCodeSecurity

$
0
0

managed app compiled with $set noilnative

         declare myhandle as binary-long = self::Handle as binary-long
         declare myret as binary-long
         call "subprog" using myhandle myret

native subprog.

      working-storage section.
      01 pp  procedure-pointer.
      linkage section.
      01 winhandle    pic x(4) comp-5.
      01 retlength    pic x(4) comp-5.
      procedure division using winhandle retlength.
          set pp to entry "User32"
          call winapi "GetWindowTextLengthA"
             using by value winhandle
             returning retlength


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>