windows-sdk

Suitable alternative to CryptEncrypt

We have a situation in our product where for a long time some data has been stored in the application's database as SQL string (choice of MS SQL server or sybase SQL anywhere) which was encrypted via the Windows API function CryptEncrypt. (direct and decryptable) The problem is that CryptEncrypt can produce NULL's in the output, meanin...

where is Pktextract.exe installed?

I have Visual Studio 2008 and the Windows SDK for Windows Server 2008 and .NET Framework 3.5 installed. I believe that is the latest platform SDK. I'm trying to build a signed dll to be installed in SxS. All the tutorials explain to use a tool called pktextract.exe which is part of the SDK, but I can't seem to find the tool. All the oth...

Launching Aptana Studio causes PdhEnumObjects() to take up 90% CPU

Hi, I'm making calls to pdhenumobjects() to get performance stats, which is working fine for me until I launch Aptana Studio. /////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////// DWORD dwTemp = 0; PDH_STATUS stat; // this is just to ...

How to get the Windows SDK folder in MSBuild?

What would be the way to retrieve the Windows SDK folder in an MSBuild task? Using the generateBootstrapper task I'm creating a bootstrapper for my setup to be able to install the pre-requisites. This task needs the path to the folder where the pre-requisite packages are located, i.e. the Windows SDK folder "C:\Program Files\Microsoft...

When do you need the Windows SDK for MSBuild?

I'm setting up my first build server for .NET 3.5 projects, and found this interesting line in the MSBuild log after a successful build of a simple test application: Could not locate the expected version of the Microsoft Windows SDK. Looked for a location specified in the "InstallationFolder" value of the registry key "HKEY...

Volume Size on a Quota disk

Can one get the volume total size being a normal user ? GetDiskFreeSpaceEx does return the Total Number Of Free Bytes but not the Total Bytes. So the only Total Bytes i get are those of the quota using DeviceIoControl with IOCTL_DISK_GET_LENGTH_INFO doesn't seem to work with non admin rights. ...

Windows 7 SDK RC & Beta version

Dear All, I've download Windows 7 SDK which was downloaded at the time of the beta release. Now I upgraded to RC and trying with some Direct2D samples. But I can't create the factory pointer using D2D1CreateFactory API. It's always returns NULL. Even the samples downloaded from MSDN is also not working well. There are some changes fro...

How to set amcap's default color space to YUY2?

Hi, AMcap is a app for capturing video or to preview from webcam. Its source code comes with Microsoft Windows SDK as sample. I want to (bypass the following process of user interaction in amcap code or say want to) set it as default: Ampcap menu Options Video Capture Pin ... Color Space/Compression: YUY2 Out...

How does WINVER or WIN32_WINNT affect operating system version as shown by dumpbin

We have an existing (old) codeline that we have recently converted from VC6 to VS2008 (converting to VS2005 along the way). After our conversion, all (or most) of our vcproj files set WINVER to 0x0500 via the Preprocessor Settings. In quite a few of our precompiled headers (typically stdafx.h), WINVER is set to 0x0500 (some still set i...

WindowsSdkDir is not set correctly in Visual Studio 2008?

I'm attempting to build some C++ code that requires the Windows 7.0 SDK header files and libraries. My VC++ Directories is set to: $(VCInstallDir)include $(VCInstallDir)atlmfc\include $(WindowsSdkDir)\include $(WindowsSdkDir)\common\include $(FrameworkSDKDir)include My $(WindowsSdkDir) variable should be set to C:\Program Files\Micros...

How to integrate MSDN Library, SQL Server Books Online, and Windows SDK Help?

The Short Version: I want a single, comprehensive MSDN Library, up-to-date and integrated with F1 help in all Microsoft development tools. The Long Version: There are at least three products that want to install documentation on my workstation: Visual Studio 2008 wants to install MSDN Library. SQL Server 2008 wants to install Books ...

Windows Media Services 2008 Programming

Hi All, I'm looking in to Windows Media Services 2008 development. I've been able to set it up and create a publish point using Server Manager in Win 2008. But what I really want to do is to do this programatically. I'm currently downloading windows 2008 SDK since it should have support for media services programming. What I want to kn...

How do I add a manifest to an executable using mt.exe?

I'm trying to use mt.exe from the Windows SDK to add a manifest to an executable file that doesn't have one, using the following command line: C:\winsdk61>mt.exe -nologo -manifest "r:\shared\hl.exe.manifest" -updateresource:"r:\shared\hl33m.exe;#1" Unfortunately, when I do, I get this error: mt.exe : general error c101008c: Failed to...

Windows Server 2003 platform SDK

Hello everyone, I am using Windows Server 2003 x64 Enterprise with SP2 and I want to install platform SDK. But all I find is from here, and it is called Windows® Server 2003 SP1 Platform SDK. I am confused about SP1. For my platform, should I use this version of platform SDK or some other later version (I think there should be SP2 plat...

Video recording problems on Vista Business using Windows SDK

Has anybody encountered problems with camera recording to wmv file format on Vista Business x64 using Windows SDK? I am using a Logitech quickcam 9000 pro webcam and aparently the resulting video is invalid - it can be played with Windows Media Player but while trying to use the "WMVCopy" sample from Microsoft SDK Samples, I've come acro...

VC++ compiler for Qt Creator

Hi, I want to use the VC++ toolset to build programs for XP and Vista, but I do not want to buy the IDE, because I want to use Qt Creator. I would download the Windows SDK and the Windows Debugging Tools, but I'm not sure if this includes everything that I need (i.e: compiler, linker, nmake, debuggers). Has anyone used this approach? H...

Programmatically select files using C#

When the user selects file(s) or/ and folder(s) , I want to know the names of the selected file(s) or/and folder(s) programmatically. I think that if I send the message lvm_selected to the explorer window, it might return me the selected item. But as this is just a thought, it would be nice if anyone can help me out it in letting me k...

Unmasking a password field in windows.

I know there are many 3rd party applications that provide this functionality. I'm wondering how they work. Is it not simply enough to just send the EM_SETPASSWORDCHAR message to the passworded control with a wParam value of 0? This is what the Windows SDK says about the wParam: wParam The character to be displayed in place of ...

Building Visual Studio 2008 Setup projects with the Windows 7 SDK

Is it possible to build a Visual Studio 2008 Setup project with only the Windows 7 SDK installed? My setup project refuses to build because it can't find "C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\", part of the Windows 6 SDK. I would have thought that the 7 SDK would have everything that the setup project needs. A rel...

Windows 7 SDK installation failure

I seem to be completely unable to install the Windows 7 SDK onto my machine, and the only solution I've found on the web is to make a swathe of registry changes. I've done this - still no success. This is the reported error: A problem occurred while installing selected Windows SDK components. Installation of the "Microsoft Windows SD...