windows-vista

How do I make OpenSSL write the RANDFILE on Windows Vista?

被刻印的时光 ゝ 提交于 2019-11-28 09:46:32
When I run: openssl genrsa -out mykey.key 2048 I get the following error: unable to write 'random state' e is 65537 (0x10001) My googling suggests this is some kind of Vista permissions issue. How can I allow Vista to write this file or how can I configure openssl to get round it? The root issue is that the RANDFILE variable in the OpenSSL configuration file is ignored on Windows. This has been a long-standing problem that continues to exist as of the OpenSSL v1.0a release, regardless of whether the target Windows platform is x86 or x64. There is a delightfully simple solution, though. Merely

How to run a process as current user privilege from an admin process

女生的网名这么多〃 提交于 2019-11-28 09:38:18
问题 When a setup program(built by like Inno Setup) does launch a process, the process always be run as administrator privilege. -because setup program had been run as admin. I want to run the child process as current user's privilege. Is there a good way? 回答1: Although it is not considered best practice (or even good practice), it is possible to launch a medium IL process from a high/admin IL process: See this post on codeproject I can confirm that this code works on Vista 32 and 64-bit with and

Request admin privileges for Java app on Windows Vista

╄→гoц情女王★ 提交于 2019-11-28 08:38:17
When I try to create a new task in the task scheduler via the Java ProcessBuilder class I get an access denied error an Windows Vista. On XP it works just fine. When I use the "Run as adminstrator" option it runs on Vista as well.. However this is a additional step requeried an the users might not know about this. When the user just double clicks on the app icon it will fail with access denied. My question is how can I force a java app to reuest admin privileges right after startup? I'm not sure you can do it programmatically. If you have an installer for your app, you can add the registry key

How to code a new Windows Shell? [closed]

自古美人都是妖i 提交于 2019-11-28 07:52:42
How would I go about coding a new Windows Vista Shell? Everything you need to do as shell has never been documented, so there are some issues with file change notifications etc. The basics are: SystemParametersInfo(SPI_SETMINIMIZEDMETRICS,...MINIMIZEDMETRICS) with (undocumented?) flag 8 Register as the shell (SetShellWindow,SetProgmanWindow,ShellDDEInit,RegisterShellHook etc) Hide welcome screen by setting a signal ("msgina: ShellReadyEvent" and "ShellDesktopSwitchEvent") Start registry run key, start menu\startup and ShellServiceObjects Set registry Explorer\SessionInfo The good thing is, you

Windows Vista: Unable to load DLL 'x.dll': Invalid access to memory location. (DllNotFoundException)

回眸只為那壹抹淺笑 提交于 2019-11-28 04:50:46
问题 I was testing on a customer's box this afternoon which has Windows Vista (He had home, but I am testing on a Business Edition with same results). We make use of a .DLL that gets the Hardware ID of the computer. It's usage is very simple and the sample program I have created works. The Dll is This from AzSdk. In fact, this works perfectly under Windows XP. However, for some strange reason, inside our project (way bigger), we get this exception: Exception Type: System.DllNotFoundException

Looking for an alternative to windows messages used in inter-process communication

点点圈 提交于 2019-11-28 04:47:19
I a have a multithread application (MIDAS) that makes uses of windows messages to communicate with itself. MAIN FORM The main form receives windows messages sent by the RDM LogData(‘DataToLog’) Because windows messages are used they have the following attributes Received messages are Indivisible Received messages are Queued in the order they are sent QUESTION: Can you Suggest a better way doing this without using windows messages ? MAIN FORM CODE const UM_LOGDATA = WM_USER+1002; type TLogData = Record Msg : TMsgNum; Src : Integer; Data : String; end; PLogData = ^TLogData; TfrmMain = class

Saving a file to Application Data in c#

被刻印的时光 ゝ 提交于 2019-11-28 04:24:12
问题 I used the following method to save a file to the folder Application Data in c# string path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); Its working fine in windows XP, but i cannt find such a folder path i Windows vista. Where is this folder located in Vista and how can i save the file to this folder 回答1: This should work out the folder for you in the background. Do you mean you don't know exactly where the file has been saved to? In Vista if you go to Run and type

Diagnosing Windows application manifests

邮差的信 提交于 2019-11-28 04:12:24
问题 Windows application manifests have a very loose grammar — unrecognized parts are ignored. How can I diagnose which parts are recognized and which are not? The problem leading to this question is with an application that has a side-by-side UAC manifest with a requestedExecutionLevel of highestAvailable specified. This should switch Vista file virtualization off, but it does not. I want to find out why. The manifest is being used, as I checked by intentionally introducing a syntactic error, but

Why doesn't the RequestAdditionalTime() method work on restart in Vista/7?

依然范特西╮ 提交于 2019-11-28 03:41:45
问题 I have been doing some extensive testing of a Windows Service I have been writing in C# .Net 3.5. I am having trouble getting Windows to give me enough time for my service to shutdown properly when I restart or shutdown the computer even though I am invoking the RequestAdditionalTime() method which should update the SCM and keep my service running. My code works properly if I manually stop the service however. I have primarily been testing this code in Windows Vista and Windows 7, upon

SetWindowsHookEx for WH_JOURNALRECORD fails under Vista/Windows 7

孤街醉人 提交于 2019-11-28 03:30:55
问题 I am preparing a Delphi module, which sets a hook in a thread to record a macro: FHandleRec := SetWindowsHookEx(WH_JOURNALRECORD, FRecordProc, HInstance, 0); FHandlePlay := SetWindowsHookEx(WH_JOURNALPLAYBACK, FPlayProc, HInstance, 0); That works fine on WinXP, but on Vista/Windows 7 fails with ERROR_ACCESS_DENIED . I have found in Google (this) referring (that). The quote: A lower privilege process cannot: … Use Journal hooks to monitor a higher privilege process. Tried without success: Run