windows-xp

How do I detect the 2 states of “Switch User” in Windows

拈花ヽ惹草 提交于 2019-12-08 09:31:19
问题 I'm wondering if anyone has had any experience with the API that gives you the possibility to detect the "Switch User" process under Windows XP. I would like to know how I could detect that a user exits his account and when he re-enters it. Thanks. 回答1: I think you want to look at the WM_WTSSESSION_CHANGE message. 来源: https://stackoverflow.com/questions/416313/how-do-i-detect-the-2-states-of-switch-user-in-windows

How to script log in and log out on windows xp

妖精的绣舞 提交于 2019-12-08 08:30:29
I've found several posts on this site and the internet describing how to log out the current user, but how can I log in a specific user? Log out (cygwin) can be accomplished this way: echo "\n" | powershell -ExecutionPolicy RemoteSigned "(gwmi Win32_OperatingSystem).Win32Shutdown(0)" latkin Well here's how you would log out a specific user: function getsessionid($username, $server) { query session $username "/SERVER:$server" |?{$_ -match "$userName\s+(\d+)\s"} |%{ $matches[1] } } $id = getsessionid john db123.contoso.net logoff $id /SERVER:db123.contoso.net To log someone in , it seems tougher

Win32: How to crash?

六眼飞鱼酱① 提交于 2019-12-08 08:12:06
问题 i'm trying to figure out where Windows Error Reports are saved; i hit Send on some earlier today, but i forgot that i want to "view the details" so i can examine the memory minidumps. But i cannot find where they are stored (and google doesn't know). So i want to write a dummy application that will crash, show the WER dialog, let me click "view the details" so i can get to the folder where the dumps are saved. How can i crash on Windows? Edit: The reason i ask is because i've tried

How to properly include windows.h and set minimum version to XP

柔情痞子 提交于 2019-12-08 08:00:08
问题 I'm currently building a C++ DLL, and I have this at the top of the main DLL .cpp file. This currently is causing the warning "Warning C4005: '_WIN32_WINNT' : macro redefinition" . What have I done wrong? I need to include windows.h , SDKDDKVer.h and set the minimum windows version to XP. How do I correct my code? // System Includes #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <d3d9.h> // Windows Version #define _WIN32_WINNT _WIN32_WINNT_WINXP #include <SDKDDKVer.h> 回答1: You

GetCurrentConsoleFont not declared in scope, what I do wrong?

↘锁芯ラ 提交于 2019-12-08 07:51:25
问题 at the beginning I have: #include <sstream> #include <iostream> #include <stdio.h> #include <iomanip> #include <string> #define _WIN32_WINNT 0x500 //tells that this is win 2000 or higher, without GetConsoleWindow would not work #include <windows.h> using namespace std; int main() { PCONSOLE_FONT_INFO lpConsoleCurrentFont; GetCurrentConsoleFont(GetStdHandle(STD_OUTPUT_HANDLE), false, lpConsoleCurrentFont); return 0; } And undocumented function SetConsoleFont works, but GetCurrentConsoleFont

Font problem in windows xp

跟風遠走 提交于 2019-12-08 06:38:30
问题 I set up my app in Windows XP but it doesn't recognizes the font family of my app as it was made in win server2008. I installed on XP the .NET and all. Aren't all the font familys inside NET or what to install ? 回答1: No, Windows Server 2008 may have fonts that are not on Windows XP, such as Segoe UI. The .NET Framework itself does not install any fonts. You can't just install the font, either - you would have to license it from whoever made the font. However, WPF also includes the ability to

New AVD takes a picture saves to clipboard

一个人想着一个人 提交于 2019-12-08 05:37:42
When I create a new Android Virtual Device and run it for the first time in Eclipse, I have noticed that it activates my webcam and takes a picture. This picture is saved to my clipboard. But I was wondering if this is normal and happens to anyone? INFO: Android Development Toolkit Version: 16.0.1.v201112150204-238534 Android 4.0.3 API level 15 Running on Windows XP EDIT: Tracked it down to what I think is the SDL_app process. Also when I disabled my clipboard and started it up I got this printed to the terminal: [2012-01-26 05:12:12 - Emulator] emulator: ERROR: camera_device_start_capturing:

How to script log in and log out on windows xp

£可爱£侵袭症+ 提交于 2019-12-08 04:30:20
问题 I've found several posts on this site and the internet describing how to log out the current user, but how can I log in a specific user? Log out (cygwin) can be accomplished this way: echo "\n" | powershell -ExecutionPolicy RemoteSigned "(gwmi Win32_OperatingSystem).Win32Shutdown(0)" 回答1: Well here's how you would log out a specific user: function getsessionid($username, $server) { query session $username "/SERVER:$server" |?{$_ -match "$userName\s+(\d+)\s"} |%{ $matches[1] } } $id =

How to fix VB6 APPCRASH ntdll.dll error on make

北城余情 提交于 2019-12-08 04:18:18
问题 I am making an exe from an existing VB6 project. During Make, VB crashes with the following message Visual Basic has stopped working Problem Event Name: APPCRASH Application Name: vb6.exe Application Version: 6.0.97.82 Fault Module Name: ntdll.dll Exception Code: c0000005 I am able to run the project from VB6 without any trouble. The problem occurs when I try to make the exe. Please could you let me know what could be wrong? Thanks! 回答1: This all needs to be done on the computer with the

500 SSL negotiation failed

╄→гoц情女王★ 提交于 2019-12-08 03:36:18
问题 I have a new-onset problem on my Windows XP Pro system, demonstrated by the Perl code below (which is, of course, a very cut down example from a much larger program). It used to work until a few days ago, and I'm pulling my hair out trying to figure out what might have changed on the system to stop it working, and I'm hoping someone here might be able to give me some clues. (It still works fine on my Windows 8.1 system.) The issue is that the code below (now) fails with "500 SSL negotiation