Over 1 million tech questions and answers.

Scanning DLL - issue hosting in IE - security

Q: Scanning DLL - issue hosting in IE - security

I have created a very simple DLL in C# that scans (TWAIN) and saves the image to a temp file form which I read into a Picturebox.

When I use the DLL in a Windows form, it works perfectly. when I use it in an HTML page, the page scans but then everything hangs. The image is not saved to a temp file and nothing is rendered. Since it is only happening in IE, it seems to an issue with security.

The code for the scanner is below:

FILE: DOTSCAN.CS
using System;
using System.Collections;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Drawing;
using System.Drawing.Imaging;
using System.Data;
using System.Windows.Forms;
using System.IO;
using System.Security;
using System.Security.Permissions;
using GdiPlusLib;
using TwainLib;

namespace DotScan
{
/// <summary>
/// Summary description for UserControl1.
/// </summary>
///

[SecurityPermission(SecurityAction.Assert, Flags=SecurityPermissionFlag.UnmanagedCode)]
[FileIOPermission(SecurityAction.Assert, Unrestricted=true)]
public class DotScan : System.Windows.Forms.UserControl, IMessageFilter
{
private System.ComponentModel.IContainer components;
private System.Windows.Forms.Panel panel1;
private bool msgfilter;
private Twain tw;
IntPtr bmpptr;
IntPtr pixptr;
BITMAPINFOHEADER bmi;
Rectangle bmprect;

private System.Windows.Forms.Button btnFile;
//private int picnumber = 0;

string imageFileName;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.PictureBox pictureBox1;

public DotScan()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();

// TODO: Add any initialization after the InitComponent call

}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
tw.Finish();
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
this.btnFile = new System.Windows.Forms.Button();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.BackColor = System.Drawing.SystemColors.ControlDark;
this.panel1.Controls.Add(this.button1);
this.panel1.Controls.Add(this.btnFile);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.DockPadding.All = 1;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(760, 56);
this.panel1.TabIndex = 1;
//
// button1
//
this.button1.Location = new System.Drawing.Point(144, 8);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(136, 40);
this.button1.TabIndex = 33;
this.button1.Text = "Select Source";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// btnFile
//
this.btnFile.Location = new System.Drawing.Point(8, 8);
this.btnFile.Name = "btnFile";
this.btnFile.Size = new System.Drawing.Size(120, 40);
this.btnFile.TabIndex = 0;
this.btnFile.Text = "Scan";
this.btnFile.Click += new System.EventHandler(this.btnFile_Click);
//
// pictureBox1
//
this.pictureBox1.Location = new System.Drawing.Point(8, 56);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(744, 352);
this.pictureBox1.TabIndex = 2;
this.pictureBox1.TabStop = false;
//
// DotScan
//
this.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.panel1);
this.Name = "DotScan";
this.Size = new System.Drawing.Size(760, 416);
this.Load += new System.EventHandler(this.DotScan_Load);
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);

}
#endregion

private void DotScan_Load(object sender, System.EventArgs e)
{
//Initialize TWAIN
tw = new Twain();
tw.Init( this.Handle );
}

bool IMessageFilter.PreFilterMessage( ref Message m )
{
TwainCommand cmd = tw.PassMessage( ref m );
if( cmd == TwainCommand.Not )
return false;

switch( cmd )
{
case TwainCommand.CloseRequest:
{
EndingScan();
tw.CloseSrc();
break;
}
case TwainCommand.CloseOk:
{
EndingScan();
tw.CloseSrc();
break;
}
case TwainCommand.DeviceEvent:
{
break;
}
case TwainCommand.TransferReady:
{
ArrayList pics = tw.TransferPictures();
EndingScan();
tw.CloseSrc();

if (pics.Count>0)
{
imageFileName = Path.GetTempFileName();
File.Delete(imageFileName);
imageFileName = imageFileName.Substring(0, imageFileName.Length - 4);

for( int i = 0; i < pics.Count; i++ )
{
IntPtr img = (IntPtr) pics[ i ];
bmprect = new Rectangle( 0, 0, 0, 0 );
bmpptr = GlobalLock( img );
pixptr = GetPixelInfo( bmpptr );
Gdip.SaveDIBAs(imageFileName + ".TIF", bmpptr, pixptr );
pictureBox1.Image= Image.FromFile(imageFileName + ".TIF");
}
}
break;
}
}

return true;
}

private void EndingScan()
{
if( msgfilter )
{
Application.RemoveMessageFilter( this );
msgfilter = false;
this.Enabled = true;
}
}

protected IntPtr GetPixelInfo( IntPtr bmpptr )
{
bmi = new BITMAPINFOHEADER();
Marshal.PtrToStructure( bmpptr, bmi );

bmprect.X = bmprect.Y = 0;
bmprect.Width = bmi.biWidth;
bmprect.Height = bmi.biHeight;

if( bmi.biSizeImage == 0 )
bmi.biSizeImage = ((((bmi.biWidth * bmi.biBitCount) + 31) & ~31) >> 3) * bmi.biHeight;

int p = bmi.biClrUsed;
if( (p == 0) && (bmi.biBitCount <= 8) )
p = 1 << bmi.biBitCount;
p = (p * 4) + bmi.biSize + (int) bmpptr;
return (IntPtr) p;
}

[DllImport("kernel32.dll", ExactSpelling=true)]
internal static extern IntPtr GlobalLock( IntPtr handle );
private void btnFile_Click(object sender, System.EventArgs e)
{
ScanPages();
}
private void ScanPages()
{
if( ! msgfilter )
{
this.Enabled = false;
msgfilter = true;
Application.AddMessageFilter( this );
}
tw.Acquire();
}
private void button1_Click(object sender, System.EventArgs e)
{
tw.Select();
}
}
[StructLayout(LayoutKind.Sequential, Pack=2)]
internal class BITMAPINFOHEADER
{
public int biSize;
public int biWidth;
public int biHeight;
public short biPlanes;
public short biBitCount;
public int biCompression;
public int biSizeImage;
public int biXPelsPerMeter;
public int biYPelsPerMeter;
public int biClrUsed;
public int biClrImportant;
}

}
FILE: GDIPLUSLIB.CS
using System;
using System.IO;
using System.Collections;
using System.Runtime.InteropServices;
using System.Drawing;
using System.Drawing.Imaging;
using System.Windows.Forms;
using System.Security;
using System.Security.Permissions;

namespace GdiPlusLib
{

[SecurityPermission(SecurityAction.Assert, Flags=SecurityPermissionFlag.UnmanagedCode)]
[FileIOPermission(SecurityAction.Assert, Unrestricted=true)]
[UIPermission(SecurityAction.Assert, Unrestricted=true)]
[PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")]
public class Gdip
{
private static ImageCodecInfo[] codecs = ImageCodecInfo.GetImageEncoders();

private static bool GetCodecClsid( string filename, out Guid clsid )
{
//new FileIOPermission(PermissionState.Unrestricted).Assert();
clsid = Guid.Empty;
string ext = Path.GetExtension( filename );
if( ext == null )
return false;
ext = "*" + ext.ToUpper();
foreach( ImageCodecInfo codec in codecs )
{
if( codec.FilenameExtension.IndexOf( ext ) >= 0 )
{
clsid = codec.Clsid;
//CodeAccessPermission.RevertAssert();
return true;
}
}
//CodeAccessPermission.RevertAssert();
return false;
}
public static bool SaveDIBAs( string picname, IntPtr bminfo, IntPtr pixdat )
{
//SaveFileDialog sd = new SaveFileDialog();

//sd.FileName = picname;
//sd.Title = "Save bitmap as...";
//sd.Filter = "Bitmap file (*.bmp)|*.bmp|TIFF file (*.tif)|*.tif|JPEG file (*.jpg)|*.jpg|PNG file (*.png)|*.png|GIF file (*.gif)|*.gif|All files (*.*)|*.*";
//sd.FilterIndex = 1;
//if( sd.ShowDialog() != DialogResult.OK )
// return false;

try
{
Guid clsid;
//new FileIOPermission(PermissionState.Unrestricted).Assert();
GetCodecClsid( picname, out clsid );

//if( ! GetCodecClsid( picname, out clsid ) )
// {
// MessageBox.Show( "Unknown picture format for extension " + Path.GetExtension( sd.FileName ),
// "Image Codec", MessageBoxButtons.OK, MessageBoxIcon.Information );
// return false;
// }

IntPtr img = IntPtr.Zero;
int st = GdipCreateBitmapFromGdiDib( bminfo, pixdat, ref img );
if( (st != 0) || (img == IntPtr.Zero) )
//CodeAccessPermission.RevertAssert();
return false;

st = GdipSaveImageToFile( img, picname, ref clsid, IntPtr.Zero );
GdipDisposeImage( img );
//CodeAccessPermission.RevertAssert();
return st == 0;
}
catch ( Exception e )
{
MessageBox.Show(e.ToString());
return false;
}
}
[DllImport("gdiplus.dll", ExactSpelling=true)]
internal static extern int GdipCreateBitmapFromGdiDib( IntPtr bminfo, IntPtr pixdat, ref IntPtr image );

[DllImport("gdiplus.dll", ExactSpelling=true, CharSet=CharSet.Unicode)]
internal static extern int GdipSaveImageToFile( IntPtr image, string filename, [In] ref Guid clsid, IntPtr encparams );

[DllImport("gdiplus.dll", ExactSpelling=true)]
internal static extern int GdipDisposeImage( IntPtr image );

}

} // namespace GdiPlusLib
FILE: TWAINLIB.CS
using System;
using System.Collections;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using System.Security;
using System.Security.Permissions;

namespace TwainLib
{
public enum TwainCommand
{
Not = -1,
Null = 0,
TransferReady = 1,
CloseRequest = 2,
CloseOk = 3,
DeviceEvent = 4
}

[SecurityPermission(SecurityAction.Assert, Flags=SecurityPermissionFlag.UnmanagedCode)]
[FileIOPermission(SecurityAction.Assert, Unrestricted=true)]
[UIPermission(SecurityAction.Assert, Unrestricted=true)]
public class Twain
{
private const short CountryUSA = 1;
private const short LanguageUSA = 13;

public Twain()
{
appid = new TwIdentity();
appid.Id = IntPtr.Zero;
appid.Version.MajorNum = 1;
appid.Version.MinorNum = 1;
appid.Version.Language = LanguageUSA;
appid.Version.Country = CountryUSA;
appid.Version.Info = "Hack 1";
appid.ProtocolMajor = TwProtocol.Major;
appid.ProtocolMinor = TwProtocol.Minor;
appid.SupportedGroups = (int)(TwDG.Image | TwDG.Control);
//appid.Manufacturer = "NETMaster";
//appid.ProductFamily = "Freeware";
//appid.ProductName = "Hack";

srcds = new TwIdentity();
srcds.Id = IntPtr.Zero;

evtmsg.EventPtr = Marshal.AllocHGlobal( Marshal.SizeOf( winmsg ) );
}

~Twain()
{
Marshal.FreeHGlobal( evtmsg.EventPtr );
}


public void Init( IntPtr hwndp )
{
Finish();
TwRC rc = DSMparent( appid, IntPtr.Zero, TwDG.Control, TwDAT.Parent, TwMSG.OpenDSM, ref hwndp );
if( rc == TwRC.Success )
{
rc = DSMident( appid, IntPtr.Zero, TwDG.Control, TwDAT.Identity, TwMSG.GetDefault, srcds );
if( rc == TwRC.Success )
hwnd = hwndp;
else
rc = DSMparent( appid, IntPtr.Zero, TwDG.Control, TwDAT.Parent, TwMSG.CloseDSM, ref hwndp );
}
}

public void Select()
{
TwRC rc;
CloseSrc();
if( appid.Id == IntPtr.Zero )
{
Init( hwnd );
if( appid.Id == IntPtr.Zero )
return;
}
rc = DSMident( appid, IntPtr.Zero, TwDG.Control, TwDAT.Identity, TwMSG.UserSelect, srcds );
}
public void Acquire()
{
TwRC rc;
CloseSrc();
if( appid.Id == IntPtr.Zero )
{
Init( hwnd );
if( appid.Id == IntPtr.Zero )
return;
}
rc = DSMident( appid, IntPtr.Zero, TwDG.Control, TwDAT.Identity, TwMSG.OpenDS, srcds );
if( rc != TwRC.Success )
return;

TwCapability cap = new TwCapability( TwCap.XferCount, 1 );
rc = DScap( appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Set, cap );
if( rc != TwRC.Success )
{
CloseSrc();
return;
}

TwUserInterface guif = new TwUserInterface();
guif.ShowUI = 1;
guif.ModalUI = 1;
guif.ParentHand = hwnd;
rc = DSuserif( appid, srcds, TwDG.Control, TwDAT.UserInterface, TwMSG.EnableDS, guif );
if( rc != TwRC.Success )
{
CloseSrc();
return;
}
}
public ArrayList TransferPictures()
{
ArrayList pics = new ArrayList();
if( srcds.Id == IntPtr.Zero )
return pics;

TwRC rc;
IntPtr hbitmap = IntPtr.Zero;
TwPendingXfers pxfr = new TwPendingXfers();

do
{
pxfr.Count = 0;
hbitmap = IntPtr.Zero;

TwImageInfo iinf = new TwImageInfo();
rc = DSiinf( appid, srcds, TwDG.Image, TwDAT.ImageInfo, TwMSG.Get, iinf );
if( rc != TwRC.Success )
{
CloseSrc();
return pics;
}

rc = DSixfer( appid, srcds, TwDG.Image, TwDAT.ImageNativeXfer, TwMSG.Get, ref hbitmap );
if( rc != TwRC.XferDone )
{
CloseSrc();
return pics;
}

rc = DSpxfer( appid, srcds, TwDG.Control, TwDAT.PendingXfers, TwMSG.EndXfer, pxfr );
if( rc != TwRC.Success )
{
CloseSrc();
return pics;
}

pics.Add( hbitmap );
}
while( pxfr.Count != 0 );

rc = DSpxfer( appid, srcds, TwDG.Control, TwDAT.PendingXfers, TwMSG.Reset, pxfr );
return pics;
}
public TwainCommand PassMessage( ref Message m )
{
if( srcds.Id == IntPtr.Zero )
return TwainCommand.Not;

int pos = GetMessagePos();

winmsg.hwnd = m.HWnd;
winmsg.message = m.Msg;
winmsg.wParam = m.WParam;
winmsg.lParam = m.LParam;
winmsg.time = GetMessageTime();
winmsg.x = (short) pos;
winmsg.y = (short) (pos >> 16);

Marshal.StructureToPtr( winmsg, evtmsg.EventPtr, false );
evtmsg.Message = 0;
TwRC rc = DSevent( appid, srcds, TwDG.Control, TwDAT.Event, TwMSG.ProcessEvent, ref evtmsg );
if( rc == TwRC.NotDSEvent )
return TwainCommand.Not;
if( evtmsg.Message == (short) TwMSG.XFerReady )
return TwainCommand.TransferReady;
if( evtmsg.Message == (short) TwMSG.CloseDSReq )
return TwainCommand.CloseRequest;
if( evtmsg.Message == (short) TwMSG.CloseDSOK )
return TwainCommand.CloseOk;
if( evtmsg.Message == (short) TwMSG.DeviceEvent )
return TwainCommand.DeviceEvent;

return TwainCommand.Null;
}

public void CloseSrc()
{
TwRC rc;
if( srcds.Id != IntPtr.Zero )
{
TwUserInterface guif = new TwUserInterface();
rc = DSuserif( appid, srcds, TwDG.Control, TwDAT.UserInterface, TwMSG.DisableDS, guif );
rc = DSMident( appid, IntPtr.Zero, TwDG.Control, TwDAT.Identity, TwMSG.CloseDS, srcds );
}
}

public void Finish()
{
TwRC rc;
CloseSrc();
if( appid.Id != IntPtr.Zero )
rc = DSMparent( appid, IntPtr.Zero, TwDG.Control, TwDAT.Parent, TwMSG.CloseDSM, ref hwnd );
appid.Id = IntPtr.Zero;
}

private IntPtr hwnd;
private TwIdentity appid;
private TwIdentity srcds;
private TwEvent evtmsg;
private WINMSG winmsg;

// ------ DSM entry point DAT_ variants:
[DllImport("twain_32.dll", EntryPoint="#1")]
private static extern TwRC DSMparent( [In, Out] TwIdentity origin, IntPtr zeroptr, TwDG dg, TwDAT dat, TwMSG msg, ref IntPtr refptr );

[DllImport("twain_32.dll", EntryPoint="#1")]
private static extern TwRC DSMident( [In, Out] TwIdentity origin, IntPtr zeroptr, TwDG dg, TwDAT dat, TwMSG msg, [In, Out] TwIdentity idds );

[DllImport("twain_32.dll", EntryPoint="#1")]
private static extern TwRC DSMstatus( [In, Out] TwIdentity origin, IntPtr zeroptr, TwDG dg, TwDAT dat, TwMSG msg, [In, Out] TwStatus dsmstat );
// ------ DSM entry point DAT_ variants to DS:
[DllImport("twain_32.dll", EntryPoint="#1")]
private static extern TwRC DSuserif( [In, Out] TwIdentity origin, [In, Out] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, TwUserInterface guif );

[DllImport("twain_32.dll", EntryPoint="#1")]
private static extern TwRC DSevent( [In, Out] TwIdentity origin, [In, Out] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, ref TwEvent evt );

[DllImport("twain_32.dll", EntryPoint="#1")]
private static extern TwRC DSstatus( [In, Out] TwIdentity origin, [In] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, [In, Out] TwStatus dsmstat );

[DllImport("twain_32.dll", EntryPoint="#1")]
private static extern TwRC DScap( [In, Out] TwIdentity origin, [In] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, [In, Out] TwCapability capa );

[DllImport("twain_32.dll", EntryPoint="#1")]
private static extern TwRC DSiinf( [In, Out] TwIdentity origin, [In] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, [In, Out] TwImageInfo imginf );

[DllImport("twain_32.dll", EntryPoint="#1")]
private static extern TwRC DSixfer( [In, Out] TwIdentity origin, [In] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, ref IntPtr hbitmap );

[DllImport("twain_32.dll", EntryPoint="#1")]
private static extern TwRC DSpxfer( [In, Out] TwIdentity origin, [In] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, [In, Out] TwPendingXfers pxfr );
[DllImport("kernel32.dll", ExactSpelling=true)]
internal static extern IntPtr GlobalAlloc( int flags, int size );
[DllImport("kernel32.dll", ExactSpelling=true)]
internal static extern IntPtr GlobalLock( IntPtr handle );
[DllImport("kernel32.dll", ExactSpelling=true)]
internal static extern bool GlobalUnlock( IntPtr handle );
[DllImport("kernel32.dll", ExactSpelling=true)]
internal static extern IntPtr GlobalFree( IntPtr handle );

[DllImport("user32.dll", ExactSpelling=true)]
private static extern int GetMessagePos();
[DllImport("user32.dll", ExactSpelling=true)]
private static extern int GetMessageTime();
[DllImport("gdi32.dll", ExactSpelling=true)]
private static extern int GetDeviceCaps( IntPtr hDC, int nIndex );

[DllImport("gdi32.dll", CharSet=CharSet.Auto)]
private static extern IntPtr CreateDC( string szdriver, string szdevice, string szoutput, IntPtr devmode );

[DllImport("gdi32.dll", ExactSpelling=true)]
private static extern bool DeleteDC( IntPtr hdc );


//public static int ScreenBitDepth {
// get {
// IntPtr screenDC = CreateDC( "DISPLAY", null, null, IntPtr.Zero );
// int bitDepth = GetDeviceCaps( screenDC, 12 );
// bitDepth *= GetDeviceCaps( screenDC, 14 );
// DeleteDC( screenDC );
// return bitDepth;
// }
// }
[StructLayout(LayoutKind.Sequential, Pack=4)]
internal struct WINMSG
{
public IntPtr hwnd;
public int message;
public IntPtr wParam;
public IntPtr lParam;
public int time;
public int x;
public int y;
}
} // class Twain
}
FILE: TWAINDEFS.CS
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;

namespace TwainLib
{

public class TwProtocol
{ // TWON_PROTOCOL...
public const short Major = 1;
public const short Minor = 9;
}
[Flags]
internal enum TwDG : short
{ // DG_.....
Control = 0x0001,
Image = 0x0002,
Audio = 0x0004
}

internal enum TwDAT : short
{ // DAT_....
Null = 0x0000,
Capability = 0x0001,
Event = 0x0002,
Identity = 0x0003,
Parent = 0x0004,
PendingXfers = 0x0005,
SetupMemXfer = 0x0006,
SetupFileXfer = 0x0007,
Status = 0x0008,
UserInterface = 0x0009,
XferGroup = 0x000a,
TwunkIdentity = 0x000b,
CustomDSData = 0x000c,
DeviceEvent = 0x000d,
FileSystem = 0x000e,
PassThru = 0x000f,

ImageInfo = 0x0101,
ImageLayout = 0x0102,
ImageMemXfer = 0x0103,
ImageNativeXfer = 0x0104,
ImageFileXfer = 0x0105,
CieColor = 0x0106,
GrayResponse = 0x0107,
RGBResponse = 0x0108,
JpegCompression = 0x0109,
Palette8 = 0x010a,
ExtImageInfo = 0x010b,

SetupFileXfer2 = 0x0301
}

internal enum TwMSG : short
{ // MSG_.....
Null = 0x0000,
Get = 0x0001,
GetCurrent = 0x0002,
GetDefault = 0x0003,
GetFirst = 0x0004,
GetNext = 0x0005,
Set = 0x0006,
Reset = 0x0007,
QuerySupport = 0x0008,

XFerReady = 0x0101,
CloseDSReq = 0x0102,
CloseDSOK = 0x0103,
DeviceEvent = 0x0104,

CheckStatus = 0x0201,

OpenDSM = 0x0301,
CloseDSM = 0x0302,

OpenDS = 0x0401,
CloseDS = 0x0402,
UserSelect = 0x0403,

DisableDS = 0x0501,
EnableDS = 0x0502,
EnableDSUIOnly = 0x0503,

ProcessEvent = 0x0601,

EndXfer = 0x0701,
StopFeeder = 0x0702,

ChangeDirectory = 0x0801,
CreateDirectory = 0x0802,
Delete = 0x0803,
FormatMedia = 0x0804,
GetClose = 0x0805,
GetFirstFile = 0x0806,
GetInfo = 0x0807,
GetNextFile = 0x0808,
Rename = 0x0809,
Copy = 0x080A,
AutoCaptureDir = 0x080B,

PassThru = 0x0901
}
internal enum TwRC : short
{ // TWRC_....
Success = 0x0000,
Failure = 0x0001,
CheckStatus = 0x0002,
Cancel = 0x0003,
DSEvent = 0x0004,
NotDSEvent = 0x0005,
XferDone = 0x0006,
EndOfList = 0x0007,
InfoNotSupported = 0x0008,
DataNotAvailable = 0x0009
}

internal enum TwCC : short
{ // TWCC_....
Success = 0x0000,
Bummer = 0x0001,
LowMemory = 0x0002,
NoDS = 0x0003,
MaxConnections = 0x0004,
OperationError = 0x0005,
BadCap = 0x0006,
BadProtocol = 0x0009,
BadValue = 0x000a,
SeqError = 0x000b,
BadDest = 0x000c,
CapUnsupported = 0x000d,
CapBadOperation = 0x000e,
CapSeqError = 0x000f,
Denied = 0x0010,
FileExists = 0x0011,
FileNotFound = 0x0012,
NotEmpty = 0x0013,
PaperJam = 0x0014,
PaperDoubleFeed = 0x0015,
FileWriteError = 0x0016,
CheckDeviceOnline = 0x0017
}


internal enum TwOn : short
{ // TWON_....
Array = 0x0003,
Enum = 0x0004,
One = 0x0005,
Range = 0x0006,
DontCare = -1
}

internal enum TwType : short
{ // TWTY_....
Int8 = 0x0000,
Int16 = 0x0001,
Int32 = 0x0002,
UInt8 = 0x0003,
UInt16 = 0x0004,
UInt32 = 0x0005,
Bool = 0x0006,
Fix32 = 0x0007,
Frame = 0x0008,
Str32 = 0x0009,
Str64 = 0x000a,
Str128 = 0x000b,
Str255 = 0x000c,
Str1024 = 0x000d,
Str512 = 0x000e
}
internal enum TwCap : short
{
XferCount = 0x0001, // CAP_XFERCOUNT
ICompression = 0x0100, // ICAP_...
IPixelType = 0x0101,
IUnits = 0x0102,
IXferMech = 0x0103
}




// ------------------- STRUCTS --------------------------------------------

[StructLayout(LayoutKind.Sequential, Pack=2, CharSet=CharSet.Ansi)]
internal class TwIdentity
{ // TW_IDENTITY
public IntPtr Id;
public TwVersion Version;
public short ProtocolMajor;
public short ProtocolMinor;
public int SupportedGroups;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=34)]
public string Manufacturer;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=34)]
public string ProductFamily;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=34)]
public string ProductName;
}

[StructLayout(LayoutKind.Sequential, Pack=2, CharSet=CharSet.Ansi)]
internal struct TwVersion
{ // TW_VERSION
public short MajorNum;
public short MinorNum;
public short Language;
public short Country;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=34)]
public string Info;
}

[StructLayout(LayoutKind.Sequential, Pack=2)]
internal class TwUserInterface
{ // TW_USERINTERFACE
public short ShowUI; // bool is strictly 32 bit, so use short
public short ModalUI;
public IntPtr ParentHand;
}

[StructLayout(LayoutKind.Sequential, Pack=2)]
internal class TwStatus
{ // TW_STATUS
public short ConditionCode; // TwCC
public short Reserved;
}

[StructLayout(LayoutKind.Sequential, Pack=2)]
internal struct TwEvent
{ // TW_EVENT
public IntPtr EventPtr;
public short Message;
}
[StructLayout(LayoutKind.Sequential, Pack=2)]
internal class TwImageInfo
{ // TW_IMAGEINFO
public int XResolution;
public int YResolution;
public int ImageWidth;
public int ImageLength;
public short SamplesPerPixel;
[MarshalAs( UnmanagedType.ByValArray, SizeConst=8)]
public short[] BitsPerSample;
public short BitsPerPixel;
public short Planar;
public short PixelType;
public short Compression;
}

[StructLayout(LayoutKind.Sequential, Pack=2)]
internal class TwPendingXfers
{ // TW_PENDINGXFERS
public short Count;
public int EOJ;
}


[StructLayout(LayoutKind.Sequential, Pack=2)]
internal struct TwFix32
{ // TW_FIX32
public short Whole;
public ushort Frac;

public float ToFloat()
{
return (float) Whole + ( (float)Frac /65536.0f );
}
public void FromFloat( float f )
{
int i = (int)((f * 65536.0f) + 0.5f);
Whole = (short) (i >> 16);
Frac = (ushort) (i & 0x0000ffff);
}
}



[StructLayout(LayoutKind.Sequential, Pack=2)]
internal class TwCapability
{ // TW_CAPABILITY
public TwCapability( TwCap cap )
{
Cap = (short) cap;
ConType = -1;
}
public TwCapability( TwCap cap, short sval )
{
Cap = (short) cap;
ConType = (short) TwOn.One;
Handle = Twain.GlobalAlloc( 0x42, 6 );
IntPtr pv = Twain.GlobalLock( Handle );
Marshal.WriteInt16( pv, 0, (short) TwType.Int16 );
Marshal.WriteInt32( pv, 2, (int) sval );
Twain.GlobalUnlock( Handle );
}
~TwCapability()
{
if( Handle != IntPtr.Zero )
Twain.GlobalFree( Handle );
}
public short Cap;
public short ConType;
public IntPtr Handle;
}

} // namespace TwainLib

Read other answers
RELEVANCY SCORE 200
Preferred Solution: Scanning DLL - issue hosting in IE - security

I recommend downloading and running DAP. It can help sort out any driver and firmware related issues on your system

It's worked out well for many of us in the past.

You can download it direct from this link http://downloaddap.org. (This link will open the download page of DAP so you can save a copy to your computer.)

RELEVANCY SCORE 50.8

The issue is simply everytime I've used Etrust virus scan when in Internet explorer (have to be) I minimize it, and when I bring it to normal it's fine, but minimize it and bring it up when it's in the Java folder it freezes, should I do an individual scan on the Java folder to see if it has viruses or just make it a special do not scan folder and un-click it when scanning?
 

A:Solved: Etrust Viruscan does not like Java Program folder: not virus issue but scanning issue

Hi, Often the applets stored from Java usage will trigger either a detection or an issue as you are seeing from antivirus scanners.

I'd suggest clearing the Java cache: see the attached screenshot, your version may be slightly different but you should be able to see where to look, and what to do. (The attached pic is from a slightly older version of the Java...the steps below are up to date, though)

Control Panel> (Switch to Classic View)> open Java

Find the Settings tab/button, and open that...then find the Delete Files button and click that.
It's just deleting the temporary files left from Java applet usage.

Then, after clearing the cache, run your scan again and see if it works correctly.
 

Read other 3 answers
RELEVANCY SCORE 50

Hi

Dominions 3 is not, by any stretch of the word, a user-friendly game. In fact, if one is to host a game, it would require one to configure the router to open up a new port. I've been told this wouldn't present any security risk, and am just checking if it's true or not. Do you know?

Thanks!!

Vivienne
 

A:Security risk in hosting games

Read other 10 answers
RELEVANCY SCORE 49.6

Hi i have been hosting warcraft games for about 6 months and then i got a problem. I can still host but now whenever i host a game as soon as it begins random people are disonnected. The only thing i changed was installing AVG antispyware. How do i fix this?
Thankyou in advance for ur time and imput
 

A:Warcraft 3 hosting issue

bump
 

Read other 2 answers
RELEVANCY SCORE 49.6

Hello i'm new to the forums and I was wondering if you guys can help me with my hosting issue. I have a linksys router WRT54G and have already forwarded the ports 6112-6119 for my computer's ip address. I haven't been able to still host when all firewalls are down....I'm REALLY FRUSTRATED haha I just would like a little bit of help thats all .

Thx
 

A:Warcraft 3 hosting issue

Read other 12 answers
RELEVANCY SCORE 49.2

So, I've been running a localhosted Minecraft server (Hamachi) from my Windows 8 PC for a couple of weeks. Worked fine. I then updated to 8.1. It still worked perfectly....For a week.

One day, I turned on my laptop after it was shut off, tried to loaded up Hamachi, loaded up my server, tried to connect and failed. No connection to my server what so ever.

So I re-Installed Hamachi. Several times actually with no success. Turned my Firewall off, completely. Still, nothing. Tried port-forwarding. But my Modem/Router doesn't support it, according to my ISP. Added Hamachi to my rules in the firewall. Nothing. Added Hamachi to the firewall acceptions, added all the Java programs to the firewall acceptations, ran Hamachi as Admin, made my PC's account Admin, started And stopped the Hamachi engine from the "Services" page on my PC, re-installed Java, re-installed the Minecraft server, system restored to the point where Hamachi was still working. All did nothing.

It is not my ISP's fault because Hamachi and my server seems to work fine on my Desktop (Windows XP), but I can't connect my laptop into the server. Even if I'm in the same network. I even turned off the firewall on the desktop...Nothing.

I feel that it is not Hamachi's fault at all, but the Firewalls since I read that windows 8.1 made changes to the firewall.

After posting this to the Hamachi forum, only 1 person replied telling me to scrap Hamachi and setup a VPN connection.... Read more

Read other answers
RELEVANCY SCORE 49.2

Hello all, my request is this:
When I play games, for example let's say, Warcraft3/Diablo 2, and when I try to create games, people cannot join them. However, when I try to join other people's games, it works fine and I'm able to connect. Yesterday my friend came over my house with his laptop, and we were going to play come WC3, but before doing that he had to find an internet connection to use.
I have a DLink-524 wireless router that I use primarily to go online on my PSP. My friend tried to search for my internet connection and found it, but when he tried to use it, it said the connection failed, when it works 100% fine for my and his PSP. Can someone please help me make it so that people can connect to my server when i host games/servers?

Now, I called D-Link just now, and they told me I have to call Microsoft(what does Microsoft have to do with this?) to see which ports I need to open so that my internet connection or something can be shared, and other people can connect to me. I called Microsoft and they were of no help. I'm wondering, what do I do from here? I tried setting my internet connection from PPPoE to Dynamic/Static but something didnt work out right or maybe I didn't do something right. I'm in need of some serious help here. Thanks a lot for reading my issue.
 

A:Internet Servers hosting issue

Read other 11 answers
RELEVANCY SCORE 49.2

Hi, guys, i have a website, it is currently hosted on <g class="gr_ gr_40 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="40" id="40"><g class="gr_ gr_80 gr-alert
gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" data-gr-id="80" id="80">linux</g></g> server, and <g class="gr_ gr_66 gr-alert gr_tiny gr_spell gr_inline_cards gr_run_anim
ContextualSpelling multiReplace" data-gr-id="66" id="66">i</g> am facing some speed issue on it. I want to switch on <g class="gr_ gr_180 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace
replaceWithoutSep" data-gr-id="180" id="180">windows</g> server, is it will be helpful for me or <g class="gr_ gr_182 gr-alert gr_tiny gr_spell gr_inline_cards gr_run_anim ContextualSpelling multiReplace" data-gr-id="182"
id="182">i</g> have to continue with windows server. Visit my site for analysis. http://image40.com/  

Read other answers
RELEVANCY SCORE 48.8

I used to be able to host my team fortress 2 dedicated server on windows vista, when i changed to 7 I couldnt host any servers, i get "STEAM validation rejected" no matter what. I used steam appid's ect so put that out of your head and because i cant host with warcraft 3 even though I forwarded PERFECTLY. theres got to be one reason this is happeneing based on windows 7. I even reformatted my drive and it still doesnt work. I used to have great servers up and now it's impossible to host for any game that I have, I may call cisco tomarrow but I am on the verge of getting XP for a dual boot setup but I really would rather save my $ and keep everything organized on windows 7. Help or trials with me IS APPRECIATED, last thing, I called blizzard and they could not figure out why i couldnt host on warcraft 3. I use 64 bit windows 7. Actually I really really really really think it has something to do with when I reformatted all of the google searches I made before I reformatted are shown purple as if I clicked them when I JUST reformatted. Shouldnt information like that go away when you reformat a PC? also sometimes my internet explorer glitches when I scroll down as if it is too slow to display it yet and makes a huge ugly smeared text looking streak on the page. I really do think it is all related. This issue with the server thing ALSO applies to terreria which is impossible to host without hamachi being used.
 

Read other answers
RELEVANCY SCORE 48.8

http://portforward.com/english/routers/port_forwarding/Westell/Versalink327W/Warcraft_III.htm

I did all of this, and fixed my Windows Firewall, can someone step me through what to do, I am still unable to host games!
 

A:Warcraft 3 Hosting Issue (Firewall, Port)

do you have a firewall aswell as a router ?if so. i think you need to forward that aswell
*edit* oops i never read through properly

erm then i guess i dont no
 

Read other 1 answers
RELEVANCY SCORE 48.4

Hi, all.

My pc keeps popping up 'windows script hosting' window and 'My documents' window on every startup after logging in. Well, it's not really irritating, but i prefer not to have them, if possible. My pc started behaving like this after i installed Avast!home edition, which is not the cause, i guess, as that wasn't the first time for me to install Avast antivirus--i already installed that av in many other computers before.

I've tried finding such entries in 'startup' and also in 'msconfig', but i can't any of them.

Could anyone help me the problem that i am having with the pop-up thing?
Any troubleshooting/suggestion is very much welcomed.


Regards,
F I F I.

P.S. Here is the HijackThis Logfile in case it's needed.


Logfile of Trend Micro HijackThis v2.0.2
Scan saved at 1:41:14 PM, on 11/28/2007
Platform: Windows XP SP2 (WinNT 5.01.2600)
MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180)
Boot mode: Normal

Running processes:
C:\WINDOWS\System32\smss.exe
C:\WINDOWS\system32\csrss.exe
C:\WINDOWS\system32\winlogon.exe
C:\WINDOWS\system32\services.exe
C:\WINDOWS\system32\lsass.exe
C:\WINDOWS\system32\svchost.exe
C:\WINDOWS\system32\svchost.exe
C:\WINDOWS\System32\svchost.exe
C:\WINDOWS\system32\svchost.exe
C:\WINDOWS\system32\svchost.exe
C:\Program Files\Alwil Software\Avast4\aswUpdSv.exe
C:\Program Files\Alwil Software\Avast4\ashServ.exe
C:\WINDOWS\system32\spoolsv.exe
C:\Program Files\Lavasoft\Ad-Aware 2007\aawservice.exe
C:\WINDOW... Read more

A:windows script hosting keeps popping up! [Moved From General Security}

Hi FIFI -

HijackThis logs are only to be posted in this forum. I've moved your thread.

I can see what's likely causing that, but the question remains ... "Why is it there?" For that, more info is required.

First....

Open HijackThis and click on 'Do a System Scan Only'. Check the following entries if they exist (make sure you do not miss any) and click Fix Checked

F2 - REG:system.ini: UserInit=C:\WINDOWS\system32\userinit.exe,C:\WINDOWS\system32\wscript.exe,userinit.exe

Close HijackThis now.

---------------------------------------------------------------------------------------------

Please do this:

Download Deckard's System Scanner (DSS) to your Desktop. Note: You must be logged onto an account with administrator privileges.Close all applications and windows.
Double-click on dss.exe to run it, and follow the prompts.
When the scan is complete, two text files will open - main.txt <- this one will be maximized and extra.txt <-this one will be minimized
Copy (Ctrl+A then Ctrl+C) and paste (Ctrl+V) the contents of main.txt here.
Please attach extra.txt to your post.
To attach a file to a new post, simplyClick the[Manage Attachments] button under Additional Options > Attach Files on the post composition page, and
copy and paste the following into the "Upload File from your Computer" box:C:\Deckard\System Scanner\extra.txt

Click Upload.

What DSS will do: create a new System Restore point in Windo... Read more

Read other 13 answers
RELEVANCY SCORE 48

Dears, we are facing issue while configuring IIS setup for weblogic servers. Following are the environment details: IIS8.5 on windows 2012 R2 standard 64x, wls_plugin_12.2.1.2.0 for weblogic server. We have done the following steps :- 1. Created a new
web site on IIS. 2. Enabling the authentication settings. 3. Enabling the Directory browsing. 4. Added the script mapping in Handler mapping and set the path of iisproxy.dll as executor. 5. ISAPI filter setting for the iisproxy.dll Issue Description : We are
able to view the directory structure while accessing the IP and Port, but the request is not redirecting to the weblogic ip and port what we have configured in iisproxy.ini. Is there any web.config or handler settings required to process the request.

Read other answers
RELEVANCY SCORE 48

Hi,

I have hosted express nodejs website in IIS8 on wondows 8. But i am getting issue,

app.js script content:
var express = require('express');
var expApp = express();
var ipaddress = process.env.OPENSHIFT_NODEJS_IP || "127.0.0.1";
var port = process.env.OPENSHIFT_NODEJS_PORT || 5100;
var http = require('http');

http.createServer(expApp).listen(port, ipaddress, function () {
    console.log('Express app started ip:' + ipaddress + ':' + port);
});

expApp.use(function (req, res, next) {
    console.log('Time:', Date.now());
    next();
});

expApp.get('/', function (req, res) {
    res.send('Welcome!');
});

expApp.get('/index', function (req, res) {
    res.send('Welcome!!!!!!');
});



web.config content:
<configuration>
  <system.webServer>
    <defaultDocument enabled="true">
      <files>
        <add value="app.js" />
      </files>
    </defaultDocument>
    <handlers>
      <clear />
      <add name="iisnode" path="app.js" verb="*" modules="iisnode"/>
    </handlers>
    <security>
      <requestFiltering>
        <hiddenSegments>
   ... Read more

Read other answers
RELEVANCY SCORE 48

If I download a document from the internet IE9 does a security scan.

Which programme is used for this scan.

Any other details welcome.

A

A:IE9 and security scanning

Hi welcome to the forum.
I'm afraid I personnaly cannot answer your question.
It indeed is a popular question today, as it is the subject question of numerous forums.
I would think that at the moment no answer has been accepted, but I could be wrong.

Read other 2 answers
RELEVANCY SCORE 48

Admins please feel free to censor, move or remove if necessary.  
 
I feel this needs to be broght to the attention of our malware alert community.  Today I discovered that my windows deluxe hosting account with Godaddy was hacked on 11-17-14.  The hack was basically a  full access to my directories including all my sub folder directories that are alias to my other sites I host.  Every directory and subdirectory that contained HTM or HTML files was modified with a footer hyperlink Data.  What makes this even more interesting is that I am not alone.  Doing some of my own Legwork being a former Network Admin I realized by keyword google search that there are numerous perhaps hundreds if not more domain names that reside on Godaddy Servers that are also hacked with the exact same circumstance that I am in.  So I would assume that there is a common issue and quite possibly a breach on godaddy's side.  I have yet to see if there are common setups such as wordpress, joomla or other scripts that have the potential to be a way for an attack like this to happen.  However I removed all of my joomla based hosting due other unrelated issues and moved them to my linux hosting servers.  All I have left on my windows hosting is some old custom asp scripting and some custom PHP scripts that I wrote.  Its possible that these could be a path of compromise but I have a hunch that this hack was done from another direction.  He... Read more

A:Possible Breach on Godaddy Hosting Serves (Windows Shared Hosting Accounts)

I did call tech support.  They are looking into this.  THey feel that this was most likly a FTP hack.  It certainlty possible.  But what concerns me is that if this was a FTP hack then wouldnt other hosting sites be affected?  So far all the sites with this inflated HTML hyperlink data are all coming up as Godaddy Hosting IPS's  Even more interesting is that they are all so far the IIS7 Servers (by using mydnstools).
 
So FTP hacking????  Perhaps...... but am I the only one to think that this is a possible breach?  

Read other 23 answers
RELEVANCY SCORE 47.6

Can you use the computer while Microsoft Security is scanning your computer? My last scan took an hour and I wanted to search the internet.

A:Microsoft Security Scanning

  
Quote: Originally Posted by hlouise


Can you use the computer while Microsoft Security is scanning your computer? My last scan took an hour and I wanted to search the internet.


Sure you can - might be slower but it will still work ...

Read other 3 answers
RELEVANCY SCORE 47.2

hi,

i have the same issue, no firewall, full controll at the sharing folder, still not working....any idea?
 

A:scanning issue

Even though it appears you're having the same problem, please start a new thread when you have a new issue. It's very difficult to keep two problems straight and who's working on what in a single thread.

I've created a new thread for your issue here.

Note: You will need to post complete details of your configuration and your specific issue in this new thread for us to help you.

Thanks for your cooperation.
 

Read other 1 answers
RELEVANCY SCORE 47.2

I am running Windows 10 an using MS Office 2010 to scan and store my photos of cards to sell on eBay. Lately my screen freezes up when I try to "save as". I see a little message stating "MS Office 2010 not responding" as if I didn't know it. LOL Can you suggest any help for me?
 

A:Scanning Issue

If you are scanning with a scanner then it would be better to scan to PDF then to Office 2010. Office 2010 as you know is getting on a bit so might not be very compatible with Windows 10.
 

Read other 1 answers
RELEVANCY SCORE 47.2

I face problem while scanning from Scanner of Officejet 6213

A:scanning issue

  
Quote: Originally Posted by mosmana


I face problem while scanning from Scanner of Officejet 6213


There's a patch to fix...:

Correctif de logiciel d'impression HP lors de la mise ? niveau vers Windows 7 Imprimante/fax/scanner/copieur tout-en-un HP Officejet 6213 - Assistance Technique HP (France - Fran?ais)

it is call "dot4patch_reboot.exe" and is 1.22Mb

Before make sure the proper software that came with is well installed.

Read other 1 answers
RELEVANCY SCORE 47.2
RELEVANCY SCORE 47.2

I have Windows 7 Pro, 64 bits, on a 64 bit computer. Even though MS has advised that they will no longer provide general updates for Windows 7, they also advised that they will continue providing security updates to or through 2020. However the searching for updates scan never completes. My last updates are dated in May of 2016. I have even tried using the cumulative update dated, in July 2016, identified as Windoew6.1-KB3172605-x64.msu. But the "results" are the same, i.e. the scanning for updates never completes. Why wdoes the scanning for updates never complete? Is it possible that there is some problem that I am not aware of with Windows 7 security updates scanning? Is it possible that there are no more security updates for Windows 7?

Read other answers
RELEVANCY SCORE 46.4

I use a Lexmark X6170 for scanning. If I use tif as the setting for the fileformat there is always ONLY 1 page scanned instead of multiple pages that are ready to be scanned via the document feeder.
Any suggestion how to resolve this?
Thomas

A:Vista Scanning Issue

Maybe you can scan it as another format, then find a program online to convert it to a tif file?

Read other 1 answers
RELEVANCY SCORE 46.4

Due to my XPS 15 running extremely slow I was advised to run Scanning and Repair during boot up. The problem now is that the scanning and repair drive has reach 59% after an hour and is not moving any further forward.
Can anyone advise what I do next?

A:XPS 15 Scanning and Repair Issue

Run an extended diagnostic on the (hard/solid state) drive.  F12 at powerup.

Read other 1 answers
RELEVANCY SCORE 46.4

I'm having a problem with wireless scanning, which I think may be a wireless networking issue.

For about 18 months, I've been using Quicken with two HP Photosmart all-in-ones - a 6180 and a 7280 - in Windows 7. (Quicken allows you to scan documents and attach them to individual transactions.) I recently had to replace the older of the two, the 6180. I tried four devices - an Epson, a Canon and and two HP's - and found that none of them worked with Quicken wirelessly. With other software - PaperPort, MS Office Scanning - I had mixed results.

As they all had their problems, I decided to keep the device I liked best, the Canon Pixma MX882. One of the reasons is that it has a duplexing ADF; also, I found their tech support to be slightly more responsive than Epson's, and HUGELY more so than HP's (which should come as no surprise). In fact, one of Canon's senior tech people spent an hour and a half with me, but he couldn't get it to work.

Here's where I am now - I can only use Quicken with the device through a wired connection, and then only with the WIA driver. I can use the Canon driver (which allows me to use the duplexer) with PaperPort and MS Office, but, again, only wired.

The Canon tech felt it was most likely a Windows 7 security or permissions issue, but couldn't suggest how to get around it. The odd thing is that the older HP's have worked fine (the 7280 continues to do so). I remember when wireless scanning first... Read more

A:Wireless scanning issue

Read other 8 answers
RELEVANCY SCORE 46.4

I hope this is the place to post this question. The digital photography/imaging was a possibility but was not sure.

I am running Windows XP - Home. I received an HP Scanner/Printer for Christmas and yesterday I scanned in some medical reports for my mother. I then e-mailed them to her for her records.

The problem comes in when I view them on my computer the resolution is horrible. It looks very blurry. When I printed a copy out from her computer - it came out of the printer real fuzzy and not crystal clear like the original report from the doctor.

How do I rectify this problem?
 

A:Scanning and resolution issue

Read other 6 answers
RELEVANCY SCORE 46.4

I am in a windows 7 pro enviornment with security essentials, microsoft outlook 2010 web app (from within Internet Explorer 10)

When attempting to open an attachment it just says "scanning" and everything hangs. I think it is actually Microsoft Security Essentials that is hanging, but I did not see an appropriate forum for that. 

The problem goes away if I turn the computer off, and then update security essentials. And this is not just a restart. It needs to be manually turned off because the hung system does not respond to restart. 

Security essentials is being kept current, sometimes the files can be updated the night before, but if there is a newer version available the next morning it will hang the system.

Help, this is causing major problems! Has anyone else had this problem? It seems to have started after Microsoft updates about 1 week ago.



Thank you for any help you can give!

Read other answers
RELEVANCY SCORE 46.4

Hi. So I'm having a problem with MSE. It's always stopping at the same file and won't scan any further. I don't know if that's a sign that my computer is infected. It was lagging when I was using multiple programs yesterday (Microsoft Word documents were freezing up, MSE was not responding either).
 
Here's a picture of the scan and the file it stops at: http://i.imgur.com/DVelQlH.png

Read other answers
RELEVANCY SCORE 46.4

Curious to know if AV/Malware scanning for both primary partitions can be fully performed when the scanning software is installed onto just one or is it 100% thorough only for the active partition? Would like to keep one bootable active partition as lean as possible...if possible.

A:Security scanning - Multi-OS / Dual-boot?

If you want to AV scan from one OS it will scan as much as you tell it to. So if you have it installed on one OS, and tell it to scan all the drives, it will.

Be careful with dual boots though, i think some Linux distros can flag as Viruses.

Read other 3 answers
RELEVANCY SCORE 46

Windows 8.1 Toshiba Satellite.  Running Firefox v.42.0.  About a week ago, I started getting this pop-up randomly (not the same websites) about once a day now.  I get a pop-up indicating there Firefox has detected that I need a patch and is scanning my computer.  I closed the browser each time as soon as the scanning started. 
 
The first time it happened, I ran MalwareBytes and it came up with PUP.Optional.InstallCore which it cleaned.  Ran Webroot scan and nothing came up.  Pop-ups have been coming back every night now with MalwareBytes and Webroot showing no evidence of anything else.  Interestingly, the behavior is such that I get the webpage I want, but FireFox is then taken over by something which replaces the page without opening up another tab.  I'm guessing I have something I don't want hidden away.
 
Apparently not alone as this Mozilla support page would suggest - https://support.mozilla.org/en-US/questions/1092584
 
Thanks in advance,
AJG

A:Bogus Firefox Security Warning - Scanning computer

Hello,
 
Please download Rkill to your Desktop.
There are 2 different versions. If one of them won't run then download and try to run the other one.
You only need to get one of these to run, not all of them. You may get warnings from your antivirus about this tool, ignore them or shutdown your antivirus.rKill.exe: http://www.bleepingcomputer.com/download/rkill/dl/10/iExplore.exe (renamed rKill.exe): http://www.bleepingcomputer.com/download/rkill/dl/11/
 
§  Double-click on the Rkill desktop icon to run the tool.
§  If using Windows Vista, 7, 8 or 10 right-click on it and choose Run As Administrator.
§  A black DOS box will briefly flash and then disappear. This is normal and indicates the tool ran successfully.
§  If not, delete the file, then download and use the one provided in Link 2.
§  Do not reboot until instructed.
§  If the tool does not run from any of the links provided, please let me know.
If normal mode still doesn't work, run the tool from Safe Mode.
When the scan is done Notepad will open with rKill log.
Post it in your next reply.
NOTE. rKill.txt log will also be present on your desktop.
---------
 
Please download AdwCleaner by Xplode onto your desktop.
§  Close all open programs and internet browsers.
§  Double click on adwcleaner.exe to run the tool.
§ ... Read more

Read other 36 answers
RELEVANCY SCORE 46

I am concerned that Microsoft Security Essentials [MSE] is not performing as it should, because it doesn't appear to be activating and running a scan as scheduled under Settings.

If I open MSE and choose to click on the Scan Now button to carry out a Manual Scan on demand, then three events are clearly visible in 'real time' -

There is activity on the progress bar of the window that opens, and files being scanned are clearly seen.The MSE Icon in the Notification Tray shows rotational movement indicating that a scan is in progress. and,At the end, a summarised report window opens. Example here -
.......this shows how many items were scanned, and reports on the 'threats' status.

I have tried to verify my claim above, by carrying out a number of 'tests', primarily to try and determine if User scheduled scan settings, are actually initiating the automatic update and scan by MSE.

The scheduled 'test' scan times have come and gone, without any visual evidence to show that MSE has automatically activated and conducted the scan, as set by User settings. None of the following show any evidence of a scan either starting, being 'in progress', or ever being carried out;
The MSE Icon does not activate.There is no post-scan report [as shown above from the manual scan]. and,A check of Windows Update, shows that no further Updated Definitions for MSE, have been added to Update History.
I am beginning to suspect that because I use Firefox as my default browser, somehow this may disa... Read more

A:Microsoft Security Essentials - Is it really scanning to your sheduled settings?

I don't actually watch it do it's scan but have it set to do a quick scan every Sunday at 13.00. I set it for that time as I'm not using the computer then so it can just get on with it and I don't take much notice apart from seeing that it gives the following Sunday's date for the next one.

I will say though that some updates to the defs make the icon change colour and when you bring the program up it tells you that you haven't scanned for a while and you may be in danger, I just click the scan now button, in fact I had to do that this morning.

I also have the paid version of MalwareBytes running in real time and SpywareBlaster so I'm not too worried.

Read other 21 answers
RELEVANCY SCORE 46

An error occurred while scanning for security updates. (0x80004003)








bc

Read other answers
RELEVANCY SCORE 46

Hi All,

I have a question about a recent Nmap scan I tried doing. The network I am trying to scan is 10.1.30.128 .. (25 bit mask?)
I invoke a nmap using using nmap -sL 10.1.30.128/25. It goes through hosts 128-255 but doesn't detect any as being 'up' or reverse their hostname. I do this all time with other subnets. Does anyone know if I am scanning the network wrong? I can ping a random host on this subnet just fine.. Any ideas??

Thanks

*PLEASE NOTE*
This is a legitimate network scan, I am allowed to scan this network.
 

A:Nmap Issue Scanning /25 Subnet

B u m p
 

Read other 1 answers
RELEVANCY SCORE 46

I've used Avast! for at least 2 years. Beginning 2 weeks ago, I started getting the message "Some files could not be scanned" at the end of a scan. Looking at the log revealed that all the unscanned files are in the system restore folder (C:\System VolumeInformation\_restore\. . .). The error message on each file is "Error: Archive is password protected (42056)". It repeats for EVERY file in the folder, including .png, .js and .gif files as well as the actual RP files.

I tried turning system restore off, which zaps all the restore points, rebooting, then creating a new, single restore point and running a Quick Scan. Did not solve the problem; every file in the folder is still "off limits" to Avast! EXCEPT when I do a boot-time scan (which runs before Windows loads).

Posted the problem on Avast's forum, but got no explanation. I realize it does not mean anything is infected, and it's not critical that Avast be able to scan the RPs, but the fact that it started doing this on 11/14 and now does it for every scan signals that something in the OS or in Avast has changed. Or might this have something to do with the fact that I have SpywareBlaster, a program that "immunizes" some registry items so spyware can't alter them (most HOST files)? Could the last update for that program have contained a change where it now immunizes the RPs?

Anybody have a clue as to what has happened here?
 

A:Solved: Avast scanning issue

Read other 16 answers
RELEVANCY SCORE 46

Hi,

The scanner has worked correctly before, but is not now.

When I place a single page on the glass on the scanner and push scan, the document is scanned twice and the image appears as 2 seperate docs. Why is it doing this? I want it to remain 1 page like the original. Any ideas?
 

A:Canon Multipass 360 - scanning issue

Have you tryed uninstalling and reinstalling? this may help
 

Read other 1 answers
RELEVANCY SCORE 45.6

My computer has been experiencing fairly random crashes with out any BSODs, so i tried running microsoft security essentials full scan. Within 10 minutes or so the computer crashed, with a BSOD. I will upload it and hopefully one of you can help. Thank you,
Brennan

This is the minidump file; I also have it attached

https://skydrive.live.com/redir?resi...Bu_5XfG3cc5PGs

WhoCrashed said it had something to do with the system cache and I dont know what that means. This is a fairly new build, here are the system specs:
-----------------
ASRock z68 Pro3 MOBO
Intel core-i5 2500 CPU (not the unlocked model) with stock heatsink
8 gigabytes of HyperX RAM DDR3 PC3 1333
Seagate barracuda 500 gigabyte HDD

Diablotek DA series 600 watt PSU
AMD radeon HD 7770 by SAPPHIRE

AOC 21 inch monitor
WNDA3100 USB wireless internet dongle
-----------------

A:BSOD while scanning microsoft security essentials in safe mode

Hi again,

Did you have any BSOD-s after your last post in your other thread?






Quote:
STOP 0x00000034: CACHE_MANAGER
Usual causes: Insufficient physical memory, Indexing, Device driver


See if disabling index helps: Index - Enable or Disable - Vista Forums

Upload a screenshot of your hard disk using crystal disk info:CrystalDiskInfo - Software - Crystal Dew World
Screenshots and Files - Upload and Post in Seven Forums
Run Disk Check on your hard disk for file system errors and bad sectors on it:Disk Check
Test your hard drive: Hard Drive Diagnostic Procedure

Take memtest this way: Run for 8 passes and test each stick in a know good slot for an additional 6 passes.
RAM - Test with Memtest86+






Quote:
The goal is to test all the RAM sticks and all the motherboard slots.

Check your motherboard manual to ensure the RAM sticks are in the recommended motherboard slots. Some motherboards have very specific slots required for the number of RAM sticks installed.

If you get errors, stop the test and continue with the next step.

1. Remove all but one stick of RAM from your computer (this will be RAM stick #1), and run Memtest86 again, for 7 passes.
Be sure to note the RAM stick, use a piece of tape with a number, and note the motherboard slot.
If this stick passes the test then go to step #3.

2. If RAM stick #1 has errors, repeat the test with RAM stick #2 in the same motherboard slot.
If RAM stick #2 passe... Read more

Read other 9 answers
RELEVANCY SCORE 45.6

We have a Canon imageRunner 1025N multifunction printer/copier/scanner in our office. Up until today, it was directly connected to one of our office computers through a USB cable. Now it's been networked. One of the functions of this printer is that it could scan in documents to the computer. But now that it's networked, the scanner feature seems to no longer be an option. As far as I could tell with the manual, the scanner will not work if it's networked. My question is that if this is true, can a printer be connected to a networked AND connected to a computer through the USB cable at the same time (without any functionality issues) so that we can scan our documents again? Any help would be much appreciated, thank you. (And if there is no one with an answer, any help directing me to where I could find an answer would be appreciated as well since I cannot find how to get help through Canon's website.)
 

A:Canon imageRunner 1025N Scanning Issue

You may just need to reinstall the Canon software from the CD and configure the scanner as being Network connect rather then USB. Also the brochure suggests the unit support Scan to Email and Scan to FTP, you can configure that if its network connected, that's generally how most Xerox units are setup at the sites I visit. The Canon website seems to very lacking, you may have better manuals on the installation CD.

But there should be no reason it can't be connected both ways, however the scan to email or a network drive would be better.
 

Read other 1 answers
RELEVANCY SCORE 45.6

Hi

i Have a problem with cx11nf.let me explain to you.

I have a multifunction printer cx11nf (printer, scanner, copier, fax) when i installed this printer on my computer was working good. but recently in december 2009, the multifunction had a problem (i don't know what happened) but the problem is that when i try to scan from my computer the status bar of the scanning software do not move and the page on the printer pass through ADF very fast and the image never load the status bar of the scan software never move, in addition below the status bar says it will take 1 hour to load the image. this multifunction use tcp/ip protocol, i used the scan thought network.

i'm running windows vista home premiun.

Can anybody help me with this problem.
 

A:Epson CX11NF Multifunction (scanning issue)

The Epson Multifunction may need to be serviced/repaired
 

Read other 1 answers
RELEVANCY SCORE 45.6

Hi, folks.

Installed the Epson WF 4740 All-in-on printer last week, added to my home wireless network and it is working fine for printing from all three laptops on the network. Copying and scanning at the printer are working as well. Also scans successfully to a USB key inserted at the printer.

Problem: Menu has option to send scan to a PC on the network. Says Document Capture Pro software must be installed to do this, which it is. But when I try to do this, menu shows "Cannot find computer". The menu has another dropdown to select a job, once the computer has been selected, and on my PC I have a couple saved jobs (scanner settings), but the printer won't detect them. I suspect if it would find my computer on the network, I could select one of my saved jobs, and the scan would end up on my computer.

I can, however, trigger a scan using the Document Capture Pro software on the laptop, and it works fine, including the scan winding up on my PC. However, if my PC is in another room, I have to go to the printer to insert the original, then go back to the PC, start the scan, than go back to the printer to grab the original.

Called Epson tech support, went through the usual steps the "tech" was reading off a script. Finally put me on hold, talked to "senior tech", said I need to make sure port 2968 is open on my wireless router, as this port is used by the printer.

We have Verizon FIOS with a Quantum Gateway wireless router; I can access th... Read more

Read other answers
RELEVANCY SCORE 44

I had a Brother laser MFC for many years and needed to replace it so I purchased the current version (MFC-7860DW). While loading the s/w CD, an error popped up that prevents the loading of the Paperport scanning s/w. I have uploaded a screen print of the error message. In case you can not clearly read the attached, the following is the error code: Error 1935. An error occurred during the installation of the assembly. Microsoft VC80.CRT.Type="win32".version"8.0.50727.4053".publicKeyToken="1fc8b3b9e1e8e3b".processorArchitecture+amd64".

My machine is a Vista 64 bit operating system. Thank you for your help.

A:Microsoft Visual C++2005 Redristibutable x64 issue when installing scanning software

Hi do you Visual C ++ 2005 installed Download Microsoft Visual C++ 2005 Redistributable Package (x86) from Official Microsoft Download Center do you have the service pack 1 update Download Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package MFC Security Update from Official Microsoft Download Center

Read other 19 answers
RELEVANCY SCORE 43.6

Microsoft Security Essentials has stopped working, will not load, and hangs up internet explorer when scanning downloaded files. Appears to have happened within the last week or so. Two Windows 7 Pro machines affected so far. Have tried removing and reinstalling
MSE and does not resolve. Have tried two week prior system restore point also did not work.

Read other answers
RELEVANCY SCORE 43.6

Computer was infected with the XP Security virus and I was able to follow the instructions on your website to remove it. The computer was working fine and I was able to get online, etc. Then I downloaded Windows Security Essentials, it automatically updated then scanned and found one virus which it removed. After rebooting as the program suggests I am getting the error message that "Windows could not start because the following file is missing or corrupt: system32\drivers\ntfs.sys and I am dead in the water. Computer will not boot in any mode.I have tried several times to use the recovery console but the disk I am using is not the disk that came with this computer - not sure if that matters or not.Any help is appreciated.Had some previous help from Noviciate, but we're stuck Here is a link to what's been tried so far... My link

A:Error Message System32\drivers\ntfs.sys Corrupt or Missing After Scanning with Windows Security Essentials

Well...system manufacturer and model?

If you have XP Pro installed, why do you have a CD with XP Home on it? That CD can only be used to access the XP Recovery Console if the O/S reflected on the disk differs from that installed.

I would try running the chkdsk /r command again, from the Recovery Console...after changing the boot order in the BIOS.

If chkdsk /r completes, that's OK. If there is an error message and the command stops executing...that's not good. The summary message at the end of the chkdsk /r is unimportant.

Louis

Read other 3 answers
RELEVANCY SCORE 43.6

Computer was infected with the XP Security virus and I was able to follow the instructions on your website to remove it. The computer was working fine and I was able to get online, etc. Then I downloaded Windows Security Essentials, it automatically updated then scanned and found one virus which it removed. After rebooting as the program suggests I am getting the error message that "Windows could not start because the following file is missing or corrupt: system32\drivers\ntfs.sys and I am dead in the water. Computer will not boot in any mode.

I have tried several times to use the recovery console but the disk I am using is not the disk that came with this computer - not sure if that matters or not.

Any help is appreciated.

A:Error Message System32\drivers\ntfs.sys Corrupt or Missing After Scanning with Windows Security Essentials

Good evening.

Do you have access to a small flashdrive, of at least 128Mb, that you can wipe clean for a little tool to help diagnose and solve this problem?

Read other 28 answers
RELEVANCY SCORE 42.8

Hi,

If I have a heavily infected OS and I hook it up to a working PC as an external drive and scan it, will the viruses be removed and found as well as if it was scanned directly from the infected OS?

Thanks

A:Scanning an infected OS externally as good as scanning it from it's own OS? [Moved]

As no logs have been posted, I am shifting this topic from the specialized HiJack This forum to the Am I Infected forum.==>PLEASE DO NOT NOW POST LOGS<== unless a log is specifically requested.

Read other 3 answers
RELEVANCY SCORE 42.8

When I first bought my CanoScan 8800F and set about scanning my old slides I was a bit enthusiastic and scanned at the default resolution. The resulting images, when printed, were poor quality. I have now started re-scanning all 124 slides at 4800dpi (or is it ppi?). The trouble is that when I enhance them or change their sizes Photoshop takes ages to complete the operation. Should I scan at 4800 or 2400 then resize the images to 600 before doing any enhancing? Is there some way to scan slides so that they print at an acceptable resolution but do not involve hours of waiting? I also want to burn the scanned images to a DVD.
 

A:Scanning Slides: Slow when scanning high resolution

Read other 6 answers
RELEVANCY SCORE 42.4

Hi my name is Lukasz and I need help, I need a free web-host 1 GB, webhost has to have a cpanel phpmyadmin and mysql and php extension and a ftp. I also need a free host for unrealircd server, I also need a tutorial on how to setup unreal ircd server on a webhost

Read other answers