Skip to main content

Posts

Disable Windows Vista UAC using MSCONFIG

Run msconfig.exe from command line. Then select "Disable UAC", see above for the location. Then hit on "Launch" button. Reboot computer. ~ts

SHDocVw.ShellWindows stopped working on Vista

I have the following code to enumerate running instance of IE 7(not sure if this works with IE6). Sub TestGetRunningIE() Dim sws As SHDocVw.ShellWindows Dim ie As SHDocVw.InternetExplorer Set sws = New SHDocVw.ShellWindows For Each ie In sws Debug.Print ie.Name Next End Sub For the above code to work, need to make a reference to shdocvw.dll, see below for the location: When I moved this code in Vista SP1 Business it stopped working. Who would think that this is related to UAC :)... anyway just disable UAC and this code should work again. Note that on one of my machines it is working with UAC on :(.... See this post to disable UAC . This is only one of the methods to disable User Account Control. ~ts

ASM: Convert int to string in Assembly

This post shows how to convert int (DWORD) to string using MASM library dwtoa. There seems to be a bug in dwtoa as it can only handle 2147483647 instead of 4294967295 which is the maximum size of DWORD (32-bit). The code for dwtoa checks for a negative number which is not needed for DWORD. Note that DWORD is defined as 32-bit unsigned. Pre-requisite: Install MASM To assemble: \masm32\bin\ml /c /Zd /coff int2string.asm To link: \masm32\bin\Link /SUBSYSTEM:CONSOLE int2string.obj

ASM: Basic Windows application in Assembly

This post shows how to create Windows application using Assembly. Pre-requisite: Install MASM To assemble: \masm32\bin\ml /c /Zd /coff basicwindows.asm To link: \masm32\bin\Link /SUBSYSTEM:WINDOWS basicwindows.obj Reference(s): This is shamelessly using contents from Windows Assembly Programming Tutorial  by JEFF HUANG (huang6@uiuc.edu)

ASM: Basic usage of assembly instructions

This program shows usage of basic assembly instructions add, cmp, dec, jnz, jz, mov, mul, pop, push, xor Pre-requisite: Install MASM To assemble: \masm32\bin\ml /c /Zd /coff basicinstructions.asm To link: \masm32\bin\Link /SUBSYSTEM:CONSOLE basicinstructions.obj Reference(s): This is shamelessly using contents from Windows Assembly Programming Tutorial  by JEFF HUANG (huang6@uiuc.edu)

ASM: Hello world using MessageBox in Windows assembly

MessageBox Hello World in Windows assembly using MASM Pre-requisite: Install MASM To assemble: \masm32\bin\ml /c /Zd /coff hellow.asm To link: \masm32\bin\Link /SUBSYSTEM:WINDOWS hellow.obj Reference(s): This is shamelessly using contents from Windows Assembly Programming Tutorial  by JEFF HUANG (huang6@uiuc.edu) x86 Disassembly - link