/* Copyright (C) 2015 Vladislav Vaintroub, Georg Richter and Monty Program Ab Thisprogramisfreesoftware;youcanredistributeitand/or modifyitunderthetermsoftheGNUGeneralPublicLicenseas publishedbytheFreeSoftwareFoundation;version2ofthe License. Thisprogramisdistributedinthehopethatitwillbeuseful, butWITHOUTANYWARRANTY;withouteventheimpliedwarrantyof MERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.Seethe GNUGeneralPublicLicenseformoredetails. YoushouldhavereceivedacopyoftheGNUGeneralPublicLicense alongwiththisprogram;ifnot,writetotheFreeSoftware
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
/* no user name yet ? read the client handshake packet with the user name */ if (info->user_name == 0)
{ if (vio->read_packet(vio, &pkt) < 0) return CR_ERROR;
}
info->password_used= PASSWORD_USED_NO_MENTION;
vio->info(vio, &vio_info); if (vio_info.protocol != MYSQL_VIO_PIPE) return CR_ERROR;
/* Impersonate the named pipe peer, and retrieve the user name */ if (!ImpersonateNamedPipeClient(vio_info.handle)) return CR_ERROR;
username_length=UNLEN;
ret= CR_ERROR; if (GetUserName(username, &username_length))
{ /* Always compare names case-insensitive on Windows.*/ if (_stricmp(username, info->user_name) == 0)
ret= CR_OK;
}
RevertToSelf();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.