'hook' A Physical Drive Connected To The System?

Jun 18, 2010

What I'm looking to do is 'hook' a physical drive connected to the system so I can process data coming through the API before it's written to the disk. I have a sense DeviceIOControl is where I should be, but I can't seem to find any IOCTL code that uses a callback (which is what I expect I should be using to scan/process data on its way through the API).

View 2 Replies


ADVERTISEMENT

WMI To Get Drive Letter Association With Physical Drive Path Misses CDROMs?

Feb 19, 2012

I'm running the following WMI script to get the associations between drive letters and physical drives on the system, but for some reason it omits CDROMs/DVD-ROMs. Can someone tell me how to get those as well?

Code:
ComputerName = "."
Set wmiServices = GetObject _
("winmgmts:{impersonationLevel=Impersonate}!//" & ComputerName)
Set wmiDiskDrives = wmiServices.ExecQuery _
("SELECT DeviceID FROM Win32_DiskDrive")

[Code3]...

View 12 Replies

Finding Physical Drive Number Using Drive Letter?

Jun 16, 2009

I have a program that allows the user to enter a drive letter into a text box. The program then takes the letter and find the physical drive number (i.e. deviceharddisk3..). It then stripes out everything and leaves me with the number 3.

In VB6 I used mDrive.bas from vbAccelerator.com and it worked perfectly. I have been all over the internet and back and cannot find a solution written in VB.NET.

View 14 Replies

Getting Physical Drive Number From Drive Letter?

Jun 17, 2009

I am trying to get the physical drive (device) number from the drive letter. If the user inputs the drive letter C the program will find the associated physical device number. For example if I input C then the result needs to be \Device\HardDrive1\... Some call it NT Device Name; I think. I have the code for VB6 from vbAccelerator, which works perfectly, but it does not work in VB.NET. My question is there a simple way of pulling the drive info that contains the drive letter and the physical device number. I have searched the internet and found nothing for VB.NET. I would post code but I have nothing for .NET.

View 1 Replies

Physical Drive Number From Drive Letter

Jun 16, 2009

I have a program I am converting from VB6 to VB.NET and I am stuck at the very last piece of code. I need to determine what physical device number is associated with the drive letter.

The program takes the drive letter from a text box and goes and finds the device number (i.e. deviceharddrive3...) and strips out everything leaving me with the devicer number; in this case the number 3. I have searched the internet to and fro and found nothing in VB.NET.

My program in VB6 uses a .bas module from vbaccelerator.com called mDrive.bas and works great. I can't figure out how to convert it over to VB.NET.

View 6 Replies

Determine Physical Disk & Partition For A Drive Letter?

Oct 31, 2011

I am new to VB and playing with a program to display disk info attached to my PC. I have used WIN32_DiskDrive & WIN32_LogicalDisk to gather info regarding volumes, disks and partitions.

What I want to find how is how to relate the Device Index and Partition # back to a volume (ie with a drive letter).

View 2 Replies

Read Access To Physical Drive Without Admin Rights?

Feb 20, 2012

I am trying to read some data from the MBR using CreateFile, but I cannot get it to work without admin rights. The code I am using is like this:
hDevice = CreateFile("\.PhysicalDrive0", GENERIC_READ, FILE_SHARE_READ Or FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, 0)
Is it possible to read data from the MBR without admin rights?

View 1 Replies

Hook Registry Changes And Maybe Even File System Changes In VS 2010?

Dec 10, 2011

Is it possible to hook registry changes and maybe even file system changes in VS 2010?

View 1 Replies

System Keyboard Global Hook - Prevent Any Other (local) Interception?

Feb 20, 2010

My final goal is that striking F12 prints the date (through SendKeys) in the application/window having currently the focus (Word, Excel, Outlook, whatever). I have consequently implemented a globak keyboard hook (system-wide), which is running well (source code below).

My concern is that I would like to prevent any other local treatment based on F12. For instance, striking F12 under Microsotft Word prints the date is the open document (which is fine!) but also launches the "Save as..." dialog box, since F12 is a local shortcut/keybinding under Word. (Actually, the date is printed within a field of a the "Save as..." dialog box). I want to avoid this.

In other words, my aim is to improve the "hook" below so that striking F12 does what I want (which is already the case) but nothing more. That is to say, I would like that, except my treatment, the system "forgets" that F12 was striken.

' Option Strict On
Option Explicit On
' inspired by:
' http://jo0ls-dotnet-stuff.blogspot.com/2008/12/vbnet-global-keyboard-hook-to-detect.html

[code]....

View 1 Replies

Variables For System Drive (most Commonly 'C') And System Directory

Jul 15, 2010

What are the variables for The system drive (most commonly "C:") and system directory (Most commonly "C:WINDOWS")

View 4 Replies

Accessing Files Off Of A Drive That Has A Different Path From System To System?

Mar 26, 2011

I'm coding this neat little project that's kind of a hack into the SanDisk U3 Cruzer's ability to have both a CDFS and FAT32 File System. This is helpful because the program is burned to the CDFS (It's basically slip streamed as an .ISO in place of the original U3 .ISO), and the settings files (which I've developed as text files) are placed on the root of the flash drive. The program itself is VERY simple actually, except I'm having a slight issue that's really driving me insane:

The drive path of the Flash Drive won't be the same from computer to computer. I.E... The files are "UAI.txt" and "UInfo.txt". The root of the drive on my comp is "I:", but on my laptop is "F:". So if I program the path from my computer as the absolute path, an exception is thrown when the path changes on another computer. I cannot have this happen. It is probably THE MOST crucial element to this program. How can you save and read info if you can't find the files? =P

So I've gone through so many threads and forums trying to find a batch of code to allow me to make the path relative. I've found the following code (modified, of course). It works PERFECT in Debug, but throws an exception once packaged to the CDFS partition:

[Code]...

View 3 Replies

Get IPAddress Of All The System Connected Through Lan?

Nov 15, 2010

I am working on a client system . How i will get IPAddress of all the system connected through lan.

View 1 Replies

Error On Vb System That Is Connected To MS Access Database?

Nov 7, 2011

I am designing a Point Of Sale system to be used by sales representatives. The sales rep should be able to place an order of a specific product on behalf of the customer. I have defined my relationships between the tables, Product, Order and Customer. When i try to save my orders i get an error that says "you cannot add or change a record becuase a rerlated record is required in table Product"

View 1 Replies

Php - Create A System That Is Connected A Website With The Same Database?

Feb 4, 2012

I have a thesis project. it is composed of a webpage created on php and a system using vb.net 2008. As of now , they are both connected to the same database. I am wondering if it is possible that if i packaged the system and live the website, will still be connected with one database?

View 1 Replies

Created A System Whereby The Database Is Connected To Using The Preset Tools Available?

Jul 2, 2009

I have a connection to an access database, I have used the data sources tool provided because in this particular instance I don't want to do much with it other than display the records (which I can do) and edit them (which I'm haveing some trouble with).I have created a system whereby the database is connected to using the preset tools available like; BindingSource, TableAdapter, BindingNavigator etc.

I also have a button for edit. This doesn't work and I was wondering if anyone could help me with this? I can't really provide any code for this, because I didn't code the connection by hand and the code I have been attempting to use for editting the records in the database doesn't even sort of work.

View 1 Replies

Keyboard Hook Error "System.StackOverflowException Was Unhandled"

Dec 7, 2011

I am having some trouble getting some code to work. Here it is:

[Code]...

View 1 Replies

Change The .BaudRate Property Of A System.IO.Ports.SerialPort While It's Already Connected?

Nov 18, 2010

For whatever odd reason, we have a legacy data recorder device that runs at 9600 baud. Except when it needs to transfer its recorded data to a PC, in which case it switches to 57600 baud.

The old VB6 code worked, although it had its own set of problems of course.

The routine is this: Do several COMMAND/RESPONSE routines to populate a list of available records, listed by timestamp, at 9600 baud. Once a timestamp or several are selected, display a file save dialog. At the moment that dialog is closed, send a command to the device to tell it "hey we're going to warp", sleep for 100ms, then set the baud rate property of the persistent COM1 connection to 57600, before beginning to process XMODEM data and do the progress bar dance.

The problem I'm having is that it doesn't appear that the data received is ever really kosher as far as the byte marshaling is concerned. Which makes me wonder just how well SerialPort is at dynamically changing bauds on the fly. The VB6 version used MSComm.

I've even attempted to just use MSComm through the compatibility layer but "CTL_E is not supported" which makes it sound like it's incapable of doing XMODEM. (?)

View 1 Replies

Changing ToolStripStatusLabel Text To Connected If Connected To A Network

Apr 4, 2011

On my program I am trying to make a ToolStripStatusLabel's text change to "connected" if connected to a network and if not connected to a network change the text to " Not Connected" then I don't know how to display a image if connected to a network or not connected. So if the computer is connected to a network I have a image that I would like to be displayed next to the ToolStripStatusLabel. And if not connected to a network, can the program display a different image? I tried this:

My.Computer.Network.IsAvailable=True(ToolStripStatusLabel2.Text "Connected")
My.Computer.Network.IsAvailable=False(ToolStripStatusLabel2.Text "Not Connected")

View 6 Replies

Find Out If The Connection Of Sockets (TCPClient) Is Connected Or Not Connected

Nov 10, 2009

I am trying to find out if the connection of my sockets (TCPClient) is connected or not connected. I am using the following code:

[Code]...

View 3 Replies

Connect To My Database From Server Without Share System Drive?

Apr 19, 2010

1- I've a database access without password on the Server.I've created forms by vb.net to connect to database through OLedb Connection *like this

PHP
Dim Connec As New OleDbConnection("provider=microsoft.jet.oledb.4.0; data source = \Serverc$xDB.mdb;")

my problem is : I worte : if I want to connect to database from any pc I must save Username and password to control userpasswords2 (soted user name and password from User accounts)that's big problem , so I must save this to all client pc and the client can access Server system Drive there are no security ,this is the fifth day to find a way to connect to my database from server without share system drive.I tried to used it but not working.where can I write server name and path database and server's User-name and password.I've an exe file on server drive like this \Serverc$1.exe

I want some client to run this file with out share the file.If I can to creat a form by vb.net has a Username and password to run this exe without client know the userName and password.I'found map network , but is not ok for me.If I mapped network drive to client, then he can copy files and read some of security data.Is there a way to access this file from server without mapping or sharing folder for public ?

View 4 Replies

How To Access Network Drive Through Usual System.IO Classes

Feb 28, 2010

My software handles multiple operations on files, and I have now finished writing the related functions, using the System.IO classes. I now need to add support for network drives. Using a mapping works very well (although Directory.GetFiles is a bit low, and I don't know why), but I'd now like to be able to deal directly with paths such as \192.168.0.10Shared FolderMyDrive. Is there any way to handle this type of paths other than mounting the drive to an available drive letter, using the newly generated path, and then unmounting?

View 4 Replies

Make A Tool That Will Assign USB Pen Drive A Drive Letter?

Oct 13, 2009

I want to make a tool that will assign a USB pen drive a drive letter, I am using WMI to acknowledge the device being plugged in, I can pull the deviceID, name, etc now I just need to work out how to assign the device to a drive and I just cant figure it out

View 4 Replies

Reading And Writing Files On External Hard Drive, Code To Ensure SQL Or Data Read/write Execution In Case Of Periodic Drive Reconnect?

Dec 18, 2010

The drive is connected via USB and the problem I'm having is that, periodically, while my code is executing, the usb drive seems to disconnect and reconnect. (Nothing to do with the program, but the drive itself).I want to find a way to prevent these temporary drive reconnects from interrupting my code. IE, i want to insure that whatever read or write that is requested is actually executed even in the case of a temporary drive interruption.

View 1 Replies

Determine If A Drive Is Local Or A Network Drive?

Dec 10, 2008

Does anyone know if there is a way to determine if a drive is local or a network drive?

View 1 Replies

How Can Read Data From USB Flash Drive Or Pen Drive

Sep 29, 2011

USB flash drive or pen drive in vb.net...

View 14 Replies

How To Determine PHYSICAL Key

Feb 14, 2011

I want to hook the keyboard and make some actions (in vb.net) when a specific physical key is pressed.I have found online several excellent keyboard hook dlls, but there is a problem: the hook dlls find the keycode of the pressed keys, not what physical key is pressed.So, for example, in a USA keyboard if I press the key on the left of the Right-Shif key I see the e.keycode: 191 (OemQuestion), in a italian keyboard I see the e.keycode 189 (OemMinus).This means that if I put in My.Settings the code "189", an italian user can see that has to press the key I want, an USA user see another key to press to have the same action because on it keyboard the OemMinus key is not on the left of the Right-Shift key.now the question is: how to determine univocally the keyboard keys? What do I have to put in My.Settings that determinate a specific physical key, the same for all the keyboard languages?

View 2 Replies

Get DVD Info From Physical Disk?

Jun 25, 2012

I have seen numerous dvd playing apps that when you insert the dvd into the drive is displays the movie name. Im looking to implement something like this. I want to show a desktop alert showing the movie name when it has been put into the drive so the user can add it to the collection.

I have "googled" around for this and have found nothing on reading DVD info. how to get the dvd info from a drive?

View 4 Replies

Get Physical Memory On A Machine?

Jun 7, 2011

I'm trying to pull the total physical memory on a machine and have it show just like it would inside My Computer Properties.

I know I can use My.Computer.Info.TotalPhysicalMemory which will return it in bytes. This is where I'm getting stuck. I want to be able to divide it and then truncate it to where it would show like My Computer Properties would report it.

View 6 Replies

Read From Physical Disks

Mar 28, 2009

how I can Read data from Hard disk or flash card, etc., and save read data in .bin file.

View 2 Replies

Storing On Physical Memory?

Oct 26, 2009

I've created an app that calculate calories that the user ate that day. They first enter breakfast, then lunch, then dinner, but the totals all open in one page and if they close that page, they lose their totals. How can i get the totals to stay on the physical memory until the user closes the whole app?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved