9,868,710 members (35,899 online)
Visit CodeProject.TV
Discuss CodeProject.TV
Sign in
Email
Password
Forgot your password?
Sign in using
home
articles
Chapters and Sections
>
Search
Latest Articles
Latest Tips/Tricks
Top Articles
Beginner Articles
Technical Blogs
Posting/Update Guidelines
Article Help Forum
Article Competition
Submit an article or tip
Post your Blog
quick answers
Ask a Question
View Unanswered Questions
View All Questions...
C# questions
ASP.NET questions
VB.NET questions
C#4.0 questions
C++ questions
discussions
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
Adobe Technologies
C#
Free Tools
Objective-C
Ruby On Rails
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
.NET Framework
Mobile
VS 11 & .NET 4.5
Sharepoint
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
features
Component & Service Catalog
Competitions
News
The Insider Newsletter
Newsletter archive
Surveys
Product Showcase
Research Library
CodeProject Stuff
community
The Insider News
The Lounge
The Weird & The Wonderful
The Soapbox
Press Releases
Who's Who
Most Valuable Professionals
Company Listings
Non-English Language
>
General Indian Topics
General Chinese Topics
help
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
Site Map
Advertise with us
Employment Opportunities
About Us
The default search term operator is
AND
.
You can use brackets,
AND
,
OR
, and
NOT
to improve your search. For example:
C# AND NOT(VB or SQL)
A query of a single
*
will return everything, filtered by any filters.
Filter examples:
Search by Author
author:"author name"
Filter by tag
tag:C#
or
tag:(C++ or Java)
Wildcard search
use "?" or "*" eg.
gr?d
or
gr*
44 Results
Search
Everything
Articles
Technical Blogs
Tips & Tricks
Questions
Answers
Forum Messages
News Items
Catalog Items
Videos
Training Courses
Just My Stuff
My Bookmarks
Sort by
Relevance
Rating Asc
Rating Desc
Title Asc
Title Desc
Author Asc
Author Desc
Date Created Asc
Date Created Desc
Date Modified Asc
Date Modified Desc
Price Asc
Price Desc
Duration Asc
Duration Desc
Match
All Fields
Title
Description
Author(s)
Tags
Any Date
Last 12 hours
Last 24 hours
Last week
Last 2 weeks
Last month
Last 3 months
Last 6 months
Last year
January
February
March
April
May
June
July
August
September
October
November
December
Rating Range
All - Including Unrated
1.0 - 5.0
2.0 - 5.0
3.0 - 5.0
4.0 - 5.0
4.5 - 5.0
4.8 - 5.0
5.0
Advanced Filters:
Article Topics
All Topics
Desktop Development
Web Development
Mobile Development
Cloud Computing
Enterprise Systems
Database
Multimedia
Languages
Platforms, Frameworks & Libraries
General Programming
Graphics / Design
Development Lifecycle
General Reading
Third Party Products
Mentor Resources
Article License
All Licenses
CPOL
CDDL
Ms-PL
MPL
CPL
Eclipse
MIT
BSD
Apache
CC (ASA 2.5)
Zlib
Public Domain
CC (Attr 3U)
CC (ASA 3U)
LGPL3
GPL3
Forums
All Forums
Feature Forums
General Programming
Web Development
Product Lifecycle
Database & SysAdmin
General Discussions
Non-English Language
Catalog Category
All Categories
Books & Training
Charting & Graphing
Components, Controls, Libraries
Data Manipulation & Mining
Database Tools
Debugging
Documentation & Help
Financial, Math & Scientific
Frameworks & APIs
General Development Tools
GIS & Maps
Graphics & 3D Modeling
Hardware and Robotics
Hosting
IDEs
Imaging
Mobility
Multimedia
Networking
Performance and Profiling
Programming Languages
Project Life-cycle Management (ALM)
Reporting
Search
Security
Setup & Deploy
System Adminstration
Utilities
Virtualization
Web Design/Development
Catalog License
All Licenses
Commercial
Fully Function Evaluation version
Limited Functionality Trial
Limited Time Trial
Shareware
Free For Personal Use
Freeware
Page 1 of 1
Page Size:
10
·
25
·
50
Author filtered by: Jan Dolinay
[x]
Re: Speed tests
by
Jan Dolinay
Forum Message
14 May 2013
Thanks for the link. It's really interesting. The results for digitalWrite seems to match. :) 224 writes per millisecond gives 4.5 microseconds per digitalWrite. With direct port read, the bitRead is
General Discussions
»
Article "Why Is The Digital I/O In Arduino Slow And What Can Be Done About It?"
Why is the digital I/O in Arduino slow and what can be done about it?
by
Jan Dolinay
Article
10 May 2013
license:
CPOL
This article explains why the Arduino digital I/O functions are slow and compares them with faster implementation used in Wiring framework.
General Reading
»
Hardware & System
»
Hardware Programming
C++
C
Architect
Dev
ASM
Design
Intermediate
Advanced
Hardware
General
, +
Re: Windows 7
by
Jan Dolinay
Forum Message
21 Aug 2012
I just tested it on Windows 7 (home premium 64 bit) and it works. I imported the project to Visual C# 2010 Express first, so this could be one reason - maybe it does not work if built with older ver
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Eject from Computer cannot be detected
by
Jan Dolinay
Forum Message
17 Nov 2009
Thanks for sharing your fix! I will probably soon need it in my program.
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Can´t hook more than one device
by
Jan Dolinay
Forum Message
15 Apr 2009
Thanks. Sorry I don't write any line numbers ;) - there would be lot of them and this is not a modification you can do without understanding the code at least quite a bit. If you look into the Driv
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: how to do this from Windows Service
by
Jan Dolinay
Forum Message
15 Apr 2009
Please see the message below from 12 Feb 2008 "How Do I Modify the Code to work in a Service".
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: storage card detection
by
Jan Dolinay
Forum Message
9 Jan 2009
Hello, If after you insert the card you can see the disks in Windows Explorer, then DriveDetector should detect them. It's possible that the disks are not considered "removable" by Windows and Driv
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Licence Conditions
by
Jan Dolinay
Forum Message
9 Jan 2009
Yes, it's The Code Project Open License (CPOL).
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Detecting unmounted volumes (drive letter removed)
by
Jan Dolinay
Forum Message
20 Dec 2008
Hi GM, Thanks. Sorry, but I don't know much USB devices; haven't even heard about Unmounted volumes before. All I can recommend is to look at MSDN into the documentation for WM_DEVICECHANGE:
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Great article
by
Jan Dolinay
Forum Message
29 Sep 2008
Hi and Thanks! I don't know if there is any unique ID of flash drive, but don't think so. Even if there would be, it would probably be possible to change it, same as you can change it for hard dri
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Code license?
by
Jan Dolinay
Forum Message
20 Aug 2008
Yes, feel free to use it in any project in any way.
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Eject from Computer cannot be detected
by
Jan Dolinay
Forum Message
4 Jun 2008
I am glad that the code is useful. Now I see what you mean, there really is the "Eject" command. As for helping I thought I already did by writing that the previous post. ;) The "Eject" or "Uninsta
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Eject from Computer cannot be detected
by
Jan Dolinay
Forum Message
3 Jun 2008
Hi, If the same drive is detected when using the system tray icon but not using the my computer way, the only reason I can think of is that Windows do not send the notification message. Or it sends
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Can't detect USB disk without partition
by
Jan Dolinay
Forum Message
29 May 2008
The code does not detect devices which are not volumes (which do not show up in Windows Explorer as a drive). Please see the earlier post "How to detect USB device removal?" for solution.
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Thanks
by
Jan Dolinay
Forum Message
16 Apr 2008
I am glad it's useful for you. Good luck at ImagineCup!
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: How Do I Modify the Code to work in a Service
by
Jan Dolinay
Forum Message
15 Apr 2008
Sorry, what I wrote above is all I know about this. :) Perhaps someone who already solved this will post his result...
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: This was what I was looking for but...
by
Jan Dolinay
Forum Message
31 Mar 2008
Sorry, I didn't try the code and thought about the DriveType as a flag. You're right. It's either Removable or CDRom.
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: This was what I was looking for but...
by
Jan Dolinay
Forum Message
30 Mar 2008
It should be possible to filter out CD and DVD's using DriveInfo. For example, in the DeviceArrived event handler you could use code like this: private void OnDriveArrived(object sender, DriveDetec
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: How Do I Modify the Code to work in a Service
by
Jan Dolinay
Forum Message
13 Feb 2008
The easiest way would probably be to use the "native" NET framework way of detecting device changes - please see the post here from March 31 2007. It uses WqlEventQuery. I didn't try it myself but it
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Programatically ejecting devices fails
by
Jan Dolinay
Forum Message
25 Jan 2008
Hi, Sure I will be interested in the version with support for multiple devices. You are right about the mDeviceNotifyHandle and other variables being overwritten. There needs to be array instead of
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Programatically ejecting devices fails
by
Jan Dolinay
Forum Message
23 Jan 2008
Hi Yosi, Thanks. I think this problem may occur by combination of 2 factors: 1) DriveDetector is able to monitor only one device. If you register multiple devices (as you write: "calling Regist
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: doesn't work on my computer
by
Jan Dolinay
Forum Message
14 Jan 2008
I seems unlikely to me that some antivirus program would or could prevent windows from sending the message. Please note that the sample program only works with mass storage USB devices - those which a
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: How to detect USB device removal?
by
Jan Dolinay
Forum Message
14 Jan 2008
Please look at the older post "USb device does not detect" below, this may be the same problem.
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Detecting USB Drive Removal in a C# Program
by
Jan Dolinay
Article
8 Nov 2007
license:
CPOL
An article on detecting insertion and removal of removable drives in C#
General Reading
»
Hardware & System
»
Hardware
.NET2.0
VS2005
C#2.0
Windows
Dev
Intermediate
C#
.NET
Visual-Studio
Re: USb device does not detect
by
Jan Dolinay
Forum Message
8 Nov 2007
DriveDetector only detects disks (volumes). If you look into the code in DriveDetector.cs, into the WndProc, you will see the following: ... case DBT_DEVICEARRIVAL: d
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Source out of date
by
Jan Dolinay
Forum Message
8 Nov 2007
Thanks! The source download is really out of date! I don't know how it happened that I posted the old version...I emailed Codeproject the new one so it should appear here soon. Thanks for letting me k
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Can u help me,
by
Jan Dolinay
Forum Message
23 Oct 2007
Look at this article here on codeproject: "Eject USB disks using C#" By Simon Mourier. http://www.codeproject.com/useritems/usbeject.asp This should be what you need. Jan
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: files
by
Jan Dolinay
Forum Message
15 Oct 2007
Hi, Thanks. My writing for pda's ended up at Pocket PC2002 so I don't know if there are any changes for the PPC 2003 and newer but I believe writing to a file on PDA is the same as for PC, for exam
General Discussions
»
Password Manager For Pocket Pc
Re: How can I notify when specific USB device insert/remove action happends on the .NET2005 C# WinForm application (both of Windows XP & Windows 2000)?
by
Jan Dolinay
Forum Message
5 Oct 2007
Sorry, I have no idea about this. Hopefully somebody will post explanation...
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: opened file in the device
by
Jan Dolinay
Forum Message
24 Sep 2007
Hello, Thanks for the tip. I now don't remember if I tried this and for some reason could not make it work or I just didn't think about it. Certainly it would be much better than opening some file
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: A suggestion
by
Jan Dolinay
Forum Message
13 Sep 2007
Thank you for the addition. I agree it is not necessary to know about interrupts to program in C#. It would be good to provide all the background information but then the article would be too long...
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Have you considered having DriveDetector create it's own form?
by
Jan Dolinay
Forum Message
13 Sep 2007
Thanks for this idea, I just never thought about it. It would make sense to use invisible form. If I ever make myself to update the code I will try this.
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Hello..
by
Jan Dolinay
Forum Message
26 Jul 2007
DriveDetector does not support this but you can simply enumerate all drives and decide if there is usb drive. I use this in my program: DriveInfo[] allDrives = DriveInfo.GetDrives();
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: WPF?
by
Jan Dolinay
Forum Message
15 Jul 2007
I don't know anything about WPF so I can only guess here. But looking at the class hierarchy I see Window is inherited from System.Windows.Controls.ContentControl which is inherited from System.Windo
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Thanks - it works perfect!
by
Jan Dolinay
Forum Message
27 May 2007
Hi, Thanks. I'm glad it's useful. Your program looks great!
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Can you help me?
by
Jan Dolinay
Forum Message
11 Apr 2007
Sorry, but I don't know much more about the Windows for mobile phones than that it exists. Try this link: http://www.micros
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Can you help me?
by
Jan Dolinay
Forum Message
29 Mar 2007
This will not be easy I guess. :) I don't think there is any standard interface for communicating with mobile phones - except if the phone runs some version of Windows Mobile (CE) operating system - i
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Integrating into a service...
by
Jan Dolinay
Forum Message
29 Mar 2007
Hi, The problem is that Windows send the WM_DEVICECHANGE message (which DriveDetector uses) only to applications with top-level window. I think one way would be to create a hidden window (form)
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Please help me!
by
Jan Dolinay
Forum Message
26 Mar 2007
Hello, As for cd/dvd it should work too. On my computer it works, so I think you are right it's because the Autorun is turned off on your PC. Try setting breakpoint in the DriveDetector.cs in Wnd
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Work with other USB devices, non-drive?
by
Jan Dolinay
Forum Message
26 Mar 2007
I suppose such change should also generate the WM_DEVICECHANGE message. Try to look into DriveDetector.cs into WndProc(ref Message m) method. My implemetation signals the arrival only if the device
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Requesting to remove a USB flash drive
by
Jan Dolinay
Forum Message
20 Mar 2007
Thanks Uriel! Look at this article: "Eject USB disks using C#" By Simon Mourier. http://www.codeproject.com/useritems/usbeject.asp This should do what you need. Regards, Jan
General Discussions
»
Detecting Usb Drive Removal In A C# Program
Re: Drive letter
by
Jan Dolinay
Forum Message
20 Feb 2006
I think i might have found solution but haven't tried if it works yet. Look at "Fundelete" from www.sysinternals.com. It's free and comes with source code. Look at UndeleteGetFileName function in IRP.
General Discussions
»
Hooking The Native Api And Controlling Process Creation On A System-Wide Basis
Drive letter
by
Jan Dolinay
Forum Message
9 Nov 2005
Hi, Thanks for the great article. Is it possible to obtain the path of the executed file including the drive letter or device name? If i have 2 partitions with the same directory structure, the f
General Discussions
»
Hooking The Native Api And Controlling Process Creation On A System-Wide Basis
Password Manager for Pocket PC
by
Jan Dolinay
Article
31 May 2004
license:
CPOL
An article on a simple password manager for the PDA.
Mobile Development
»
Windows Phone 7/8
»
Windows Mobile
VS.NET2003
C#
Windows
.NETCF
.NET
Mobile
Dev
Intermediate
Visual-Studio
Page 1 of 1
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web03 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid