actually running as a service.\r
This will save time when running with no arguments from a command prompt.\r
*/\r
- if (_fileno(stdin) < 0) {\r
+ if (! GetStdHandle(STD_INPUT_HANDLE)) {\r
/* Set up function pointers. */\r
if (get_imports()) exit(111);\r
\r