windows-7

Windows service showing a GUI when no user is logged in

孤者浪人 提交于 2020-01-04 14:16:50
问题 Is it possible to a display dialog window from a windows service over the logon screen of Windows 7 (when no user is logged in yet) ? I found this article explaining how to display a window on a logged in user desktop but how to do it when there is no user logged in ? I was thinking about trying to automatically log in a user then display the window on his desktop but is it possible to display it directly over the logon screen ? 回答1: GINA was replaced by Windows Vista Credential Provider. One

Can't install Windows 7 gadget

痴心易碎 提交于 2020-01-04 10:59:05
问题 I'm developing a very simple gadget for Windows 7. I have created an index.html file and a gadget.xml file, compressed them as a zip, changed the extension to gadget. When I double click on the .gadget file I get a window telling me if I'm sure I want to install the gadget as it comes from an untrusted publisher. I click 'Install', and everything seems to be fine. However, the gadget is not installed. I've looked at the Event Viewer and found nothing, it just silently fails. Anyone knows what

Can't install Windows 7 gadget

夙愿已清 提交于 2020-01-04 10:59:01
问题 I'm developing a very simple gadget for Windows 7. I have created an index.html file and a gadget.xml file, compressed them as a zip, changed the extension to gadget. When I double click on the .gadget file I get a window telling me if I'm sure I want to install the gadget as it comes from an untrusted publisher. I click 'Install', and everything seems to be fine. However, the gadget is not installed. I've looked at the Event Viewer and found nothing, it just silently fails. Anyone knows what

Error grabbing Heroku project using git

久未见 提交于 2020-01-04 08:18:31
问题 I just cannot grab my App's source code, as per the steps documented here - http://devcenter.heroku.com/articles/facebook#create_an_app I have all steps followed correctly (as mentioned in a few other related posts). Valid Heroku account created. Logged into Heroku from command prompt. Uploaded a valid key Added the port 22 to the list of exceptions in my firewall settings. [FYI : I'm on Windows 7] Even after all these, I still get the following: ssh: connect to host heroku.com port 22: Bad

Error grabbing Heroku project using git

情到浓时终转凉″ 提交于 2020-01-04 08:18:22
问题 I just cannot grab my App's source code, as per the steps documented here - http://devcenter.heroku.com/articles/facebook#create_an_app I have all steps followed correctly (as mentioned in a few other related posts). Valid Heroku account created. Logged into Heroku from command prompt. Uploaded a valid key Added the port 22 to the list of exceptions in my firewall settings. [FYI : I'm on Windows 7] Even after all these, I still get the following: ssh: connect to host heroku.com port 22: Bad

FolderBrowserDialog crashes the application

久未见 提交于 2020-01-04 07:01:28
问题 Whenever I call folderbrowserdialog.showDialog() my application crashes. I'm using the code that worked before for me, so it CAN NOT be the code. try { FolderBrowserDialog fbd = new FolderBrowserDialog(); fbd.RootFolder = Environment.SpecialFolder.Desktop; if (fbd.ShowDialog() == DialogResult.OK) { // this.Minecraft.Text = fbd.SelectedPath; } } catch { } It does not throw any error, no exception, there just pops up the little loading circle, then the app is gone, I noticed it with a different

C++ entry point -> main()

五迷三道 提交于 2020-01-04 06:17:49
问题 I am writing my own little user mode debugger for fun. I know that the entry point specified in the PE header is not the programs defined main() (as far as microsoft c++ runtime is concerned anyway) Where can I find some documentation on the calls that take place between this entry point, up until the actual main() function, and why they are called, and what they do? 回答1: You can't. In fact main may not exist. E.g: you can override the default CRT entry point used by the linker, the main can

Delphi ShellExecute not working in Windows 7

六眼飞鱼酱① 提交于 2020-01-04 05:17:39
问题 I just KNOW this is something simple, but I've tried all of the suggestions I could find on this forum, and I still can't get the following ShellExecute statements, which worked perfectly well for four years on XP, to work in Windows 7. Any suggestions gratefully received! ShellExecute(Handle, 'open', PChar('command.com'), PChar('/c ftp -s:c:\checkout\WebFTPParams.txt 91.208.99.4'), Nil, SW_SHOW); ShellExecute(Handle, 'open', PChar('command.com'), PChar('/c ftp -s:c:\checkout\WWFTPParams.txt

Delphi ShellExecute not working in Windows 7

牧云@^-^@ 提交于 2020-01-04 05:17:06
问题 I just KNOW this is something simple, but I've tried all of the suggestions I could find on this forum, and I still can't get the following ShellExecute statements, which worked perfectly well for four years on XP, to work in Windows 7. Any suggestions gratefully received! ShellExecute(Handle, 'open', PChar('command.com'), PChar('/c ftp -s:c:\checkout\WebFTPParams.txt 91.208.99.4'), Nil, SW_SHOW); ShellExecute(Handle, 'open', PChar('command.com'), PChar('/c ftp -s:c:\checkout\WWFTPParams.txt

How to run cmd command in Python with admin

别说谁变了你拦得住时间么 提交于 2020-01-04 05:16:09
问题 I want to run a windows command with Python 3. Like this os.system("echo hi"). However, How about running a command that requires admin access? How do you do this? Thanks. 回答1: You can do this with the ShellExecuteEx Win32 API wrapper included in the Pywin32 extensions. If you are using something like ActivePython you may already have the extensions. To use ShellExecuteEx : import win32com.shell.shell as shell commands = 'echo hi' shell.ShellExecuteEx(lpVerb='runas', lpFile='cmd.exe',