Questions tagged [elevation]
331 questions
42
votes
4 answers
How can I detect if my process is running UAC-elevated or not?
My Vista application needs to know whether the user has launched it "as administrator" (elevated) or as a standard user (non-elevated). How can I detect that at run time?

Andrei Belogortseff
- 1,861
- 3
- 18
- 26
40
votes
4 answers
Delphi: Prompt for UAC elevation when needed
We need to change some settings to the HKEY_LOCAL_MACHINE at runtime.
Is it possible to prompt for uac elevation if needed at runtime, or do I have to launch a second elevated process to do 'the dirty work'?

Vegar
- 12,828
- 16
- 85
- 151
33
votes
6 answers
How do you de-elevate privileges for a child process
I know how to launch a process with Admin privileges from a process using:
proc.StartInfo.UseShellExecute = true;
proc.StartInfo.Verb = "runas";
where proc is a System.Diagnostics.Process. But how does one do the opposite?
If the process you're…

Davy8
- 30,868
- 25
- 115
- 173
26
votes
2 answers
CardView elevation not showing in lollipop and higher versions
I was using cardview, but the problem is elevation not showing in lollipop and higher versions. please suggest me.Here is my code.

Uma Achanta
- 3,669
- 4
- 22
- 49
21
votes
4 answers
How to run NOT elevated in Vista (.NET)
I have an application that I have to run as Administrator.
One small part of that application is to start other applications with Process.Start
The started applications will also be run as administrators, but I'd rather see them run as the 'normal'…

idstam
- 2,848
- 1
- 21
- 30
16
votes
3 answers
How to UAC elevate a COM component with .NET
I've found an article on how to elevate a COM object written in C++ by calling
CoCreateInstanceAsAdmin. But what I have not been able to find or do, is a way to implement a component of my .NET (c#) application as a COM object and then call into…

Pierre Arnaud
- 10,212
- 11
- 77
- 108
16
votes
2 answers
Elevating a ProcessBuilder process via UAC?
I'm trying to run an external executable, but apparently it needs elevation. The code is this, modified from an example of using ProcessBuilder (hence the array with one argument) :
public static void main(String[] args) throws IOException {
…

Kitty Kymaera
- 165
- 1
- 6
14
votes
1 answer
How can I add elevation/drop shadow to my drawable vector asset?
I have an image view that uses an android material icon as it's background.
I have tried adding elevation in order to create a drop shadow effect but only the icon is displayed.
Is it possible to add elevation to a vector asset drawable?
…

h.savin
- 141
- 1
- 7
13
votes
2 answers
Strange shadow behavior during `alpha` animation
Have recycler with CardView items. When screen open - I start alpha animation on recycler :
recyclerView.animate().alpha(1f).setStartDelay(300).start()
Recycler item:

Ivan Krasilnikov
- 261
- 2
- 8
13
votes
4 answers
Elevation not working for BottomSheet inside Coordinator layout
I am trying to use a BottomSheet in my layout.
The root view is an CoordinatorLayout and I want to set Elevation on top for the Bottom Sheet so i am setting it with a high value (50dp), however it is not showing when the app runs but it appears on…

Atef Hares
- 4,715
- 3
- 29
- 61
12
votes
5 answers
Developing Apps with Administrator Rights in Delphi
I'm using D2010 under Windows 7 to write an app that seems to require admin rights (I think because it uses COM to communicate with a third party .exe, which also requires admin rights).
I've added the manifest resource as required, but when I try…

Roddy
- 66,617
- 42
- 165
- 277
12
votes
1 answer
How to give elevation to an image in Flutter?
I have to implement elevation (like a shadow) on an image widget, but I couldn't find a solution to this. Is there a way to implement elevation to an image?
An image example of what I want to remove:
I used the Material widget, but it renders empty…

Privacy of Animal
- 441
- 2
- 10
- 17
12
votes
0 answers
How do you access Angular scss variables in typescript?
I'm trying to access the theme colors from other places in my app. I can access primary, accent, and warn on material elements using color="primary" but sometimes color isn't an option, like when I want to access the colors programatically. Anyone…

Jus10
- 14,519
- 21
- 52
- 77
11
votes
5 answers
Elevation in React Native
Here is my style defined in the React-Native screen. I have used the elevation
property to achieve a box-shadow. But it's not working properly.
const styles = StyleSheet.create({
scrollContainer: {
flex: 1,
},
container: {
flex: 1,
…

Kiran Maniya
- 8,453
- 9
- 58
- 81
10
votes
7 answers
Looking for Delphi 7 code to detect if a program is started with administrator rights?
I am looking for working (obviously) Delphi 7 code so I can check whether my program is started with administrator rights.
Thanks in advance
[--- IMPORTANT UPDATE ---]
Having reviewed the code in the answers so far, I realise that my question maybe…

Edelcom
- 5,038
- 8
- 44
- 61