<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[HGLOBAL &amp;lt;-&amp;gt; char (Security-Descriptor)]]></title><description><![CDATA[<p>Warum geht das nicht ?</p>
<pre><code class="language-cpp">PSECURITY_DESCRIPTOR psd;
	PSID psid;
	SID_NAME_USE snu;
	DWORD sdsize;
	BOOL OwnerDefaulted;
	char *AccountName, *DomainName;
	DWORD AccountLen, DomainLen;

		psd = GlobalAlloc(GMEM_FIXED, 1000);
	AccountName = GlobalAlloc(GMEM_FIXED, 1000);//error C2440: '=': 'HGLOBAL' kann nicht in 'char *' konvertiert werden
	DomainName = GlobalAlloc(GMEM_FIXED, 1000);// dito
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/124750/hglobal-lt-gt-char-security-descriptor</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 08:38:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/124750.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 31 Oct 2005 10:07:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HGLOBAL &amp;lt;-&amp;gt; char (Security-Descriptor) on Mon, 31 Oct 2005 10:07:50 GMT]]></title><description><![CDATA[<p>Warum geht das nicht ?</p>
<pre><code class="language-cpp">PSECURITY_DESCRIPTOR psd;
	PSID psid;
	SID_NAME_USE snu;
	DWORD sdsize;
	BOOL OwnerDefaulted;
	char *AccountName, *DomainName;
	DWORD AccountLen, DomainLen;

		psd = GlobalAlloc(GMEM_FIXED, 1000);
	AccountName = GlobalAlloc(GMEM_FIXED, 1000);//error C2440: '=': 'HGLOBAL' kann nicht in 'char *' konvertiert werden
	DomainName = GlobalAlloc(GMEM_FIXED, 1000);// dito
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/904349</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/904349</guid><dc:creator><![CDATA[Schwefel]]></dc:creator><pubDate>Mon, 31 Oct 2005 10:07:50 GMT</pubDate></item><item><title><![CDATA[Reply to HGLOBAL &amp;lt;-&amp;gt; char (Security-Descriptor) on Mon, 31 Oct 2005 10:21:49 GMT]]></title><description><![CDATA[<p>wie wäre es mit einem cast, da hglobal == handle == void* ist</p>
]]></description><link>https://www.c-plusplus.net/forum/post/904362</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/904362</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Mon, 31 Oct 2005 10:21:49 GMT</pubDate></item><item><title><![CDATA[Reply to HGLOBAL &amp;lt;-&amp;gt; char (Security-Descriptor) on Mon, 31 Oct 2005 14:54:22 GMT]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/904628</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/904628</guid><dc:creator><![CDATA[Schwefel]]></dc:creator><pubDate>Mon, 31 Oct 2005 14:54:22 GMT</pubDate></item><item><title><![CDATA[Reply to HGLOBAL &amp;lt;-&amp;gt; char (Security-Descriptor) on Mon, 31 Oct 2005 14:59:20 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">AccountName = (char*)GlobalAlloc(GMEM_FIXED, 1000);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/904633</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/904633</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Mon, 31 Oct 2005 14:59:20 GMT</pubDate></item></channel></rss>