Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Now, was the leaked nt kernel source ever published on github?



I wonder if co-pilot will cough up stuff like these useful macros? Seems like a reasonable hack...

https://github.com/PubDom/Windows-Server-2003/blob/master/co...

  #ifdef _MAC
  # include <string.h>
  # pragma segment ClipBrd

  // On the Macintosh, the clipboard is always open.  We define a macro for
  // OpenClipboard that returns TRUE.  When this is used for error checking,
  // the compiler should optimize away any code that depends on testing this,
  // since it is a constant.
  # define OpenClipboard(x) TRUE

  // On the Macintosh, the clipboard is not closed.  To make all code behave
  // as if everything is OK, we define a macro for CloseClipboard that returns
  // TRUE.  When this is used for error checking, the compiler should optimize
  // away any code that depends on testing this, since it is a constant.
  # define CloseClipboard() TRUE

  #endif // _MAC
Just the kind of trick co-pilot should help us with?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: