windows-7

Windows 7 folder sharing API

ぐ巨炮叔叔 提交于 2019-12-06 10:03:36
I wonder if it's possible to programmaticaly share folders in Windows 7 while running in restricted logon session: 1) NetShareAdd returns ERROR_ACCESS_DENIED. 2) Command line net share says the same. 3) But explorer has no problems creating new shares without invoking UAC. How does it do that? Any help will be greatly appreciated. UAC in windows 7 is less strict than it was in Vista. Windows 7 regards Explorer as a trusted application so it will silently create the share without a UAC prompt (you can change this behavior in the Control Panel). Your application isn't a trusted one (OK, you

Can anyone explain why Java GetNetworkInterfaces returns so many interfaces on Windows 7

允我心安 提交于 2019-12-06 09:37:10
问题 This question was migrated from Software Engineering Stack Exchange because it can be answered on Stack Overflow. Migrated 8 years ago . I have been using NetworkInterface.getNetworkInterfaces() to query the Network Interfaces on my machine. Essentially I am trying to find Network Interface Cards. These are usually called something like eth0, eth1 etc.. Its been working great on win xp and even vista with a litle filtering. I just noticed in certain configurations of windows 7 I get a large

Use netsh advfirewall to Add windows 7 firewall exception [closed]

谁说胖子不能爱 提交于 2019-12-06 09:37:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Hi I am adding a firewall exception to Windows 7 using netsh. The simple rule i am adding is: netsh advfirewall firewall add rule name = "The Test App3" dir = in action = allow description = "Smart Cipher inbound messages" program = "C:\temp\a.exe" The problem is that after executing this command a new rule is

How to register my own firefox extension?

被刻印的时光 ゝ 提交于 2019-12-06 09:35:34
问题 I am trying to learn how to write firefox extensions. I download an HelloWorld example from here but I can't figure out how to register it. I found my profiles extension folder (Easy since I use the latest Firefox version) but couldn't really understand what is this "Pointer file" that I need to create (tried a shortcut but it didn't work). What is this "Pointer File"? How can I register it correctly? I am using Win 7 if matters. Thank You. 回答1: You have to create a file in the extensions

Old Delphi hide/show desktop icons method not working under Windows 7 64 Bit

◇◆丶佛笑我妖孽 提交于 2019-12-06 09:17:02
问题 I have a Delphi 2010 app which shows/hides the desktop icons under XP fine. However under my Window 7 test environment (happens to be 64 bit) the icons don't disappear. Here is the critical code I am using (for the hide): ShowWindow(FindWindow(nil, 'Program Manager'), SW_HIDE ); I have found I can set the registry: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] "HideIcons"=dword:00000001 And that works fine if I restart windows (or kill explorer and restart it

Error in registering DLL

有些话、适合烂在心里 提交于 2019-12-06 09:08:58
This question was migrated from Super User because it can be answered on Stack Overflow. Migrated 6 years ago . I'm trying to register DLL with command regsvr32 dll_name.dll but I'm getting below error The module "Addition.dll" was loaded but entry point DLLRegisterServer was not found Make sure that "Addition.dll" is a valid DLL or OCX file and then try again Can anyone help me to figure out what is the problem? Every DLL you want to register must have the function DLLRegisterServer. This function is invoked whenever you run regsvr32.dll DLL_NAME. It modifies basically registry and just do

LightSwitch Desktop Application Installation failing: “Strong name signature not valid for this assembly vslshost.exe”

冷暖自知 提交于 2019-12-06 08:54:10
问题 I've created a LighSwitch desktop application in Visual Studio 2013 which installs perfectly fine on my development machine but fails during installation on my client's machine with the following error message: Strong name signature not valid for this assembly vslshost.exe I found a similar issue that was also raised on the MSDN forum: http://social.msdn.microsoft.com/Forums/en-US/28736d83-db94-4d0b-adb9-2ff2e6d0ba95/installation-failing-strong-name-signature-not-valid-for-this-assembly

Is there an API to map 'touch' input to a different monitors?

不羁岁月 提交于 2019-12-06 08:47:33
问题 I am trying to achieve the same functionality as multidigimon.exe, that is mapping an input digitizer to a given monitor, I was wondering if there is an API I can access or if the multidigimon.exe supports any parameters I can call it with to automate the mapping process. So far I have found that multidigimon.exe writes the following registry key key:20-\\?\hid#&col06#1&4784345&d&0005#{4d1e55b2-f16f-11cf-88cb-001111000030} value:\\?\DISPLAY#Default_Monitor#5&5e64b29&0&UID268435456#{e6f07b5f

Getting “Could not establish secure channel for SSL/TLS with authority” even though ServerCertificateValidationCallback returns true

▼魔方 西西 提交于 2019-12-06 08:21:22
I'm working with a vendor who has set up a WCF service (WebHttpBinding) using Transport security with Certificate authentication. I host a similar service for the vendor which is working correctly, so I have a basic idea how this is supposed to work. Running on Windows 7, when I consume the service under my own account, everything works fine, and I get a response back. When I consume it under a test account, I get an exception in mscorlib that it "Could not establish secure channel for SSL/TLS with authority X.X.X.X". If I add the test account to the built in Administrators group, it works

Python: moving to a new computer

杀马特。学长 韩版系。学妹 提交于 2019-12-06 08:07:13
I'm moving from a computer with windows xp to one with windows 7 (64 bit) and I want to install Python on the new machine. I'm currently using python 2.7 and 3.2 and a bunch of packages 1) Should I install the 64 bit versions? 2) How can I tell which packages I currently have, so that I can get those for the new machine? If these are duplicates (my search skills seem to be failing), please point me to the threads where they're discussed. Type help('modules') of the Python shell to get a list of all installed modules. If you can find stable 64-bit versions, then by all means select 64-bit