Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the difference between these two formats?
Message
From
11/10/2006 12:43:42
 
 
To
11/10/2006 12:36:15
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01161229
Message ID:
01161245
Views:
17
Same hear, but I don't get it. The guid I'm using is taken from devguid.h and it should return the same value as the api call. I really don't get it unless there is something wrong with the way I am building the GUID_DEVCLASS_HIDCLASS guid value?


>Both are totaly different. But I don't know why:
>
>
>#DEFINE GUID_Size  16
>CLEAR
>lc_HidGuid = SPACE( GUID_Size )
>ls_HidGuid = SPACE( GUID_Size )
>
>*The GUID_DEVCLASS_HIDCLASS guid below is taken from devguid.h
>*GUID_DEVCLASS_HIDCLASS, 0x745A17A0, 0x74D3, 0x11D0, 0xB6, 0xFE, 0x00, 0xA0, 0xC9, 0x0F, 0x57, 0xDA
>
>#DEFINE GUID_DEVCLASS_HIDCLASS ;
>    CHR(0xA0) + CHR(0x17) + CHR(0x5A) + CHR(0x74) + ;
>    CHR(0xD3) + CHR(0x74) + CHR(0xD0) + CHR(0x11) + ;
>    CHR(0xB6) + CHR(0xFE) + CHR(0x00) + CHR(0xA0) + ;
>    CHR(0xC9) + CHR(0x0F) + CHR(0x57) + CHR(0xDA)
>lc_hidGuid = GUID_DEVCLASS_HIDCLASS             && <--------------Check lc_hidGuid Value here
>
>DECLARE HidD_GetHidGuid IN HID ;
>     STRING @ O_sHidGuid
>HidD_GetHidGuid( @ls_HidGuid )                  && <--------------Check ls_HidGuid Value here
>lsGUIDStr = []
>lcGUIDStr = []
>FOR asd = 1 TO 16
>    lsGUIDStr = lsGUIDStr + [0x]+RIGHT(TRANSFORM(ASC(SUBSTR(ls_HidGuid,asd,1)),[@0]),2)+[  ]
>    lcGUIDStr = lcGUIDStr + [0x]+RIGHT(TRANSFORM(ASC(SUBSTR(lc_hidGuid,asd,1)),[@0]),2)+[  ]
>NEXT
>? lsGUIDStr FONT [COURIER New], 12
>? lcGUIDStr FONT [COURIER New], 12
>
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform