Created
July 27, 2014 22:16
-
-
Save kumatti1/b482932062f0d5402652 to your computer and use it in GitHub Desktop.
おなじやった(・∀・)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Imports ServiceLibrary | |
'gfxSrvc.dll | |
Module Module1 | |
Sub Main() | |
Dim objChild As New CDisplayConfig.CDeviceInfo | |
Dim objPenent As New CDisplayConfig | |
For i As UShort = 0 To 32 | |
Dim tmp As UInteger = 1 | |
Dim DevID As UInteger = tmp << i | |
Dim DevID2 As UInteger = 0 | |
Dim DevID3 As UInteger = 0 | |
Dim DevID4 As UInteger = 0 | |
objChild.DisplayDev.U32DeviceID = DevID | |
If objChild.DisplayDev.IsDFP() Then | |
If objPenent.GetDisplayDeviceInfo(objChild) Then | |
If objChild.bIsDisplayLinkDevice Then | |
DevID2 = DevID2 Or tmp << i | |
MsgBox(DevID2 & 2) | |
Else | |
If objChild.bIsHDMIDevice Then | |
DevID3 = DevID3 Or tmp << i | |
MsgBox(DevID3 & 3) | |
Else | |
DevID4 = DevID4 Or tmp << i | |
MsgBox(DevID4 & 4) | |
End If | |
End If | |
End If | |
End If | |
Next | |
End Sub | |
End Module |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment