int
-wmain(int argc, WCHAR *argv[])
+main(int argc, CHAR *argv[])
{
+#if 0
SERVICE_TABLE_ENTRY ServiceTable[2] =
{
{SERVICE_NAME, ServiceMain},
DPRINT("TelnetD: main() started\n");
StartServiceCtrlDispatcher(ServiceTable);
+#endif
telnetd_main();
return 0;
}
received = ReceiveLine(client->socket, password, sizeof(password), Password );
+
+#if 0
if (received < 0) {
closesocket(client->socket);
free(client);
*terminator = '\0';
}
}
-
+#endif
/* TODO: do authentication here */
printf("User '%s' logged on\n", userID);
+#if 0
strcpy(client->userID, userID);
if (send(client->socket, logonPrompt, strlen(logonPrompt), 0) < 0) {
closesocket(client->socket);
free(client);
return 0;
}
+#endif
RunShell(client);
return 0;
}
-<module name="telnetd" type="win32cui" installbase="system32" installname="telnetd.exe" allowwarnings="true" unicode="yes">
+<module name="telnetd" type="win32cui" installbase="system32" installname="telnetd.exe" allowwarnings="true" unicode="no">
<include base="reactos"></include>
<include base="telnetd">..</include>