M
Mario
Hi,
To access a peripheral I need to provide AccessCode and ShareMode. The
values for AccessMode, per MSDN docs, are 0, GENERIC_READ, and
GENERIC_WRITE. For ShareMode, they are FILE_SHARE_READ and
FILE_SHARE_WRITE. If I want to read and write I would need to OR the
values. However, VS2005 does not recognize them as defined values. I
was thinking if I can find the Hex values for them then I can just pass
the hex values in the function call. If someone could tell me what
these values are or where can I find them is appreciated. Thanks.
Cheers,
Mario
To access a peripheral I need to provide AccessCode and ShareMode. The
values for AccessMode, per MSDN docs, are 0, GENERIC_READ, and
GENERIC_WRITE. For ShareMode, they are FILE_SHARE_READ and
FILE_SHARE_WRITE. If I want to read and write I would need to OR the
values. However, VS2005 does not recognize them as defined values. I
was thinking if I can find the Hex values for them then I can just pass
the hex values in the function call. If someone could tell me what
these values are or where can I find them is appreciated. Thanks.
Cheers,
Mario