system32

Why do 64-bit DLLs go to System32 and 32-bit DLLs to SysWoW64 on 64-bit Windows?

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-29 17:46:49
问题 I would like to know when do we need to place a file under C:\Windows\System32 or C:\Windows\SysWOW64, on a 64-bits windows system. I had two DLL's, one for 32-bit, one for 64-bit. Logically, I thought I'd place the 32-bit DLL under C:\Windows\System32, and the 64-bit DLL under C:\Windows\SysWOW64. To my surprise, it's the other way around ! The 32 -bit one goes into C:\Windows\SysWOW 64 , and the 64 -bit DLL goes into C:\Windows\System 32 . Very confusing stuff. What's the reason behind this

Why is npm prefix always set to system32 on Windows 10?

天大地大妈咪最大 提交于 2020-02-02 15:25:17
问题 I've just installed Node v4.4.7 on Windows 10 but I am having an issue where npm doesn't find the package.json file when I run npm install in the proper directory. The error I get is ENOENT: no such file or directory, open 'C:\Windows\System32\package.json' Which seems odd as I am not currently in C:\Windows\System32 but rather pwd would reveal that I am in C:\ao\AO Hybrid This let me to check npm prefix which returned C:\Windows\System32 . I've tried this with both npm v.2.15.8 and v.3.10.8

Check if another process has admin privileges

大兔子大兔子 提交于 2019-12-24 15:47:07
问题 I have wrote a code to check is a process running on the same machine has administrator privileges or not. But it always returns false. Can you tell me what's wrong with it. private static bool HasAdminPrivileges(int processId) { var hProcess = WinApi.OpenProcess(ProcessAccessFlags.QueryInformation, false, processId); var opened = WinApi.OpenProcessToken(hProcess, WinApi.TOKEN_QUERY, out IntPtr hToken); if (opened) { var token = new IntPtr(hProcess.ToInt64() + hToken.ToInt64()); // 64 bit

\Windows\ versus \Windows\System32 - File location conventions

倖福魔咒の 提交于 2019-12-23 20:50:37
问题 Is there a standard convention for the types of files that go in \Windows\ versus those that go in \Windows\System32 ?? I'm working on an SDK that has a variety of DLLs a helper exe, and a Windows service exe. The previous guy who worked on the code put the two exe files in \Windows\ and the DLLs in \Windows\System32\ But it seems to me that they should likely all go in \Windows\System32\ Which would you do? Edit: I am NOT trying to debate the merits of if they should go there at all. Plenty

“SystemFolder” in WIX and C#

风格不统一 提交于 2019-12-23 07:25:54
问题 An installer I have created with WiX installs a DLL using the SystemFolder variable, as well as a C# app into another folder. I want to directly reference the DLL from the app. Do I need to look up registry keys to find where the SystemFolder is? 回答1: No, you don't need to query the registry. Windows Installer has a series of built-in properties that automatically resolve to special well known locations such as SystemFolder. See System Folder Properties for more general information. For WiX,

“SystemFolder” in WIX and C#

狂风中的少年 提交于 2019-12-23 07:25:40
问题 An installer I have created with WiX installs a DLL using the SystemFolder variable, as well as a C# app into another folder. I want to directly reference the DLL from the app. Do I need to look up registry keys to find where the SystemFolder is? 回答1: No, you don't need to query the registry. Windows Installer has a series of built-in properties that automatically resolve to special well known locations such as SystemFolder. See System Folder Properties for more general information. For WiX,

System32 folder in windows 7

ぐ巨炮叔叔 提交于 2019-12-22 08:31:13
问题 I'm using this code in XP 32-bit OS to get the %windir%\windows\system32 folder path. sysFolderPath = Environment.GetFolderPath(Environment.SpecialFolder.System) What I want to know is that will this same code return the %windir%\windows\syswow64 folder when used in Windows 7 (64/32-bit)? 回答1: It will return c:\windows\system32, even in a 32-bit program that runs on the 64-bit version of Windows. Do not fix this, it doesn't need fixing. Because when you use that path, Windows will

“This application could not be started.” Only when the file is in system32 directory

不打扰是莪最后的温柔 提交于 2019-12-21 07:45:16
问题 I wrote a little piece of software that downloads file from internet, that is, nothing more. My intentions are to use it thru the command line... It works great, but when I place it in C:\Windows\System32\ to actually use it from everywhere I want it doesn't work now... It didn't throw an exception... it just show me this messagebox - http://i.imgur.com/a7rlMgo.png and if I click "Yes" it opens this page in the browser - http://support.microsoft.com/kb/2715633/en-us What should I do to get it

C# Missing MSVCR100.dll

▼魔方 西西 提交于 2019-12-18 04:31:36
问题 I'm developing an app that execute another app and I received this error: the program can't start because MSVCR100.dll is missing from your computer with my C# app, can I fix this problem copying this .dll into windows/system32 folder? Or exists another method to do this? 回答1: This links below point to the proper downloads for the MSVCRT100 installer. This is likely what you want your customers to run before installing your app. This will properly install the MSVCRT DLLs in the proper

Running a console application from the system32 folder

假如想象 提交于 2019-12-12 03:05:21
问题 I made a piece of software that makes it possible for me to delete folders recursively through a console and what I want to do is make it possible to reach the program from any directory using CMD.EXE. When I try to copy the software to the System32 directory and then run it from CMD it gives me the following error: unable to find a version of the runtime to run this application I tried building it as a 64 bit program but that didn't change anything. Is there something wrong with my code or