2025-11-28 00:35:46 +09:00

41 lines
1.2 KiB
Plaintext

SUMMARY
=======
This sample demonstrate the use of Winhttp APIs to send a request and authenticate using default credentials with a server that require NTLM authentication
WARNING: It is not secure to use default credentials on an untrusted
server/network or internet server.
Security Note
=============
This sample is provided for educational purpose only to demonstrate how to use Windows
WinHTTP API. It is not intended to be used without modifications in a production
environment and it has not been tested in a production environment. Microsoft assumes
no liability for incidental or consequential damages should the sample code be used for
purposes other than as intended.
USAGE
=====
This sample includes Microsoft Visual Studio .NET project files. To create AuthDefaultCred.exe,
load AuthDefaultCred.sln and build the project.
To run the sample:
C:>AuthDefaultCred.exe <servername>
SOURCE FILES
=============
main.cpp
AuthDefaultCred.vcproj
AuthDefaultCred.sln
SEE ALSO
=========
For more information on Winhttp authentication, go to:
http://msdn.microsoft.com/en-us/library/aa383144.aspx
==================================
© Microsoft Corporation