Can you please tell me how to achive this ?Actually i am little bit in confuse related to this topic.
Sorry, but I am not sure what you are asking. My suggestion to the original poster was quite simple: when the server gets end-of-file on the data file he should send a special message to the client which the client understands as 'no more data'. Both sides should then close their socket connections.
I don't know whether you are using Windows or Linux, but you will find that socckets are broadly the same on both platforms. Lots of good information on MSDN, here and other sites. Use Google to find tutorials and samples.
BTW How long does an active process remain in memory if I unplug the power cable?
Until your uninterruptible power supply or battery has no more energy. On my desktop this is about 15 minutes. I think my laptop will last about 3 hours. But we can always upgrade to the 'Wind-Up' Laptop[^] and generate more energy indefinitely.
I made an application to run for Vista and provided a manifest file for the same ,with elevated permissions but while trying to run it I get an error "A referral was returned from the server."?
Can you let me know the issue ?
see if ValidateAdminCodeSignatures[^] is defined as 0x1?
After cahnging this value to 0 I was able to run the application , but before that I was presented the dialog that UAC does asking user to allow the executable to run with Admin permission . can this dialog be emitted permanently ???
Well I have no idea what you just asked me. But I think your asking if the registry key can be changed permanently. Yes you can just keep ValidateAdminCodeSignatures[^] defined as zero. This simply tells the operating system that executables do not need to be signed to be elevated.
You have another option. You can change the value back to 0x1 and sign your application.
Sorry for the typo again ..Actually what I had asked you was . Is there a way that for my executable with elevated permissions that windows UAC never asks user about allowing or disallowing my process and it simply allows the exe to be executed..
And if my sign and timestamp my executable with a certificate and install the certificate on the VISTA or Windows 2008 client in Trusted publishers , then would this UAC prompt me or will it directly allow me to execute on being invoked ?
I think the UAC prompt will appear. Although executables signed by Microsoft on Windows 7 can use an autoElevate flag which *does* bypass this UAC prompt. The internal details about this seem to be undocumented. I do not know if it works with third-party trusted signers.
Last Visit: 31-Dec-99 19:00 Last Update: 9-Dec-23 7:24