WinStd/_cred_8h.html

125 lines
10 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WinStd: include/WinStd/Cred.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">WinStd
</div>
<div id="projectbrief">Additional templates and function helpers for Microsoft Windows using Standard C++ classes</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_6f50bb204833d887b928571856c82fbe.html">WinStd</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">Cred.h File Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Integrates WinStd classes with Microsoft Credentials API.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="_common_8h_source.html">Common.h</a>&quot;</code><br />
<code>#include &lt;wincred.h&gt;</code><br />
<code>#include &lt;memory&gt;</code><br />
</div>
<p><a href="_cred_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structwinstd_1_1_cred_free__delete.html">winstd::CredFree_delete&lt; _Ty &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deleter for unique_ptr using CredFree. <a href="structwinstd_1_1_cred_free__delete.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structwinstd_1_1_cred_free__delete_3_01___ty_0f_0e_4.html">winstd::CredFree_delete&lt; _Ty[]&gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deleter for unique_ptr to array of unknown size using CredFree. <a href="structwinstd_1_1_cred_free__delete_3_01___ty_0f_0e_4.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga66f305cb6a0bf6d4f2c6f2f49180df9b"><td class="memTemplParams" colspan="2">template&lt;class _Traits , class _Ax &gt; </td></tr>
<tr class="memitem:ga66f305cb6a0bf6d4f2c6f2f49180df9b"><td class="memTemplItemLeft" align="right" valign="top">static BOOL&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group___win_std_cred_a_p_i.html#ga66f305cb6a0bf6d4f2c6f2f49180df9b">CredProtectA</a> (BOOL fAsSelf, LPCSTR pszCredentials, DWORD cchCredentials, std::basic_string&lt; char, _Traits, _Ax &gt; &amp;sProtectedCredentials, CRED_PROTECTION_TYPE *ProtectionType)</td></tr>
<tr class="memdesc:ga66f305cb6a0bf6d4f2c6f2f49180df9b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Encrypts the specified credentials so that only the current security context can decrypt them. <a href="group___win_std_cred_a_p_i.html#ga66f305cb6a0bf6d4f2c6f2f49180df9b">More...</a><br /></td></tr>
<tr class="separator:ga66f305cb6a0bf6d4f2c6f2f49180df9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa140d15e40f91b075ad1fa69429a0922"><td class="memTemplParams" colspan="2">template&lt;class _Traits , class _Ax &gt; </td></tr>
<tr class="memitem:gaa140d15e40f91b075ad1fa69429a0922"><td class="memTemplItemLeft" align="right" valign="top">static BOOL&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group___win_std_cred_a_p_i.html#gaa140d15e40f91b075ad1fa69429a0922">CredProtectW</a> (BOOL fAsSelf, LPCWSTR pszCredentials, DWORD cchCredentials, std::basic_string&lt; wchar_t, _Traits, _Ax &gt; &amp;sProtectedCredentials, CRED_PROTECTION_TYPE *ProtectionType)</td></tr>
<tr class="memdesc:gaa140d15e40f91b075ad1fa69429a0922"><td class="mdescLeft">&#160;</td><td class="mdescRight">Encrypts the specified credentials so that only the current security context can decrypt them. <a href="group___win_std_cred_a_p_i.html#gaa140d15e40f91b075ad1fa69429a0922">More...</a><br /></td></tr>
<tr class="separator:gaa140d15e40f91b075ad1fa69429a0922"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga289617e5856f3f4fd18b86754726407b"><td class="memTemplParams" colspan="2">template&lt;class _Traits , class _Ax &gt; </td></tr>
<tr class="memitem:ga289617e5856f3f4fd18b86754726407b"><td class="memTemplItemLeft" align="right" valign="top">static BOOL&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group___win_std_cred_a_p_i.html#ga289617e5856f3f4fd18b86754726407b">CredUnprotectA</a> (BOOL fAsSelf, LPCSTR pszProtectedCredentials, DWORD cchCredentials, std::basic_string&lt; char, _Traits, _Ax &gt; &amp;sCredentials)</td></tr>
<tr class="memdesc:ga289617e5856f3f4fd18b86754726407b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decrypts credentials that were previously encrypted by using the CredProtect function. <a href="group___win_std_cred_a_p_i.html#ga289617e5856f3f4fd18b86754726407b">More...</a><br /></td></tr>
<tr class="separator:ga289617e5856f3f4fd18b86754726407b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac5fc6137d0a5f7c4bc713676e08a214e"><td class="memTemplParams" colspan="2">template&lt;class _Traits , class _Ax &gt; </td></tr>
<tr class="memitem:gac5fc6137d0a5f7c4bc713676e08a214e"><td class="memTemplItemLeft" align="right" valign="top">static BOOL&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group___win_std_cred_a_p_i.html#gac5fc6137d0a5f7c4bc713676e08a214e">CredUnprotectW</a> (BOOL fAsSelf, LPCWSTR pszProtectedCredentials, DWORD cchCredentials, std::basic_string&lt; wchar_t, _Traits, _Ax &gt; &amp;sCredentials)</td></tr>
<tr class="memdesc:gac5fc6137d0a5f7c4bc713676e08a214e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decrypts credentials that were previously encrypted by using the CredProtect function. <a href="group___win_std_cred_a_p_i.html#gac5fc6137d0a5f7c4bc713676e08a214e">More...</a><br /></td></tr>
<tr class="separator:gac5fc6137d0a5f7c4bc713676e08a214e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3279ce4382680fc19b1a89ea5a3f261e"><td class="memItemLeft" align="right" valign="top">static BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___win_std_cred_a_p_i.html#ga3279ce4382680fc19b1a89ea5a3f261e">CredEnumerate</a> (LPCTSTR Filter, DWORD Flags, DWORD *Count, std::unique_ptr&lt; PCREDENTIAL[], <a class="el" href="structwinstd_1_1_cred_free__delete.html">winstd::CredFree_delete</a>&lt; PCREDENTIAL[]&gt; &gt; &amp;cCredentials) noexcept</td></tr>
<tr class="memdesc:ga3279ce4382680fc19b1a89ea5a3f261e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumerates the credentials from the user's credential set. The credential set used is the one associated with the logon session of the current token. The token must not have the user's SID disabled. <a href="group___win_std_cred_a_p_i.html#ga3279ce4382680fc19b1a89ea5a3f261e">More...</a><br /></td></tr>
<tr class="separator:ga3279ce4382680fc19b1a89ea5a3f261e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Integrates WinStd classes with Microsoft Credentials API. </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Mar 7 2022 11:58:55 for WinStd by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>