Quantcast
Channel: Windows SDK Support Team Blog
Browsing all 126 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Dealing with Administrator and standard user’s context

With introduction of UAC, I often get two questions for Windows Vista and later.1)      How to launch an application in the Administrative context from an application which is running in standard...

View Article


Image may be NSFW.
Clik here to view.

Compliance of .Net security libraries about verifying a CMS Advanced...

CAdES is an extension of CMS and these extensions, where present, require a different process to check the signature. Our .Net security libraries (System.Security.Cryptography) though verify a CAdES...

View Article


Image may be NSFW.
Clik here to view.

Getting a “System.ArgumentException: Value was invalid” when trying to sign...

 Here is the symptom: 1.    You are using RSACryptoServiceProvider for computing SHA-2 signatures. 2.    Doing this you get unhandled exceptions of type "System.ArgumentException" in mscorlib.dll...

View Article

Image may be NSFW.
Clik here to view.

Getting a “System.ArgumentException: Value was invalid” when trying to sign...

1. You are using RSACryptoServiceProvider for computing SHA-2 signatures. 2. Doing this you get unhandled exceptions of type "System.ArgumentException" in mscorlib.dll saying "Value was invalid". 3. A...

View Article

Image may be NSFW.
Clik here to view.

How to take a quartz log?

 Many a times I do get this questions from my varied customers and colleagues and I cannot answer them instantly or even after looking here and there for a day. So I just wanted to blog it.Please see...

View Article


Image may be NSFW.
Clik here to view.

How to get the CSP name from a certificate containing the private key?

 I was testing with some code to get the CSP name from a certificate containing the private key. A sample code is shown below: // GetCSPFromCert.cpp : Defines the entry point for the console...

View Article

Image may be NSFW.
Clik here to view.

Connect() fails with error 10061 (WSAECONNREFUSED) / datagram sent via...

 A server application (TCP) using socket functions is waiting on NIC address to receive connection from the client.sockaddr_in service;service.sin_family = AF_INET;service.sin_addr.s_addr =...

View Article

Image may be NSFW.
Clik here to view.

Iphlpapi!AddIpAddress() adds the IP address but other machines can’t locate...

On Windows Server 2003, when an IP Address is added to the machine’s adapter, a gratuitous ARP packet is broadcast to the network. This indicates to other machines that there is a change in the IP...

View Article


Image may be NSFW.
Clik here to view.

Microsoft Platform Ready Test Tool & Windows Error Reporting

Hello everyone, My name is Nathan Manis.  I work as part of the Microsoft Developer Support team here at Microsoft support.  My team supports customers who are using the technologies and tools that are...

View Article


Image may be NSFW.
Clik here to view.

How can my application work when UAC is enabled and fail when it is disabled?

Hello Everyone, My name is Frank Kim and I work in Developer Support.  My expertise is in Windows Security (Authorization + Authentication), Remote Desktop and Windows Services.  For my first blog...

View Article

Image may be NSFW.
Clik here to view.

Launching a process as a normal user from an elevated user.

A frequent question from our customers is the ability to launch a non-elevated user from an elevated user.  This can typically happen from an installer application which is elevated and you want to...

View Article

Image may be NSFW.
Clik here to view.

How to programmatically create a LogonService or Network Service token with...

A lot of Developers have asked if it is possible to generate a token that represents the Local Service or Network Service account without stealing a token.  You can programmatically generate atoken...

View Article

Image may be NSFW.
Clik here to view.

Using WinVerifyTrust API to verify detached signatures for executable files

 Writing today to discuss an interesting issue that our Microsoft developer support received recently on usage of the WinVerifyTrust API. The support case was opened to report a memory leak was being...

View Article


Image may be NSFW.
Clik here to view.

Get a kernel dump of a 2012 R2 Hyper-V server with Powershell

Jeff here,There is a new Powershell command that you can use to get a kernel dump of a VM in Server 2012 R2. The cmdlet injects a non-maskableinterrupt into the VM. (This is an old method of getting a...

View Article

Image may be NSFW.
Clik here to view.

Why am I receiving the Error Code 740 - “The requested operation requires...

Sometimes CreateProcess(), CreateProcessAsUser(), CreateProcessWithTokenW() or CreateProcessWithLogonW() may fail with the error code 740 or “The requested operation requires elevation”. What does this...

View Article


Image may be NSFW.
Clik here to view.

UDP - Closesocket() takes upto 5 seconds to return in disconnect/remote host...

The following write up from the support lines comes to us by one of the senior and key resources in Windows SDK EMEA/INDIA team, Nitin DhawanSocket(DATAGRAM…);Sendto(….);Closesocket(); The above works...

View Article

Image may be NSFW.
Clik here to view.

GetShortPathName() doesn’t return short path name

Another amazing write up from Nitin Dhawan, Senior Support Engineer, Windows SDK team, EMEA/INDIABackground of the issue======================This Issue was reported as, GetShortPathName() returned...

View Article


Image may be NSFW.
Clik here to view.

Poor Network Performance with the CPU Stuck in WfpAleFastUdplnspection()

 Jeff here again. Today’s post is about the Windows Firewall and a potential performance problem. When Windows 7, 8, 8.1, 2008 R2, 2012 or 2012 R2 are under very heavy load (20,000+ incoming UDP...

View Article

Image may be NSFW.
Clik here to view.

RunAs Verb (Process.Start) doesn't work from a LocalSystem .NET Service

The Process.Start method in System.Diagnostics is equivalent to CreateProcess() in Win32. If you want to launch a process as a different user, in Win32 you either need to call CreateProcessAsUser,...

View Article

Image may be NSFW.
Clik here to view.

Getting Linger to RST a connection in .NET

Jeff here again from the Windows SDK Team.Recently, I had a case where the customer required use of the TCP Linger option to reset a connection when it was closed.I was able to get it to work in native...

View Article
Browsing all 126 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>