elevation

Start program with user rights from within a elevated program

﹥>﹥吖頭↗ 提交于 2019-12-11 04:34:53
问题 I have an application that requires elevated rights (it is something like a custom installer). From within this application, I use ShellExecute() to show a PDF file. It seems as if the Adobe Reader is started with the same rights as the calling application. I would like the Adobe Reader however to be started with standard user rights and not elevated. Is there some way I can do that? (It would be in Delphi, but for this problem the language probably doesn't matter). 回答1: There's no really

Getting Elevation for many coordinates

天涯浪子 提交于 2019-12-11 03:49:14
问题 I have a text file with many lats and longs, and I am trying to get their elevation. I found a website that already does that but it takes 500 only at a time, I have 1 million points. Is there any kind of service that does such thing? 回答1: The google maps API elevation service is limited to prevent abuse. There is publicly available elevation data: http://www2.jpl.nasa.gov/srtm/ Create your own service. 回答2: You can also use geonames.org. You can purchase a commercial account to have higher

Run WPF Application with administration elevation WIX

醉酒当歌 提交于 2019-12-11 01:54:17
问题 I have written a WPF application. When it is installed on client machines, they are prompted for a username and password so that they have administrator privileges to use the application. I need administrator privileges because my application opens ports and writes files to the file system. Is it possible to allow any user to run the application without being prompted for an administrator username and password and to elevate the application to run with administrator privleges? Thanks 回答1:

Create Elevation profile from polyline coordinate array

心已入冬 提交于 2019-12-11 01:41:34
问题 I have created a polyline using a coordinate array with code adapted from https://google-developers.appspot.com/maps/documentation/javascript/examples/polyline-simple Although the first (and probably worst) method to make the line was just a huge list of lat/lng points. Still learning the programming tricks, I apologize. Im a geographer not a programmer! I want to get the elevation from that line and create an elevation profile graph. Im new to JS and not sure how to debug whats not working.

How does one run a program at startup that requires UAC elevation?

丶灬走出姿态 提交于 2019-12-10 11:36:17
问题 I have a program that monitors malicious files and deletes them. However it needs administrator rights to run. This program runs at startup, however the UAC popup is annoying for end users, especially if it appears every time the user logs in. Anyway, I am wondering if there is a way to run the program with administrator rights at startup with out nagging the user with the UAC popup. P.S: Disabling UAC is not a good idea because of security issues for the users. 回答1: You cannot. Windows Vista

Solr: How to dynamically elevate limited number of documents? Has QueryElevationComponent to be modified?

笑着哭i 提交于 2019-12-09 18:53:08
问题 my requirement is to elevate a limited number of (e.g. five) documents for a user request. What I've got is a single document field which stores a numerical value similar to a boosting value which represents an elevator ranking value . So a user query would return 5 documents with the highest elevator ranking value and the remaining documents to fill a page in regular order. How to do that? The QueryElevationComponent does only allow static query definitions. Boosting does not allow to boost

Delphi Administrator rights D7 W7 [duplicate]

柔情痞子 提交于 2019-12-08 09:50:35
问题 This question already has answers here : Closed 8 years ago . Possible Duplicates: Delphi: Prompt for UAC elevation when needed Delphi Administrator rights D7 W7 I'm using Delphi 7 on Windows 7. I need administrator privileges for some function in my application, which needs RAW access to the physical drive. How do I elevate to Administrator from source code? I.E. I chceck rights with: function IsUserAdmin : boolean; const CAdminSia : TSidIdentifierAuthority = (value: (0, 0, 0, 0, 0, 5)); var

How to elevate an already running session within its own code

主宰稳场 提交于 2019-12-07 23:57:58
问题 I'm writting a PowerShell script that configures some things in Active Directory. I need to run it as a specific user in order to get the right permissions for the process, currently i'm running the .ps1 file through a .bat file, so I can choose "run as a different user" or "run as administrator". What I'm tryng to achieve is that inside the script I will ask the user for the right credentials, and then elevate the session to run with the inputed user creds. I've tried using this within my

Elevation service UNKNOWN_ERROR

Deadly 提交于 2019-12-07 13:13:37
问题 I'm having difficulty with the Google maps V3 JavaScript elevation service. According a google groups posting ( https://groups.google.com/forum/#!msg/google-maps-js-api-v3/Z6uh9HwZD_k/G1ur1SJN7fkJ ), it appears that if you use getElevationAlongPath() it compresses and sends the entire path to the Google server as an Ajax GET request and subsamples it on their server. This means that if you have a large number of path segments the encoded URL exceeds the maximum URL length and the request

WTSQueryUserToken always throws “An attempt was made to reference a token that does not exist” on Windows 7 in C#

二次信任 提交于 2019-12-07 07:03:26
问题 I'm trying to launch a process from a Windows Service on Windows 7. This is my code to obtain the user token. uint sessionId = Kernel32.WTSGetActiveConsoleSessionId(); var userTokenPtr = new IntPtr(); if (!WtsApi32.WTSQueryUserToken(sessionId, out userTokenPtr)) { int lastError = Marshal.GetLastWin32Error(); throw new Win32Exception(lastError); } These are the DllImport statements : public class Kernel32 { [DllImport("kernel32.dll", EntryPoint = "WTSGetActiveConsoleSessionId")] public static