Type: Integer
This property returns the bit size of the underlying operating system, such as 32 or 64 bits.
Special Installation Step
Before using this property you must place the bhawkcap.swf into the same web directory where your scripts resides that performs the OSBitSize property check. This step is not performed for you automatically during installation of BrowserHawk. Therefore you must do so manually. For example, if your web page that tests OSBItSize is \inetpub\wwwroot\mysite\bhtest.aspx, then the swf must be placed in that same directory where the bhtest.aspx file resides. BrowserHawk for ActiveX and .NET users can find the bhawkcap.swf file in the \Program Files\cyScape\BrowserHawk folder. BH4J users can find this file in the BH4J zip distribution. This file is needed because for non-IE browsers Flash is used to detect the OSBitSize. Note that the Flash it executes for this test is completely transparent.
Note: You must call the GetExtPropertiesEx method before checking the value of this property. This property requires the Enterprise Edition of BrowserHawk.
Example:
<% set bhObj = Server.CreateObject("cyScape.browserObj")
bhObj.SetExtProperties "OSBitSize"
bhObj.GetExtPropertiesEx
%>
<html>OSBitSize is: <% response.write bhObj.OSBitSize %> </html>
Special notes for this property:
The visitor's browser must have Flash version 10 or higher installed and enabled to use this property for browsers other than IE.
A value of -1 is returned for non-IE browsers if the user does not have Flash 10 or higher and the OS bit size cannot be determined from the browser's user agent string.
A value of -2 is returned if you check this property without first performing an extended property check and specifying OSBitSize to be tested.
A value of -3 is returned for non-IE browsers if the user has Flash but it is blocked or disabled, or if the BrowserHawk Flash object used to perform this test cannot be found or does not load. If you find this is occurring for a significant number of your users on OS X, consider setting the FlashTimeout property.
If you consistently get a value of -3 for this property for all non-IE browsers the most likely cause is that the bhawkcap.swf file is not located in the same directory as your web script that is performing the OSBitSize test (see "Special installation step" note above).
If the user’s JavaScript is disabled this property will not be available for non-IE browsers.
See Also: