12.9.3.1 Running a child process on a Windows terminal
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Foreign Language Interface
        • Foreign access to Prolog IO streams
          • Interacting with foreign streams
            • Running a child process on a Windows terminal
              • Swinpseudoconsole()
              • Swinrelease_pseudoconsole()
              • Swinpseudoconsole_attributes()
              • Swinfree_pseudoconsole_attributes()
    • Packages
Availability:C-language interface function
void * Swinpseudoconsole_attributes(HANDLE hpcon)
Process attribute list that puts a child on hpcon, or NULL if it cannot be built. Pass it as the lpAttributeList of a STARTUPINFOEXW and create the process with EXTENDED_STARTUPINFO_PRESENT. Not with CREATE_NO_WINDOW: that asks for a console of the child's own, which is the opposite of what the attribute says and wins.