<?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[DOT.NET Thraed תחת משתמש אחר]]></title><description><![CDATA[<p dir="auto">איך אפשר להריץ thread תחת משתמש אחר.<br />
כך שאפשר לספק שם משתמש וסיסמא ולהריץ את הthread.<br />
אם יש דוגמא זה מעולה. עדיף C#.</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב06/11/2017 19:21 (+02:00)</em></p>
]]></description><link>https://tchumim.com/topic/1373/dot-net-thraed-תחת-משתמש-אחר</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 13:06:04 GMT</lastBuildDate><atom:link href="https://tchumim.com/topic/1373.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 29 Jan 2018 11:52:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DOT.NET Thraed תחת משתמש אחר on Mon, 29 Jan 2018 11:52:19 GMT]]></title><description><![CDATA[<p dir="auto">דוגמא:</p>
<pre><code>using (SimpleImpersonation.Impersonation.LogonUser("", "userName", "password", SimpleImpersonation.LogonType.Interactive))
{
	PrintDocument pd = new PrintDocument();
	pd.PrinterSettings.PrinterName = printerName;
	pd.PrintPage += PrintPage;
	pd.Print();
}

private void PrintPage(object o, PrintPageEventArgs e)
{
	e.Graphics.DrawImage(new Bitmap(fileName), 
	new Rectangle(0, 0, e.PageSettings.PaperSize.Width, e.PageSettings.PaperSize.Height));
}
</code></pre>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב06/11/2017 22:21 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/9406</link><guid isPermaLink="true">https://tchumim.com/post/9406</guid><dc:creator><![CDATA[מנצפך 0]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:52:19 GMT</pubDate></item><item><title><![CDATA[Reply to DOT.NET Thraed תחת משתמש אחר on Mon, 29 Jan 2018 11:52:18 GMT]]></title><description><![CDATA[<p dir="auto">אוקי, אז צריך להתעמק בבעיה. ובשביל זה צריך לראות את הקוד בדיוק.</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב06/11/2017 21:57 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/9405</link><guid isPermaLink="true">https://tchumim.com/post/9405</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:52:18 GMT</pubDate></item><item><title><![CDATA[Reply to DOT.NET Thraed תחת משתמש אחר on Mon, 29 Jan 2018 11:52:18 GMT]]></title><description><![CDATA[<p dir="auto">לא עזר.</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב06/11/2017 21:53 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/9404</link><guid isPermaLink="true">https://tchumim.com/post/9404</guid><dc:creator><![CDATA[מנצפך 0]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:52:18 GMT</pubDate></item><item><title><![CDATA[Reply to DOT.NET Thraed תחת משתמש אחר on Mon, 29 Jan 2018 11:52:18 GMT]]></title><description><![CDATA[<p dir="auto">אולי תשחק עם האפשרויות שישנם במקום הערך הזה<br />
LogonType.NewCredentials</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב06/11/2017 21:35 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/9403</link><guid isPermaLink="true">https://tchumim.com/post/9403</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:52:18 GMT</pubDate></item><item><title><![CDATA[Reply to DOT.NET Thraed תחת משתמש אחר on Mon, 29 Jan 2018 11:52:18 GMT]]></title><description><![CDATA[<p dir="auto">זו בעיה ברמת המערכת.<br />
לא ברמת הDLL שמובא כאן.<br />
ניסיתי גם פרוייקט אחר שעובד באותה צורה.</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב06/11/2017 21:15 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/9402</link><guid isPermaLink="true">https://tchumim.com/post/9402</guid><dc:creator><![CDATA[מנצפך 0]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:52:18 GMT</pubDate></item><item><title><![CDATA[Reply to DOT.NET Thraed תחת משתמש אחר on Mon, 29 Jan 2018 11:52:18 GMT]]></title><description><![CDATA[<p dir="auto">אני לא מצליח ליצור משימת הדפסה תחת משתמש אחר.<br />
הוא כותב לי<br />
System.ComponentModel.Win32Exception (0x80004005): ‏‏שם הספריה אינו חוקי</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב06/11/2017 20:54 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/9401</link><guid isPermaLink="true">https://tchumim.com/post/9401</guid><dc:creator><![CDATA[מנצפך 0]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:52:18 GMT</pubDate></item><item><title><![CDATA[Reply to DOT.NET Thraed תחת משתמש אחר on Mon, 29 Jan 2018 11:52:17 GMT]]></title><description><![CDATA[<p dir="auto">תודה. אנסה.</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב06/11/2017 20:28 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/9400</link><guid isPermaLink="true">https://tchumim.com/post/9400</guid><dc:creator><![CDATA[מנצפך 0]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:52:17 GMT</pubDate></item><item><title><![CDATA[Reply to DOT.NET Thraed תחת משתמש אחר on Mon, 29 Jan 2018 11:52:17 GMT]]></title><description><![CDATA[<p dir="auto">אתה השתמשת עם קוד מקור? (יש לך VS ישן ולכן לא קימפל לך תוכנת C# חדשה).<br />
תמיד תשתמש עם התקנת נוגט. זה חלק בטוח טוב ומהיר.</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב06/11/2017 20:11 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/9399</link><guid isPermaLink="true">https://tchumim.com/post/9399</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:52:17 GMT</pubDate></item><item><title><![CDATA[Reply to DOT.NET Thraed תחת משתמש אחר on Mon, 29 Jan 2018 11:52:17 GMT]]></title><description><![CDATA[<p dir="auto">טוב. בינתיים מחקתי אותם.<br />
זה עובד מעולה!!!<br />
תודה רבה!</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב06/11/2017 20:06 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/9398</link><guid isPermaLink="true">https://tchumim.com/post/9398</guid><dc:creator><![CDATA[מנצפך 0]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:52:17 GMT</pubDate></item><item><title><![CDATA[Reply to DOT.NET Thraed תחת משתמש אחר on Mon, 29 Jan 2018 11:52:16 GMT]]></title><description><![CDATA[<p dir="auto">מה זה :<br />
public int ErrorCode =&gt; ((Win32Exception)InnerException).ErrorCode;<br />
מהו הסימון &lt;=<br />
הוא עושה לי שגיאה</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב06/11/2017 19:55 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/9397</link><guid isPermaLink="true">https://tchumim.com/post/9397</guid><dc:creator><![CDATA[מנצפך 0]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:52:16 GMT</pubDate></item><item><title><![CDATA[Reply to DOT.NET Thraed תחת משתמש אחר on Mon, 29 Jan 2018 11:52:16 GMT]]></title><description><![CDATA[<p dir="auto">אין הבדל אם אתה בטריד הראשי או המשני.<br />
הספריה הזאת: <a href="https://github.com/mj1856/SimpleImpersonation" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/mj1856/SimpleImpersonation</a><br />
מאפשרת לעשות עם שורת קוד אחת:</p>
<pre><code>using (Impersonation.LogonUser(Environment.MachineName, username, password, LogonType.NewCredentials))
	action();
</code></pre>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב06/11/2017 19:47 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/9396</link><guid isPermaLink="true">https://tchumim.com/post/9396</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:52:16 GMT</pubDate></item></channel></rss>