Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #7229

Re: How setting enumerator in cavo code

From "Uwe Heyer" <uwe.heyer@aristik.de>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: How setting enumerator in cavo code
Date 2014-09-22 15:32 +0000
Message-ID <c8atnmFhfb8U1@mid.individual.net> (permalink)
References <lvmpum$7fr$1@dont-email.me> <c896g6F41apU1@mid.individual.net> <lvo6dm$98n$1@dont-email.me>

Show all headers | View raw


second look (I can't try your code)

you should align api structures to 1

STRUCT  WIN_STORAGE_DEVICE_DESCRIPTOR -> ALIGN 1 <-
MEMBER  Version AS DWORD				
MEMBER Size  AS DWORD
MEMBER DeviceType AS BYTE
MEMBER DeviceTypeModifier AS BYTE
MEMBER  RemovableMedia  AS LOGIC	-> BOOLEAN == BYTE <-
MEMBER CommandQueueing AS LOGIC		-> see above <-
MEMBER VendorIdOffset AS DWORD
MEMBER ProductIdOffset AS DWORD
MEMBER ProductRevisionOffset AS DWORD
MEMBER SerialNumberOffset AS DWORD
MEMBER BusType     				-> enum == VO INT <-
MEMBER RawPropertiesLength AS DWORD	-> set this to 1 <-
MEMBER DIM RawDeviceProperties[1024] AS BYTE  -> [1] AS BYTE <-


sizeof(above struc) should give you 40 
(allign 1 == 37  + struct is bound on multiple of 4 == 40) 


Ahoj
-Uwe







Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How setting enumerator in cavo code <jean_ray67@hotmail.com> - 2014-09-21 11:13 -0400
  Re: How setting enumerator in cavo code "Uwe Heyer" <uwe.heyer@aristik.de> - 2014-09-21 23:49 +0000
    Re: How setting enumerator in cavo code "Uwe Heyer" <uwe.heyer@aristik.de> - 2014-09-22 00:18 +0000
    Re: How setting enumerator in cavo code <jean_ray67@hotmail.com> - 2014-09-21 23:52 -0400
      Re: How setting enumerator in cavo code "Uwe Heyer" <uwe.heyer@aristik.de> - 2014-09-22 15:32 +0000
  Re: How setting enumerator in cavo code Malcolm G <malcolm-news2012delete@delete.jobstream.com> - 2014-09-22 10:19 +0100

csiph-web