Skip to content

Updated Win32WindowDemo.java#287

Merged
dblock merged 4 commits intojava-native-access:masterfrom
daifei4321:master
Nov 6, 2013
Merged

Updated Win32WindowDemo.java#287
dblock merged 4 commits intojava-native-access:masterfrom
daifei4321:master

Conversation

@daifei4321
Copy link
Copy Markdown
Contributor

That demo does not work on my machine. So I tried to fixed it. Works on my machine now for detecting: add/remove CD, add/remove removeable hard drive.
I changed the parent window to null, because it doesn't work with device change, but I don't know why. I tested: the other function of this demo (onMachineLocked/onMachineUnlocked) can still work after my changing.

Added setting dbcc_size before RegisterDeviceNotification.
Create DEV_BROADCAST_DEVICEINTERFACE only when should.
Added extra info (drive letter, change to media in drive or to physical drive, is network drive) for logic drive add/remove.
Used DBT.DBTF_MEDIA to replace 1.
Used DBT.DBTF_NET to replace 2.
@dblock
Copy link
Copy Markdown
Member

dblock commented Oct 25, 2013

Thanks! Could you please update CHANGELOG?

@daifei4321
Copy link
Copy Markdown
Contributor Author

-) Updated CHANGES.md

dblock added a commit that referenced this pull request Nov 6, 2013
Updated Win32WindowDemo.java
@dblock dblock merged commit 667fdd1 into java-native-access:master Nov 6, 2013
@dblock
Copy link
Copy Markdown
Member

dblock commented Nov 6, 2013

Merged, awesome.

mstyura pushed a commit to mstyura/jna that referenced this pull request Sep 9, 2024
Motivation:

Another day another netty release. Let's update

Modifications:

Update to netty 4.1.65.Final

Result:

Use latest release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants