J
Jason Seeley
Hi, I'm trying to handle the WM_DEVICECHANGE message, and have the
actual message triggering my WndProc and coming on through. The
problem I'm having, however, is determining whether I care about the
drive that has triggered the message. All of that is contained within
the LPARAM pointer (DEV_BROADCAST_HDR *). However, I have no idea how
I'm supposed to take the LParam value and turn it into something I can
use in my managed program.
These are the structures I care about, but when I use m.LParam, I
don't know how to get from there to an object I can use.
struct _DEV_BROADCAST_HEADER { /* */
DWORD dbcd_size;
DWORD dbcd_devicetype;
DWORD dbcd_reserved;
};
struct _DEV_BROADCAST_VOLUME { /* */
DWORD dbcv_size;
DWORD dbcv_devicetype;
DWORD dbcv_reserved;
DWORD dbcv_unitmask;
WORD dbcv_flags;
};
If anyone has any suggestions or pointers, please let me know.
Thanks --
Jason
actual message triggering my WndProc and coming on through. The
problem I'm having, however, is determining whether I care about the
drive that has triggered the message. All of that is contained within
the LPARAM pointer (DEV_BROADCAST_HDR *). However, I have no idea how
I'm supposed to take the LParam value and turn it into something I can
use in my managed program.
These are the structures I care about, but when I use m.LParam, I
don't know how to get from there to an object I can use.
struct _DEV_BROADCAST_HEADER { /* */
DWORD dbcd_size;
DWORD dbcd_devicetype;
DWORD dbcd_reserved;
};
struct _DEV_BROADCAST_VOLUME { /* */
DWORD dbcv_size;
DWORD dbcv_devicetype;
DWORD dbcv_reserved;
DWORD dbcv_unitmask;
WORD dbcv_flags;
};
If anyone has any suggestions or pointers, please let me know.
Thanks --
Jason