windows-sdk

how to obtain alphablending in wince 6.0? and how to erase background image in wince 6.0?

How to obtain a alphablend image in wince 6.0 for a particular child window for n number of times? for example if i have a vol bar graph window which is for volume increase & decrease which is changed on click of vol+ or Vol- button so if i want to keep vol bar graph window as an alphablend image in wince 6.0 then how shall i obtain? Bec...

Flags returned by OSVERSIONINFOEX.wSuiteMask

Does anybody know what the following constants (defined in WinNT.h) mean? #define VER_SUITE_COMMUNICATIONS 0x00000008 #define VER_SUITE_EMBEDDED_RESTRICTED 0x00000800 #define VER_SUITE_SECURITY_APPLIANCE 0x00001000 The values are returned in the wSuiteMask field of the OSVERSIONINFOEX struct. ...

Vista / Win 7 SDK bufferoverflowu.lib linking error

Hey All, I downloaded the Windows SDK 7.0A to explore some things I was reading about. I downloaded some samples that work with the SDK but when I try to compile them I get an error. I looked in the Lib directory of the SDK and couldn't find it. I also did a full system search and also did not find it. I have read about this being a spe...

How programmatically access to Action Center?

How to add message there? Where to start? Searching does not give results. Seems I cannot find right keywords.. ...

What happened to signwizard in signtool of Windows SDK 7.0?

I'm looking for the convenient signwizard in signtool.exe but cannot find it anymore in the Windows SDK 7.0. Is it in a separate tool now or is there only the CLI left? ...

Disabling Screen Saver and Power Options in C#

I am writing an application in C# that plays a movie. I need to figure out how to disable the screen saver and power options using C#. I know the Windows SDK API has a function called SetThreadExecutionState() which can be used to do this, however, I do not know if there is a better way to do it. If not, how do I incorporate this funct...

Send a break byte with windows com-port

Here is a copy of the datasheet from a microcontroller: Break characters are a full character time of logic 0 (including a 0 where the stop bit would be normally). This is what I want to generate with the windows COM port (Windows SDK). The problem is I don't see a way to have the stop-bit set to zero. Any ideas?` SetCommBreak...

Hiding the system cursor in Windows SDK MagSample

Tried compiling and running this http://msdn.microsoft.com/en-us/library/dd940324(VS.85).aspx When the app runs two cursors are displayed on the screen, standard small Windows cursor and the magnified cursor as created by the parameter MS_SHOWMAGNIFIEDCURSOR in the CreateWindowEx call in the SetupMagnifier function. The question is, h...

WINSDK: Determining whether an arbitrary pid identifies a running process on Windows

Attempting to implement a poor man's test of whether a process is still running or not (essentially an equivalent of the trivial kill(pid, 0).) Hoped to be able to simply call OpenProcess with some minimal desired access then test for either GetLastError() == ERROR_INVALID_PARAMETER or GetExitCodeProcess(...) != STILL_ACTIVE. Nice try....

Windows SDK for Windows 7 and .net framework 3.5 installation

I have Visual Studio 2005 Pro and VS 2008 Pro installed. I think the VS 2008 installation gives me the MS Windows SDK for VS 2008 headers and libraries.Do i need to install Windows SDK for Windows 7 and .net framework 3.5? I have a version 5.0,6.0A already in C:\Program Files\Microsoft SDKs\Windows ...

Why is my Platform environment variable defined as 'BNB'?

Hi, Something, maybe the windows sdk or visual studio installer, has defined the Platform environment variable and given it the value BNB. What does BNB mean, and why is Platform set to BNB? Thanks. I've seen this, but it doesn't answer my question: http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/1d229d75-aa89-42bf-80...

Use one single DLL library to import other libraries at runtime

I am writing a Win32 DLL library that can be redistributed. I am using different versions of the windows API because I want to support Windows 7 functions, but still have support for Windows 2000 (with some function disabled). What I have currently is MyLib2000.dll, MyLibXP.dll, and MyLibVista.dll, and my application chooses which librar...

Why does the token returned by LogonUser() in Win x64 not belong to LOCAL group?

Hi, I have a piece of code that calls LogonUser() followed by CreateProcessAsUser(). In Win32, the resulting process belongs to a user (say, TESTDOMAIN\user1) who belongs to the LOCAL group. However, in x64, the process owner does not belong to LOCAL. The owner still belongs to all other groups (Authenticated Users, Everyone, etc.) Doe...

How can i determine the version of the Windows SDK installed on my computer?

Hello everyone :) I've very recently decided to teach myself c++ and win32 programming after learning vb.net, and i've got a very simple question: How can I determine what version of the Windows SDK is installed on my computer? I'm asking so I can install the latest version if it isn't installed allready, before i start playing around w...

What is NetFx in the Windows SDK?

What is NetFx, in the context of the Windows SDK? What differentiates NetFx tools from the tools in the regular SDK bin directory? I noticed that the version of sgen.exe in C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\ was built against .NET 2.0, but the version in C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\ ...

get any UI element's on screen position for any application in windows

is there a way in any programming language, perhaps using the Microsoft SDK, to get the on screen position of UI elements within a window of any application ? If so, could you please provide guidance with an example perhaps? Thank you, It's been paining me for days! Please consider that it is an external application. So for example, if ...

What is inside Windows SDK?

For developing programs for windows, we need windows SDK. I understand that this SDK is what helps to create windows and handle window events and all that. I suppose it also enables us to manipulate with files and registries. (Does the same SDK is the reason for thread creation and handling?) All that is fine! I would like to know wha...

Debugging delayed write failures to External HDD

Does the Window driver kit provide any debug tools to know delayed write failures on a 500 gb Seagate external USB 2.0 powered HDD? ...

Understanding a #define directive

Looking at the Windows SDK, I found this #define directive for MAKEINTRESOURCEW: #define MAKEINTRESOURCEW(i) ((LPWSTR)((ULONG_PTR)((WORD)(i)))) Can someone explain to me what the heck that means? For example, what would be the value of MAKEINTRESOURCEW(0)? (1)? (-1)? ...

MSBuild on TeamCity Server can't find AL.exe

I'm having a problem on my TeamCity CI build server where during compilation I get the following error: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2342, 9): error MSB3086: Task could not find "AL.exe" using the SdkToolsPath "" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Window...