#include <boost/process.hpp> 
#include <boost/assign/list_of.hpp> 
#include <string> 
#include <vector> 
#include <iostream> 

using namespace boost::process; 

int main() 
{ 
  std::string exec = find_executable_in_path("notepad.exe"); 
  std::vector<std::string> args = boost::assign::list_of("notepad.exe"); 
  win32_context ctx; 
  ctx.environment = self::get_environment(); 
  win32_child c = win32_launch(exec, args, ctx); 
  std::cout << c.get_handle() << std::endl; 
} 