Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    # Restore original foreground/background colours.
    set_attr($h, $current);
    print "\n All Done\n";
    
  2. or download this
    SV * OpenDevice() {
      HANDLE handle;
      /* Do stuff that creates the handle */
      return newSVuv(handle);
    
  3. or download this
    void pass_handle(SV * handle) {
      HANDLE h = (HANDLE)SvUV(handle);
      /* Do stuff with the handle */
    }
    
  4. or download this
    unsigned long OpenDevice() {
      HANDLE handle;
      /* Do stuff that creates the handle */
      return (unsigned long)handle;
    
  5. or download this
    void pass_handle(unsigned long handle) {
      HANDLE h = (HANDLE)handle;
      /* Do stuff with the handle */
    }