flipdoubt
flipdoubt

Reputation: 14455

How do I get a specific drive's icon for any version of Windows?

In a .NET WinForms app, how do I get a specific drive's icon (C:\ for example) for whatever version of Windows the client might be running?

Upvotes: 1

Views: 1116

Answers (2)

Chris Becke
Chris Becke

Reputation: 36101

SHGetFileInfo is how the operating system exposes information about objects in the file system. How you go about calling it from a .NET WinForms app? I can't help you there.

Upvotes: 0

Marc Gravell
Marc Gravell

Reputation: 1063774

I don't know if it will work, but you could try this, pointing at the drive root.

Upvotes: 2

Related Questions