In Windows 32bits, we normally run rundll32.exe to call routine in a dll. I have tried to search for equivalent 64bits version, but have not found any. I googgled the name rundll64.exe but results are all involves some kind of virus, worm, trojan. My question is how do we call a routine in a 64bit dll?
Im trying to write a batch file which creates another batch file.....
echo if %date%==03-10-2009 pause>>D:\hello.bat
if 02-10-2009==03-10-2009 pause
the problem is that instead of taking %date% as text it's writing date on hello.bat.....
i even tried with ^
echo if %^date^%==03-10-2009 pause>>D:\hello.bat
now in this case the output is
if ==03-10-2009 pause
but when the same command echo if %^date^%==03-10-2009 pause>>D:\hello.bat i give from cmd instead running bat it's giving correct format in hello.bat
if %date%==03-10-2009 pause....
i want this %date% to be printed as it is not as value in hello.bat through a batch file.
One thing you might like to try is to create a virtual 64 bit machine using VMWare (very good) or Virtual PC (not used myself) so that you can test and fix your installations. You could create a whole set of virtual environments for testing.
I would like to run the same batch file twice at about the same time. Both batch files create the same variables using the "SET" command. Is there any chance that one batch file will overwrite the value created in the other, or does the SET command declare only local variables? Thanks,
or does the SET command declare only local variables?
Yes, SET creates environment variables but they only exist within the scope of the command that runs them. Thus your two batch files will inherit the environment variables of the parent process (Windows ???) but any new ones they create will not be seen by the other process.
Is it possible to make the shell notify you when the user opens a folder? Notification objects does not seem to cover this functionality. The ICopyHook interface also seems like not the solution. Any suggestions will be highly appreciated.
< context : I put together this machine myself near two years ago and had so many problems using it, so that I just set it aside to wait for at least SP1. The Vista Ultimate was legally purchased in the US (not everyone in Thaiand is using pirated software)>
1. turn out I had a bad memory stick (Geil DDDR2) in slot #1 : pulling that one, and replacing it with the one fomerly in slot #3 cleared up the hardware crashing. Welcome to Thailand : the memory has life-time warranty, but the distributor will only replace the one simm if I return the pair (thus leaving me with a machine with no memory). The distributor claims they will "upgrade me" if I return both sticks, but will not say what the "upgrade" will be. Last time I had to replace an Xfx video card here it took over two months, four personal visits to the store, innumberable phone calls, and finally shelling out more money for an "upgrade" card. I'm actually not surprised the 1 gig memory stick of the fancy type I bought (for its time, two years ago) is not being manufactured, though.
2. fool that i yam, i yam : "ahh," methinks : now that the hardware problem is corrected over it will be all sweetness and light.
And the first "succeses," like flashing the motherboard BIOS to the latest version, installing the VS 2010 beta were reassuring. The driver ugrades for the video card, etc. went okay. Upgrade IE7 to IE8 (the "Googleized" version) okay.
On to upgrading Vista Ultimate with all the latest updates : figuring by this time with SP2, most of the real kinks that have fueled the rages of the likes of JSOP will have been slightly wrinkle-less.
I download SP2 stand-alone : it refuses to upgrade to SP2 with a mysterious error : I go on Ms's bulletin board and find out many others are having this problem : the recommended fix is to re-install, doing an "upgrade" install from the original DVD : no problem; I insert the DVD run setup.exe, choose install : uh-oh : "upgrade" is grayed out.
I try "Windows Update" and now begins the nightmarish cycle of downloading the same upgrades and their re-install on shut-down, and their re-initialization on start-up over and over and over. Even though IE8 and .NET Framework 3.5 latest are installed, it wants to install them again, too, and if I check those options their install will be reported as fail.
I post a message on the MS Vista install forum : so far the only response is very vague, and does not explain why the "upgrade" option on re-install is disabled : the author just re-states the contents of my own message
I am left with, as the only "option" : a "clean" install which will wipe all the efforts of the last four days into resurrecting this machine into usability.
3. speaking of usability :
a. folder view persistence settings do not work properly
b. the "search" functionality is bizarre (failing to sort by Size, for example)
c. the old "statelessness" of the open file dialog browser persists (how many times do I need to tell I want to view in "details" mode).
d. particularly obnoxious is the copy folder/file dialog which insist on appearing, tormenting with you with how ridiculously long it takes to copy or move a bunch of files or folders on a machine with all SATA 3gb drives.
e. and let us not forget : IE8 still will not "remember" the last Favorites folder you dropped something in : so every time you want to add a new Favorite : got to pull that menu down, boys, pull that menu down I am also noting that IE8 will mysteriously fail to ever load certain pages when they are loaded by context clicking on a link in a current page and using the "load page in new tab" option. that was not happening before in my humble lower-end XPSP3 single-core PIV machine.
And, to put it mildly, Vista is, in general, dog-slow (with all the animations and aero turned off, running monitor off a 9600 GSO card with 384 megs) compared to XPSP3 on a machine with half the cpu horsepower using only built-in motherboard graphics : I must disclaimer this assertion by noting that running Vista with only one stick of 1 gig memory is probably not a fair test : but I note that if I bring up the Task Manager, that System.Idle is usually eating more than 50%.
The final insult : Samsung's excellent screen management utility for its 226BW monitor appears to be inoperable with the nVidia 9600 gso card or Win Vista 32 : I can't use the 1280x820 or so resolution at 32 bits with 75 hertz refresh that works best on this monitor for my eyes : setting a custom resolution up in the nVidia control panel is possible, but it doesn't work.
I flagellate myself for my stupidity in not waiting another two years before W7 : please enjoy my screams as I enjoy yours
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
I want to programmatically delete a particular desktop icon; I am doing this by using ListView_DeleteItem. But Windows 7 added LVS_OWNERDATA style to desktop's list view. MSDN says ListView_DeleteItem is supported for selection integrity only and does not actually delete an item but it deletes some other icon ignoring the index provided. Is there any other way to delete a particular desktop icon?
I am looking for some other way than setting hidden attribute or moving an icon from desktop directory.
Is it possible by using IShellFolderView::RemoveObject method?
Like WM_DISPLAYCHANGE indicates that the user has changed the display resolution, is it possible to get any event notification to the Application while switches from user's primary console to security console?
I don't mean to be rude, but I am not completely sure how you are answering the original question. In my perception, you seem to be providing information that is 'nice to know' but is kind of non sequitur to the asked question.
Do you, by any chance, know of any certain Windows messages or hooks or callbacks that are sent when Windows Vista invokes UAC?
Sure it blocks the thread for which it happened, but what about everything else? Don't they even get a heads up?
And btw, while we're on the subject of UAC...how do I make it so UAC is required if a user clicks a certain button?
Thank in Advance
I am adding my custom Paper sizes to the Printer for Printing in Printer and faxes then Server Properties and adding my custom size but it is not shown in Printer when i am trying to print any document and going to set its Paper size
Best Of Regards,
Sad like books with torn pages, sad like unfinished stories ...
I think (although I am open to suggestions on this from someone more informed and experienced than I) it would be nice to use that same gray color but add slanted lines from the top left to bottom right (\\\\\) to break up the color and what appears in the window as well as make it easier on the eyes.
I would like to use this color for the main window that is always visible and used in every folder as well as the "Navigation", "Details" and "Preview" panes. Again, if someone suggests to use a different shade of the color for those areas, I would like to trust a professionals opinion rather than my own.
I have researched how to do this time and again online. Many options have come up but nothing has worked and when it did (IESHWIZ.exe from win98 era) the folder was screwed up in more ways than one!
I do hope that my being rather clueless in the all areas that this forum focuses on! I've gathered info from random places on this site for awhile. This is my second post, the first was just moments ago on an issue with editing the Vista Start Menu- should be right next to or near this post.
I just want to thank everyone who has taken the time to read this-- respond or not- have the answer or have to be the one who makes me cry and says it can't be done! (Please, don't tell me that!)
I would like to stay away from Software (if possible) because I just don't see the point of bogging down my memory for no reason.
I do realize this may be impossible to do and in that unfortunate circumstance I have come up with a comparable alternative.
In the case of that not being achievable I would like to:
- Go into the registry and tell it not to add the blur on aero glass so it is completely see through, like glass.
- Shorten the width of the entire start menu (like the image from link above)
- Remove the Start Orb
- Make Start Menu look flat so Taskbar entries don't look buttonized but like 1 piece cohesive piece (like in image from link above)
- Do the same with the system tray. I don't use the clock either, but that is just a setting I can change (unless it is different after these edits?)
- The Start Bar would than look something like the one pictured in the image. I will be auto hiding this menu. The width should just fit the text when it appears for program titles and whatnot. All flat, so there is no defination between the buttons and bar. Clear.
Thank you SO much for your time here on the Code Project Forums. I appoligize for being rather clieless on the matter... I suppose I would need either a VERY detailed walkthrough or someone to send me the registry changes to click and they are entered for me. (That would be best so I don't screw things up).
I don't know how much Windows 7 changes from Vista in these matters but I am qualified for a free upgrade to 7 Home Premium 64bit.
I currently use Vista Home Premium (x86) 32bit. I doubt my screen resolution is of any importance but I have a 1366x768 laptop and often attach it to a 1900x1200 monitor.
Again, thank you so much for your time in this matter and any advice or hopefully someone with a direct solution of this issue would be respected and appreciated beyond what words I can say. . . I have wanted to do this for a LONG time.
I have one other issue which I will post now in another topic. I know the color of the Explorer folders (any folder windows you open) with the colors being Hard Coded for the white background, but I would like to change that color.
Quite another issue though I figured I would just mention it here at the end!
Take Care Everyone!
"Accept your past to attain your future".
"Don't let the world around you control the world inside"
I currently have a Windows Service written in C# .NET 2.0 which is automatically started and runs under the LocalSystem account - lets call it Serv.exe - this service is responsible for performing administrative tasks (a bunch of them).
There is another application (lets call it A.exe written in C++) which is run under the USER account (non-administrator), this application communicates with the Service (Serv.exe), using custom commands (ControlService(hService, CustomCommand) to tell it what task to perform.
Now - this all works perfectly fine right now, using Windows 2000 and XP - but will this cause problem when migrating to VISTA and Windows7? I know people mentioned that in Vista services run in a different session (not exactly sure what that entails) - will there be any issues using ControlService(...) under OS's past XP?
Key point to recall is that A.exe (non-admin user account) is communicating with Serv.exe (Local System service) to perform tasks like:
- copy files, delete files, move files
- extract files, zip files
- run setup.exe's, apply .MSI files
- register COM objects
- affecting the registry
(pretty much anything you could image)
I need to know if there will be porting problems, if so I'll completly change my approach now (while I have the time).
(and use Named Pipes instead)
The reason I was using ControlService(...) instead of Pipes or Sockets is due to the fact that I only communicate with the service once every 20-30mins and only to request a specific operation be performed (simply send a single integer one-way), I thought pipes/sockets might be overkill for my needs ... I could be wrong ...
Looking for some advice, any help would be much appreciated...
in an earlier thread (sorry I don't have a link, you could search the forums) it was said services run on a different desktop than interactive users, hence they don't even receive the Windows Messages sent by those interactive users.
Luc Pattyn [Forum Guidelines][My Articles] The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
I have a VBA add-in that gets autiomatically installed on user's excel. Things were good until they upgraded to Excel 2007.
Although my add-in gets included into the list of Application Add-Ins the Add-Ins tab is still not displayed.
Whenever i try to instal sql2005..and proceeds to the selection..in next step where we have to check the workstation option..is disabled..in details it shows upgrade block coz already have later version installed. Even i tried by uninstalling each and every sql file and even deleted from registry still gives same problem. And when i go to start menu and select sql2005 it only show sql server configuration manager and surface manager..please help me i really need to get rid of this.
I just wanted to install Oracle 9.2 for my academic purposes. It doesn't even complete the setup wizard even later I tried with changed compatibility settings, and 'RUN AS ADMIN'. Neither of them worked for me.. It actually crashes while installing sometimes, and sometimes it doesn't set up services properly. This must be a problem in Windows Vista.
But when I used Oracle Express edition it worked, but in there no much functionality to study Oracle well.
Just can manage with single database+ some commands. Better someone can suggest something to do in order to get Oracle up and running in Vista.
this may not fall into the relm of Vista, but I have a question/comment on MS Outlook 2007.
When I get some e-mail that is considered junk and automatically placed in the Junk E-mail folder for Outlook 2007, if I open the Junk E-mail folder and open a message (that I consider safe), it creates a new window of the Outlook GUI in addition to opening the message.
My question would be:
how do I report any bugs or annoyances to the Microsoft developers (haha) so that this annoyance could be rectified in future updates?
I wrote a transport Sink of SMTP service, which works pretty fine in Windows server 2003. Now the server is upgraded to Windows server 2008 and I am suffering two issues:
1. The SMTP service is totally not accessible either through Outlook clinets (outlook express and outlook 2003) or telnet.
While using outlook client, I created a account connecting to the server which hosts SMTP service, and I got the error "4.3.1 Out of memorry" each time I try to send a mail.
While doing the telnet test, I can connect to the SMTP server successfully. "EHLO", "MAIL FROM" and "RCPT TO" commands works fine. However, when it comes to the next command "DATA", the SMTP server returns the same error as what the Outlook client got.
It is said that the insufficient permisson of the "System" account in the machine where the SMTP server is hosted could cause this issue, however, I did checked that the "System" account does have the full permission against the "mailroot" folder.
Anyone could help this issue, I do appreciate.
2. The SMTP sink was found no longer be able to be registered by smtpreg.vbs. I am getting the error "type mismatch". This definitely works fine in windows server 2003. Someone who knows what is going on. I do hope I can gain some help here. Appreciate any kind of help.
i got a problem in vista, and i just don't get it..
the problem is the following, if i publish a new application (an empty form, just a plain new windows forms application) from a windows 2000 pc from Visual studio 2005, and i try to run it on a vista pc, i get an error "cannot launch application. please contact vendor". When checking the error log it says i need elevated rights to run the application. (errorcode 0x800702E4) I googled this a bunch of times, but no results which can help me.
The weird part is:
Every application published, lets say a week ago or earlier, works on vista, and launches without problems (also published from a win2000 pc in vs2005)
If i publish a new version of an older application, then this application will also launch succesfully in vista.
So its only new applications that i cant get working in vista???
I tried publishing a new windows forms application on my vista pc in vs2005, this application also launches succesfully
I tried publishing a new version of a new application (which didnt work) from my vista pc in vs2005, this application won't work either.
I guess it has to do something with the policies in Vista, but its strange that it only affects newly published applications published from Win2000, or existing non-working applications published from vista...
It's a long shot, but does anyone here has any experience with problems like this? The only thing i can do as a workaround is making a new project on my vista pc, copying all the code in there, and publish it from there. *sigh*, got to love vista...
After 3 weeks i finally stumbled upon the cause of the problem.
All my non working applications had the string "update" in their filename/assemblyname...
And of course everyone (except for me) knows that the UAC recognizes the program as an installer
when the string "update" is found in the filename/assemblyname.
Installer Detection Technology
Installation programs are applications designed to deploy software, and most write to system directories
and registry keys. These protected system locations are typically writeable only by an administrator
user, which means that standard users do not have sufficient access to install programs. Windows Vista
heuristically detects installation programs and requests administrator credentials or approval from the
administrator user in order to run with access privileges. Windows Vista also heuristically detects
updater and uninstallation programs. Note that a design goal of UAC is to prevent installations from
being executed without the user's knowledge and consent since they write to protected areas of the file system and registry.
Installer Detection only applies to:
1. 32 bit executables
2. Applications without a requestedExecutionLevel
3. Interactive processes running as a Standard User with LUA enabled
Before a 32 bit process is created, the following attributes are checked to determine whether
it is an installer:
Filename includes keywords like "install," "setup," "update," etc.
Keywords in the following Versioning Resource fields: Vendor, Company Name, Product Name, File
Description, Original Filename, Internal Name, and Export Name.
Keywords in the side-by-side manifest embedded in the executable.
Keywords in specific StringTable entries linked in the executable.
Key attributes in the RC data linked in the executable.
Targeted sequences of bytes within the executable.
Last Visit: 31-Dec-99 19:00 Last Update: 8-Feb-16 10:23