Someone might know how to determine if a file/handle/process etc. is 16-bit or 32-bit? Thankye. :D
Printable View
Someone might know how to determine if a file/handle/process etc. is 16-bit or 32-bit? Thankye. :D
The number of bits in a variable can be found asCode:Dim b as Byte ' this is 8 bit
Dim i as Integer ' this is 16 bit
Dim j as Long ' this is 32 bit
Length = LenB(variable) * 8
Also, bear in mind that Variant datatypes don't behave like this - they have extra bytes as information as to what type of data they are currently pretending to be.
VB Strings are unicode, meaning there are two 8 bit bytes for each character.
All operations on Win95, Win98, Win 2000 me & pro, NT x -
are all 32 bit, ie,. a 16 bit variable is pushed onto the stack using fill bits to make it 32 bits long - because the stack handles objects in 32 bit chunks only, unless you are doing something odd in MASM32. All of the other registers work this way too.
Win 3.11 and earlier run on 16 bit machines - same deal with the stack & registers only 16 bits this time
However, I'm still clueless as to find out if a file is 16 or 32-bit. Lets say that I've got the hwnd to a window, in which I'm able to retrieve the process, filepath, you name it from it. How can implement this to determine how many bits it uses?