all groups > dotnet sdk > november 2006
run as a user.
Posted by David Thielen at 11/27/2006 11:48:01 AM
I am trying to run impersonating another user (I prompt for the domain admin
uname & pw to use that). But when I ask for the CurrentPrincipal, it's still
me, not the domain user.
IntPtr tokenHandle = new IntPtr(0);
bool returnValue = LogonUser(userName, domainName,
password, LOGON32_LOGON... more >>
test - am I on a domain?
Posted by David Thielen at 11/27/2006 9:53:03 AM
Hi;
In my code I want to test if the CurrentPrincipal is a domain user. What is
the best way to do this?
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
... more >>
ActiveDirectory - finding & creating security groups
Posted by David Thielen at 11/25/2006 9:09:03 PM
Hi;
Is there any sample code anywhere that shows:
1) How to find if a given security group exists on the domain.
2) How to create that group if it doesn't exist.
3) How to determine if the current user has permission to perform steps (1)
or (2) above.
--
thanks - dave
david_at_windward... more >>
SmtpClient accepts bogus values.
Posted by David Thielen at 11/25/2006 7:11:01 PM
The following throws no exceptions - why?
SmtpClient client = new SmtpClient("bogus");
client.UseDefaultCredentials = true;
MailMessage mail = new MailMessage("bogus", "bogus", "Windward test email",
"This is an email sent from the Windward RePortal installer");
client.Send(mail);
Am I ... more >>
security violation in code, but ok from services applet
Posted by David Thielen at 11/22/2006 12:57:02 PM
Hi;
I am trying to change a registry entry for a ervices in a C# forms (not
ASP.NET) app. When I call the following I get an UnauthorizedAccessException:
RegistryKey key =
Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Services\\W3SVC");
key.SetValue("Start", 2);
But I can ... more >>
Where are the J# language packs
Posted by David Thielen at 11/22/2006 10:53:02 AM
Hi;
The url http://msdn2.microsoft.com/en-us/library/aa480243.aspx lists several
language packs for J# - but I can't find where to download them. Any ideas?
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm... more >>
How to retrieve application icon
Posted by Ajak at 11/22/2006 12:00:00 AM
Hi,
How do I retrieve my application icon (set in the project properties)
through code (using Framework 1.1).
Using Icon constructors is possible but I don't know the icon name to pass
to it.
Thanks
... more >>
How do I tell if the J# redist is installed
Posted by David Thielen at 11/16/2006 5:02:01 PM
Hi;
1) From C# code how can we tell if the J# redistributable is installed?
2) If not, what url should we use to take them right to downloading it?
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How do I tell if .NET 2.0 is installed
Posted by David Thielen at 11/16/2006 5:01:03 PM
Hi;
1) From our setup program (in C++) how can I tell if .NET is installed?
2) Is there a url we can then redirect them to which will show the .NET
selection to download & install? We have trouble with using the Windows
Update page because the .NET install is an optional install and therefor... more >>
TcpClient ReceiveTimeout only works in first call
Posted by Thorsten Dittmar at 11/15/2006 12:00:00 AM
Hello everybody,
could you please help me with the following problem:
I'm using a TcpClient to connect to a server. When I send a message and
the server doesn't reply in time, I send the same message again until a
given number of loops is reached or the server sends a reply.
I do not wa... more >>
How to use Win32 MOUSEHOOKSTRUCT structure with C# ?
Posted by aimoz NO[at]SPAM intechinfo.fr at 11/13/2006 7:05:02 AM
Hello,
I'm writing a .NET program which is using a mouse hook but everytime the
filter function is invoked a argumentException is thrown.
Here is the part of code i'm using to convert the structure :
this.MouseData = (MouseHookStruct)Marshal.PtrToStructure(lParam,
typeof(MouseHookStruc... more >>
SSLStream broken due to heap fragmentation
Posted by Chris Mullins at 11/9/2006 2:15:47 PM
We've been using the SSLStream class found in System.Net.Security to build a
giant Sockets server that provides TLS encryption at the channel leve.
Before .Net 2.0, we used an open-source encryption channel from Mentalis,
and have even looked at the Mono implementation for doing this.
The p... more >>
hashtable & lock
Posted by David Thielen at 11/9/2006 8:58:02 AM
Hi;
I have a hashtable that I am using in my codebehind in ASP.NET. In that
codebehind the hashtable is read, written to, and enumerated. Each entry in
the hashtable is tied to a session - the SessionId is the key for the entry.
So I will only have 1 thread writing to or reading from a spec... more >>
Mirror for Windows SDK?
Posted by Jon Davis at 11/8/2006 3:04:47 PM
Microsoft's download link for the SDK for Windows Vista RTM & .NET 3.0 isn't
responding. Does anyone know of a mirror?
Jon
... more >>
Big problem with GAC and local
Posted by David Thielen at 11/7/2006 2:55:02 PM
Hi;
We have another problem with GAC vs local.
We have a library that our users want to install with the libraries in the
GAC (as recomended by Microsoft). These are programmers only.
We have a Word Add-In where the libraries are installed locally with the
Add-In (as recomended by Micro... more >>
writing to the 32-bit registry from a 64-bit application (that darn WOW6432Node)
Posted by Chris Mullins at 11/3/2006 3:14:47 PM
I need to write to the 32-bit registry, and need to do so from a 64-bit MSI.
It never occurred to me that this would be difficult...
I have an application that installs some 64-bit binaries for development use
in Visual Studio 2005. As such I want them to appear in the .Net References
menu w... more >>
|