windows-vista

Win32 window capture with BitBlt not displaying border

怎甘沉沦 提交于 2019-12-06 04:22:46
I have written some c++ code to capture a window to a .bmp file. BITMAPFILEHEADER get_bitmap_file_header(int width, int height) { BITMAPFILEHEADER hdr; memset(&hdr, 0, sizeof(BITMAPFILEHEADER)); hdr.bfType = ((WORD) ('M' << 8) | 'B'); // is always "BM" hdr.bfSize = 0;//sizeof(BITMAPFILEHEADER) + sizeof(BITMAPINFOHEADER) + (width * height * sizeof(int)); hdr.bfReserved1 = 0; hdr.bfReserved2 = 0; hdr.bfOffBits = (DWORD)(sizeof(BITMAPFILEHEADER) + sizeof(BITMAPINFOHEADER)); return hdr; } BITMAPINFO get_bitmap_info(int width, int height) { BITMAPINFO bmi; memset(&bmi.bmiHeader, 0, sizeof

How to develop using WIA 1 under Vista?

大憨熊 提交于 2019-12-06 03:53:35
I'm using VS2008 SP1 under Vista SP1. My .Net-program uses a COM reference to WIA (Microsoft Windows Image Acquisition Library v2.0). I'm using CommonDialogClass.ShowAcquireImage to scan a document and it's working fine. One of my customers is running XP. As I understand WIA, under XP you have to use WIALib (WIA 1.0). Is it possible to develop under Vista using WIA1? MS does allow you to download the WIA 2.0 library for XP here . That way your customer can use your app as is. Also, I like WIA 2.0 more than 1.0. I setup a small WIALib-project with VS2008 under Windows XP and copied the created

.NET Embedding application in windows-taskbar

人走茶凉 提交于 2019-12-06 02:58:38
问题 We've all seen it and now I want to do it. How may I go about achieving this effect with a winforms application? alt text http://www.activewin.com/winvista/images/Windows%20Media%20Player%20-%20Taskbar%20Player.png 回答1: You are probably going to want to start reading about Desk Bands. It's not an easy process, and you won't be able to just put your winforms application in the task bar. It also depends on what version of Windows you want to target, as tommieb75 pointed out, the newer versions

Text to speech in Vista

限于喜欢 提交于 2019-12-06 02:31:38
问题 I did it by creating OLE object with Delphi in 2000/NT/XP as following: Voice := CreateOLEObject('SAPI.SpVoice'); Voice.speak(...) But this does not work in Vista, how can I make my program simply speak some text in Vista? 回答1: I just tried (D2009 on Vista Home Premium) with the following code and it works! unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComObj; type TForm1 = class(TForm) Button1: TButton; procedure

Simulate Control-Alt-Delete key sequence in Vista and XP

我的未来我决定 提交于 2019-12-06 02:25:06
问题 Can I simulate in C#/C++ code Control + Alt + Delete sequence in Vista? When UAC enabled/disabled? How it is done in XP? Can you provide a code sample that works in Vista? 回答1: Existing code to simulate the Secure Attention Sequence (SAS), which most people refer to as control alt delete or ctrl-alt-del, no longer works in Windows Vista. It seems that Microsoft offers a library that exports a function called SimulateSAS(). It is not public and one is supposed to request it by sending a mail

“operation is not supported” when invoking an RPC call on Vista

大憨熊 提交于 2019-12-06 02:14:17
My application uses Microsoft RPC for interprocess communications. When two processes are run on the same machine and one process tries to call a method declared as (IDL notation): error_status_t rpcMethod( [in] pipe byte parameter ); this call fails with RPC_S_CANNOT_SUPPORT ("The requested operation is not supported") and never reaches the server side and the push()/pull() primitives of the supplied pipe are never called. This is only reproduced on Vista when using ncalrpc protocol and not otherwise. I also found the following in the Event Viewer logs: Application ("my program exe file name

Vista BEX error

ε祈祈猫儿з 提交于 2019-12-06 01:34:20
问题 Recently I got IE7 crashed on Vista on jar loading (presumably) with the following error: Problem signature: Problem Event Name: BEX Application Name: iexplore.exe Application Version: 7.0.6001.18000 Application Timestamp: 47918f11 Fault Module Name: ntdll.dll Fault Module Version: 6.0.6001.18000 Fault Module Timestamp: 4791a7a6 Exception Offset: 00087ba6 Exception Code: c000000d Exception Data: 00000000 OS Version: 6.0.6001.2.1.0.768.3 Locale ID: 1037 Additional Information 1: fd00

Is the .NET Framework installed by default on Vista?

[亡魂溺海] 提交于 2019-12-06 00:13:52
问题 I'm writing a console application that will be deployed with an installation of an application we are writing. The console app aims to fix a bug in vista that will allow our application to be installed correctly in Vista. The console application works fine, but can I count on the .NET framework being installed on all Vista machines - is it installed by default? 回答1: According to this site: Windows Vista comes packaged with Microsoft .NET Framework 2.0 and 3.0, but not version 1.1, which may

Vista's IIS Instance doesn't have SMTP (Solutions?)

走远了吗. 提交于 2019-12-05 23:48:04
问题 Presently, I am working on a project using classic ASP. My development machine is Vista Enterprise. Although Vista does allow you to have multiple Web Sites (not without a workaround in XP), it has removed the SMTP service from IIS. Is there a standard workaround for this issue? As more web developers at my company receive new machines I am concerned that this issue will become a greater irritant. (Currently I am the only Web Dev using Vista) 回答1: I found a better suggestion over on

Exe name like update.exe blocked by UAC in scheduled task

可紊 提交于 2019-12-05 23:31:50
问题 I have a problem with windows UAC, scheduled tasks and a executable named "dbupdate.exe". I have full power over source code, manifests and so on, but not over user systems (short: normal software engineer ;-). Language is Delphi, but shouldn't be important I think. I have a problem using an application in task scheduler in windows vista and windows 7. The program is named dbUpdate.exe. It has built in a xp/vista manifest, which configures that the program should be started "asInvoker". Now,