windows-xp

How to extend windows explorer functionality?

无人久伴 提交于 2019-12-04 15:58:11
问题 How would I go about extending the functionality of windows explorer in XP? Is there some way whereby I could create a "plugin" of some sorts that could hook into explore.exe to add additional folder browsing functionality? What language could I use to achieve this? This is an expansion of a question I asked here. 回答1: There's a great series of tutorials on CodeProject which might help you. C++ is required there. 回答2: There is an old O'reilly book called 'Visual Basic Shell Programming' that

Unable to connect pyODBC with SQL Server 2008 Express R2

≯℡__Kan透↙ 提交于 2019-12-04 15:57:53
问题 I am using following code to connect with SQL 2008 R2: cnxnStoneedge = pyodbc.connect("DRIVER={SQL Server};SERVER=127.0.0.1;DATABASE=myDB;UID=admin;PWD=admin") Which gives error: Error: ('08001', '[08001] [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. (17) (SQLDriverConnect)') args = ('08001', '[08001] [Microsoft][ODBC SQL Server Driver][DBNE...t exist or access denied. (17) (SQLDriverConnect)') with_traceback = <built-in method with_traceback of

Windows batch files: multiple if conditions

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 15:26:43
问题 Is there a way to say something like if %1 == 1 or %1 == 2 in a batch file? Or, even better, if I could specify a set of candidate values like if %1 in [1, 2, 3, 4, ... 20] 回答1: One way to implement logical-or is to use multiple conditionals that goto the same label. if %1 == 1 goto :cond if %1 == 2 goto :cond goto :skip :cond someCommand :skip To test for set membership, you could use a for-loop: for %%i in (1 2 3 4 ... 20) do if %1 == %%i someCommand Note that == is the string equality

setting the environment path permanently

瘦欲@ 提交于 2019-12-04 15:03:52
I want to make a batch file for setting the %PATH% environment variable permanently - ie adding a value to the path permanently (in Windows XP). On more recent OSes you can use setx which allows pretty fine-grained control as for where the variables are stored. Not available on XP, though, unless you install the Windows Server 2003 Support Tools . you can use vbscript (or command line reg) to change the PATH environment variable eg vbscript Set WshShell = WScript.CreateObject("WScript.Shell") strReg = "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path" strSetting =

Running a Process (WITH GUI) on Windows XP Logon Screen (.NET / Pinvoke)

£可爱£侵袭症+ 提交于 2019-12-04 14:32:43
I need to write a small service that runs an application (with gui, e.g. calc.exe ) on the logon-screen. I already found this question (and answer): Running a process at the Windows 7 Welcome Screen please read the code-comments if you don't understand how this works: // grab the winlogon process Process winLogon = null; foreach (Process p in Process.GetProcesses()) { if (p.ProcessName.Contains("winlogon")) { winLogon = p; break; } } // grab the winlogon's token IntPtr userToken = IntPtr.Zero; if (!OpenProcessToken(winLogon.Handle, TOKEN_QUERY | TOKEN_IMPERSONATE | TOKEN_DUPLICATE, out

Microsoft.Web.Administration on Windows XP

孤街浪徒 提交于 2019-12-04 14:00:02
问题 Is it possobile to use / reference Microsoft.Web.Administration in Visual Studio on Windows XP ? I know, that is not possible to install IIS 7 on XP, but I (must) use Windows XP as a development machine. 回答1: Well technically you will not be able to, Microsoft.Web.Administration only ships with the OS (ie Windows Vista/2008, or Windows 7/2008R2). You can conceptually be able to reference it if you copy the DLL and will be able to compile, however you will NOT be able to run your application

During Installation, where do the Various File Types go on Vista

不想你离开。 提交于 2019-12-04 13:56:33
问题 Installing my software on Windows XP was always easy. Everything went in the "c:\Program Files\myprogram" directory. This included: The executable program itself and any dlls. Readme.txt and License.txt The help files (.hlp or .chm or .pdf) Program settings that are not in the registry (.ini files) Sample data files for the program Log files that the program produces (Am I missing anything?) But I understand that some of these should not go into the "Program Files" directory on Windows Vista.

Monitoring API calls [duplicate]

女生的网名这么多〃 提交于 2019-12-04 12:57:34
问题 This question already has answers here : Hook processes (5 answers) Closed 5 years ago . I am doing some reverse engineering and want to know which APIs are called from the executable. I am mostly interested in the APIs called on a particular Windows system DLL. I guess one way to do that is to get all APIs exposed from the DLL using dumpbin and put breakpoints on all those from Windbg. Any other approach? This seems like lot of time if I need to monitor many system DLLs. BTW, I am working on

Excel Programming: Exception from HRESULT: 0x800A03EC. at Microsoft.office.Interop

雨燕双飞 提交于 2019-12-04 12:55:17
I have created a small application which opens,reads and creates Excel files. The app has been written in C# and I don't know why I get this error message when the application is running in one computer. I have run the same applicaiton on my computer and I don't have any problem. Can somebody help me and let me know why happen this error? thanks First of all, I suspect the HRESULT was really 0x800A03EC (it's kinda important to communicate the exact number if you are talking error codes ;-)). What this error usually means is that one or more formula contains an error. The main reason for a

Best place to save user information for Windows XP and Vista applications

◇◆丶佛笑我妖孽 提交于 2019-12-04 11:58:59
I need to save a user's login information in encrypted form for this application I'm building, but I'm not sure of the best place to save the file. I don't want to save it into the program application folder as I want it per user. So what is the best folder (or way) to save it into? Edit: Using C++. Seems like C:\Documents and Settings\%username%\Local Settings\Application Data may be the appropriate place according to Wikipedia . The article says this location is used for "User-specific and computer-specific application settings". Edit: Cruizer pointed out in the comments (I'd reply there but