windows-nt

CreateProcessAsUser vs ShellExecute

南笙酒味 提交于 2019-12-18 13:39:27
问题 I need to ShellExecute something as another user, currently I start a helper process with CreateProcessAsUser that calls ShellExecute , but that seems like too much of a hack (Wrong parent process etc.) Is there a better way to do this? @PabloG: ImpersonateLoggedOnUser does not work: HANDLE hTok; VERIFY(LogonUser("otheruser",0,"password",LOGON32_LOGON_INTERACTIVE,LOGON32_PROVIDER_DEFAULT,&hTok)); VERIFY(ImpersonateLoggedOnUser(hTok)); ShellExecute(0,0,"calc.exe",0,0,SW_SHOW); RevertToSelf();

CreateProcessAsUser vs ShellExecute

天大地大妈咪最大 提交于 2019-12-18 13:39:03
问题 I need to ShellExecute something as another user, currently I start a helper process with CreateProcessAsUser that calls ShellExecute , but that seems like too much of a hack (Wrong parent process etc.) Is there a better way to do this? @PabloG: ImpersonateLoggedOnUser does not work: HANDLE hTok; VERIFY(LogonUser("otheruser",0,"password",LOGON32_LOGON_INTERACTIVE,LOGON32_PROVIDER_DEFAULT,&hTok)); VERIFY(ImpersonateLoggedOnUser(hTok)); ShellExecute(0,0,"calc.exe",0,0,SW_SHOW); RevertToSelf();

“A fatal error has been detected by the Java Runtime Environment” when running java project on another computer

橙三吉。 提交于 2019-12-10 11:07:59
问题 I created a Java project in Netbeans that runs without issue on my computer (both in Netbeans and from running the jar file), but when I try to run the project on another computer I get the following error message: A fatal error has been detected by the Java Runtime Environment: EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000062478337, pid=2860, tid=0x0000000000000e84 JRE version: Java(TM) SE Runtime Environment (8.0_112-b15) (build 1.8.0_112-b15) Java VM: Java HotSpot(TM) 64-Bit

Do i own my console or i inherited it from my parent?

我的未来我决定 提交于 2019-12-08 08:49:19
问题 How can NT character-mode application determine if its console has been inherited from parent process, as opposed to newly allocated console within CreateProcess? wow, so unpopular tags! adding windows to attract appropriate programmers @anonymous downvoter: i can do limited expansion of this question based on some feedback only. State what is not clear (familiarity with Windows kernel and subsystems is required, however). Remember, lot of us here are programmers, so our humour is very

npm ERR! Windows_NT 10.0.10586

谁说胖子不能爱 提交于 2019-12-08 01:20:31
问题 I was trying to do environment setup for Angular2 and for that I am getting below mentioned error while using command : npm install I am having Node versions : Node version is v6.7.0, npm version is 3.10.3 Is there any solution for the same? 回答1: Solved the issue. There was an issue with Windows System settings. Steps to solve the issue: Go to Windows' Settings >> Network & Internet >> Proxy Go to Automatic proxy setup >> Make 'Automatically detect settings' to off. Now this works for me.

nt!KeWaitForSingleObject without Args

坚强是说给别人听的谎言 提交于 2019-12-07 10:14:35
问题 I'm currently trying to debug a system deadlock and I'm having a hard time understanding this. Child-SP RetAddr : Args to Child : Call Site fffff880`035cb760 fffff800`02ecef72 : 00000000`00000002 fffffa80`066e8b50 00000000`00000000 fffffa80`066a16e0 : nt!KiSwapContext+0x7a fffff880`035cb8a0 fffff800`02ee039f : fffffa80`0b9256b0 00000000`000007ff 00000000`00000000 00000000`00000000 : nt!KiCommitThreadWait+0x1d2 fffff880`035cb930 fffff880`0312a5e4 : 00000000`00000000 fffff800`00000000 fffffa80

“A fatal error has been detected by the Java Runtime Environment” when running java project on another computer

陌路散爱 提交于 2019-12-06 10:36:09
I created a Java project in Netbeans that runs without issue on my computer (both in Netbeans and from running the jar file), but when I try to run the project on another computer I get the following error message: A fatal error has been detected by the Java Runtime Environment: EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000062478337, pid=2860, tid=0x0000000000000e84 JRE version: Java(TM) SE Runtime Environment (8.0_112-b15) (build 1.8.0_112-b15) Java VM: Java HotSpot(TM) 64-Bit Server VM (25.112-b15 mixed mode windows-amd64 compressed oops) Problematic frame: V [jvm.dll+0x68337]

npm ERR! Windows_NT 10.0.10586

爱⌒轻易说出口 提交于 2019-12-06 07:26:08
I was trying to do environment setup for Angular2 and for that I am getting below mentioned error while using command : npm install I am having Node versions : Node version is v6.7.0, npm version is 3.10.3 Is there any solution for the same? Nirav Shah Solved the issue. There was an issue with Windows System settings. Steps to solve the issue: Go to Windows' Settings >> Network & Internet >> Proxy Go to Automatic proxy setup >> Make 'Automatically detect settings' to off. Now this works for me. Thanks I have worked in react and I was tried to hit command npm install and I have found same above

nt!KeWaitForSingleObject without Args

我的梦境 提交于 2019-12-05 14:04:26
I'm currently trying to debug a system deadlock and I'm having a hard time understanding this. Child-SP RetAddr : Args to Child : Call Site fffff880`035cb760 fffff800`02ecef72 : 00000000`00000002 fffffa80`066e8b50 00000000`00000000 fffffa80`066a16e0 : nt!KiSwapContext+0x7a fffff880`035cb8a0 fffff800`02ee039f : fffffa80`0b9256b0 00000000`000007ff 00000000`00000000 00000000`00000000 : nt!KiCommitThreadWait+0x1d2 fffff880`035cb930 fffff880`0312a5e4 : 00000000`00000000 fffff800`00000000 fffffa80`079a3c00 00000000`00000000 : nt!KeWaitForSingleObject+0x19 Why would the first argument for

Use Windows authentication as login credentials for intranet applications

。_饼干妹妹 提交于 2019-12-03 15:01:00
问题 I'm working on an intranet web application in PHP. Im trying to use Windows NT login credentials to logon to the application. The trouble im having here is how do i get the remote users windows username? I want to obtain the username and then check against various LDAP groups so that I can direct them to appropriate pages in my application. I've so far tried <?php echo $_SERVER['REMOTE_USER']; echo $_SERVER['PHP_AUTH_USER']; ?> Both of them return empty values. UPDATE: Using $_SERVER['REMOTE