|
Either:
1) Do not write to protected area's of the registry
Or:
2) Embed a manifest file with your application
regards,
|
|
|
|
|
Hello, everyone:
I'm writing an executable packer. I encounter a problem if I compress the resource section (.rsrc) for the executables targeted on Windows 98. No problem on Windows XP.
After the investigation with SoftICE, I've found the reason.
On Windows 98, resource handling is "thunked" to 16-bit DLLs. The 16-bit counterpart of a 32-bit process must be correctly initialized to make it work, including a 16-bit resource table.
However, when the resource section is compressed, it's not initialized at all or not initialized correctly so FindResource fails.
How should I work around this problem if I have to compress the resource section?
|
|
|
|
|
Hello, everyone.
How to find the 16-bit counterpart "module database" of a 32-bit process on Windows 98?
According to Matt Pietrek in Windows 95 System Programming Secrets, Win16 keeps a copy of executable's header in a segment known as a module database. The selector of this segment is called an HMODULE. The closet equivalent to a Win16 module database is the header portion of a program's or DLL's PE file.
His book suggested a brute-force way to enumerate all module databases. It's implemented in a program called SHOW16:
"...examine every possible ring 3 LDT selector, looking for segments that are module databases. For each module database it finds, the code looks for the MODFLAGS_WIN32 flag at offset 0xC in the module database; if this flag is set, the code adds the module to the end of the window's list."
However, I don't have the source code of SHOW16 and I don't know how to enumerate all ring 3 LDT selectors.
|
|
|
|
|
hai friends,
in my system, i have only one lan card.
to use my LAN i have to use on cable and one IP address
and to use internet, other cable and other IP address.
so i have to go to my network places>properties>localarea conection>tcpip>properties and change the IP address.
and some times, the system may demand restart also.
by the time, i do all these, iam forgetting what actually i have to do.
this is happening atleast a dozen times a day.
can any body suggest me any technique, like theme or some scheme, where i can pre store the required IP addresses and simply select the option, to toggle between LAN and internet.
changing the cable physically is however mandatory right??.
thanks in advance.
|
|
|
|
|
batch file?
Any sufficiently advanced technology is indistinguishable from magic. Arthur C. Clarke
|
|
|
|
|
wov wonderful idea.
thanks for the idea.
can you just explain me the commands that i have to write in my batch files?:
mean while, i will try it out.
|
|
|
|
|
|
|
It is a very strange issue I was facing today. My local system Internet Explorer says 'Can not find server' for http://localhost/deepak/ but responds to http://127.0.0.1/deepak/
It is by default both are same right? (127.0.0.1 and localhost)
I verified in Abyss Console and the server was properly loaded. There were no error logs in the server. I am using Abyss Web Server (http://www.aprelium.com/[^])
|
|
|
|
|
Hi,
You can find ip for localhost via
"ping localhost" commnand,
File c:\WINDOWS\system32\drivers\etc\hosts contains ip for "localhost"
|
|
|
|
|
Vasudevan Deepak Kumar wrote: It is by default both are same right? (127.0.0.1 and localhost)
yes
Any sufficiently advanced technology is indistinguishable from magic. Arthur C. Clarke
|
|
|
|
|
Computer A is connected with a switch which is also connected with other 2 computers and switch is also connected to a multi-switch which is then connected to a router, domain controler, DNS DHCP and a access point. So router gets internet and then many laptops are connected to access point.
Now the question is
Computer A issues a DNS request to the DNS server. Draw the protocol stacks for the packets journey through the network....
Any help with this question
ta
James
-- modified at 2:07 Friday 28th September, 2007
|
|
|
|
|
is this homework?
"mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them"
|
|
|
|
|
I wonder if your instructor realizes you are posting your homework questions on online forums?
|
|
|
|
|
Sounds like a Cisco class.
God Bless,
Jason
I am not perfect but I try to be better than those before me.
So those who come after me will be better than I am.
|
|
|
|
|
Would that be a CCNA, CNA, or maybe it's a CISSP question.
Though, now that I think about it, it could be a CEH question.
Any sufficiently advanced technology is indistinguishable from magic. Arthur C. Clarke
|
|
|
|
|
james_dixon_2008 wrote: james_dixon_2008
aaaaaaaaah, hes from the future. Dont bother with your replies people, its internet 2.0 in 2008...
|
|
|
|
|
Dang-it! I just broke my crayon and will not be able to draw you an answer.
Any sufficiently advanced technology is indistinguishable from magic. Arthur C. Clarke
|
|
|
|
|
... and don't try asking again tomorrow.
|
|
|
|
|
I'm writing a batch file and I need to generate yesterdays date. Any ideas how to do it?
|
|
|
|
|
|
Thanks, except I don't have a subscription to it I guess since all the answers are fuzzy.
|
|
|
|
|
Here is the accepted solution. Good luck.
Here's a batch file I developed to subtract any number of days from the current date. It accepts a command line parameter of the number of days. The default is 1 day (yesterday):
@echo off
set yyyy=
set $tok=1-3
for /f "tokens=1 delims=.:/-, " %%u in ('date /t') do set $d1=%%u
if "%$d1:~0,1%" GTR "9" set $tok=2-4
for /f "tokens=%$tok% delims=.:/-, " %%u in ('date /t') do (
for /f "skip=1 tokens=2-4 delims=/-,()." %%x in ('echo.^|date') do (
set %%x=%%u
set %%y=%%v
set %%z=%%w
set $d1=
set $tok=))
if "%yyyy%"=="" set yyyy=%yy%
if /I %yyyy% LSS 100 set /A yyyy=2000 + 1%yyyy% - 100
set CurDate=%mm%/%dd%/%yyyy%
set dayCnt=%1
if "%dayCnt%"=="" set dayCnt=1
REM Substract your days here
set /A dd=1%dd% - 100 - %dayCnt%
set /A mm=1%mm% - 100
:CHKDAY
if /I %dd% GTR 0 goto DONE
set /A mm=%mm% - 1
if /I %mm% GTR 0 goto ADJUSTDAY
set /A mm=12
set /A yyyy=%yyyy% - 1
:ADJUSTDAY
if %mm%==1 goto SET31
if %mm%==2 goto LEAPCHK
if %mm%==3 goto SET31
if %mm%==4 goto SET30
if %mm%==5 goto SET31
if %mm%==6 goto SET30
if %mm%==7 goto SET31
if %mm%==8 goto SET31
if %mm%==9 goto SET30
if %mm%==10 goto SET31
if %mm%==11 goto SET30
REM ** Month 12 falls through
:SET31
set /A dd=31 + %dd%
goto CHKDAY
:SET30
set /A dd=30 + %dd%
goto CHKDAY
:LEAPCHK
set /A tt=%yyyy% %% 4
if not %tt%==0 goto SET28
set /A tt=%yyyy% %% 100
if not %tt%==0 goto SET29
set /A tt=%yyyy% %% 400
if %tt%==0 goto SET29
:SET28
set /A dd=28 + %dd%
goto CHKDAY
:SET29
set /A dd=29 + %dd%
goto CHKDAY
:DONE
if /I %mm% LSS 10 set mm=0%mm%
if /I %dd% LSS 10 set dd=0%dd%
echo Date %dayCnt% day(s) before %CurDate% is %mm%/%dd%/%yyyy%
Good Luck,
Steve
|
|
|
|
|
Hi, I would like to know whether Visual Studio 2005 can be installed perfectly on Vista Ultimate.Will there be any need of installing the Service Pack 1 for Visual Studio and Service Pack Update for Vista if I'm going to install Visual Studio on a system with Vista Ultimate .
Also can anybody help me with what all service packs are needed for installing SQL Server 2005 Developer Edition on a Vista Ultimate system.
Please help !!
Jr Jith
|
|
|
|
|
juniorjith wrote: Hi, I would like to know whether Visual Studio 2005 can be installed perfectly on Vista Ultimate.
Sure.
juniorjith wrote: Will there be any need of installing the Service Pack 1 for Visual Studio
Yes, you must install this.
juniorjith wrote: and Service Pack Update for Vista
What does the name of the service pack suggest to you?? Of course, you MUST install this to get VS to work correctly under Vista.
juniorjith wrote: I'm going to install Visual Studio on a system with Vista Ultimate
It doesn't matter which edition of Vista you install VS on, they're all treated the same.
SQL Server 2005 Service Pack 2[^]
|
|
|
|