winlogon.cpp revision b8908d384db2324f04a2f68a13e67ea32ebf609a
9c0076729ec8138e89ce8a6af9a772b68f1f8dc7vboxsync * VBox Remote Desktop Protocol:
9c0076729ec8138e89ce8a6af9a772b68f1f8dc7vboxsync * External Authentication Library:
9c0076729ec8138e89ce8a6af9a772b68f1f8dc7vboxsync * Windows Logon Authentication.
9c0076729ec8138e89ce8a6af9a772b68f1f8dc7vboxsync * Copyright (C) 2006-2010 Oracle Corporation
9c0076729ec8138e89ce8a6af9a772b68f1f8dc7vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
9c0076729ec8138e89ce8a6af9a772b68f1f8dc7vboxsync * available from http://www.virtualbox.org. This file is free software;
9c0076729ec8138e89ce8a6af9a772b68f1f8dc7vboxsync * you can redistribute it and/or modify it under the terms of the GNU
9c0076729ec8138e89ce8a6af9a772b68f1f8dc7vboxsync * General Public License (GPL) as published by the Free Software
9c0076729ec8138e89ce8a6af9a772b68f1f8dc7vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
9c0076729ec8138e89ce8a6af9a772b68f1f8dc7vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
9c0076729ec8138e89ce8a6af9a772b68f1f8dc7vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
9c0076729ec8138e89ce8a6af9a772b68f1f8dc7vboxsync/* If defined, debug messages will be written to the specified file. */
8b98c71a5a01d215eafbc3605cb7a66cc91ea774vboxsync// #define AUTH_DEBUG_FILE_NAME "\\VBoxAuth.log"
8b98c71a5a01d215eafbc3605cb7a66cc91ea774vboxsyncAuthResult AUTHCALL AuthEntry (const char *szCaller,
8b98c71a5a01d215eafbc3605cb7a66cc91ea774vboxsync const char *szUser,
8b98c71a5a01d215eafbc3605cb7a66cc91ea774vboxsync const char *szDomain,
9c0076729ec8138e89ce8a6af9a772b68f1f8dc7vboxsync /* LOGON32_LOGON_INTERACTIVE is intended for users who will be interactively using the computer,
9c0076729ec8138e89ce8a6af9a772b68f1f8dc7vboxsync * such as a user being logged on by a terminal server, remote shell, or similar process.
9c0076729ec8138e89ce8a6af9a772b68f1f8dc7vboxsync dprintf("u[%s], d[%s], p[%s]\n", lpszUsername, lpszDomain, lpszPassword);
9c0076729ec8138e89ce8a6af9a772b68f1f8dc7vboxsync dprintf("LogonUser success. hToken = %p\n", hToken);
9c0076729ec8138e89ce8a6af9a772b68f1f8dc7vboxsync dprintf("LogonUser failed %08X\n", GetLastError ());
9c0076729ec8138e89ce8a6af9a772b68f1f8dc7vboxsync/* Verify the function prototype. */