Click here to Skip to main content
16,013,747 members
Home / Discussions / C#
   

C#

 
GeneralRe: Controlling Video Streaming in a Web App Pin
yoaz14-Oct-04 6:58
yoaz14-Oct-04 6:58 
GeneralDynamic property editor - design time Pin
Lech Cieslar13-Oct-04 11:46
Lech Cieslar13-Oct-04 11:46 
GeneralSearching for IO Control Codes Pin
BoxenBiene13-Oct-04 10:53
BoxenBiene13-Oct-04 10:53 
GeneralRe: Searching for IO Control Codes Pin
Dave Kreskowiak14-Oct-04 3:07
mveDave Kreskowiak14-Oct-04 3:07 
GeneralRe: Searching for IO Control Codes Pin
BoxenBiene14-Oct-04 8:04
BoxenBiene14-Oct-04 8:04 
Generalchanging cursor when hover over listview item subitem Pin
vista2713-Oct-04 10:44
vista2713-Oct-04 10:44 
GeneralRe: changing cursor when hover over listview item subitem Pin
MrEyes14-Oct-04 2:13
MrEyes14-Oct-04 2:13 
GeneralTranslating Win32API and their Structs problems Pin
BoxenBiene13-Oct-04 10:42
BoxenBiene13-Oct-04 10:42 
Hi all,

I want to use the Windows API "DeviceIOControl" for reading the TOC of a inserted CDRom.
Therefor I need some structs with wich i have a lot off problems to translate.

Is anybody able to help me?

The API "DeviceIOControl":

BOOL DeviceIoControl(
HANDLE hDevice,
DWORD dwIoControlCode,
LPVOID lpInBuffer,
DWORD nInBufferSize,
LPVOID lpOutBuffer,
DWORD nOutBufferSize,
LPDWORD lpBytesReturned,
LPOVERLAPPED lpOverlapped
);


The following structs are needed:

typedef struct _CDROM_TOC
{
UCHAR Length[2];
UCHAR FirstTrack;
UCHAR LastTrack;
TRACK_DATA TrackData[MAXIMUM_NUMBER_TRACKS];
} CDROM_TOC, *PCDROM_TOC;

typedef struct _TRACK_DATA
{
UCHAR Reserved;
UCHAR Control : 4;
UCHAR Adr : 4;
UCHAR TrackNumber;
UCHAR Reserved1;
UCHAR Address[4];
} TRACK_DATA, *PTRACK_DATA;


typedef struct __RAW_READ_INFO
{
LARGE_INTEGER DiskOffset;
ULONG SectorCount;
TRACK_MODE_TYPE TrackMode;
} RAW_READ_INFO, *PRAW_READ_INFO;

Or has anybody a better thought?

Thanks in advance

BB
GeneralRe: Translating Win32API and their Structs problems Pin
yoaz14-Oct-04 7:10
yoaz14-Oct-04 7:10 
GeneralRe: Translating Win32API and their Structs problems Pin
BoxenBiene14-Oct-04 8:01
BoxenBiene14-Oct-04 8:01 
GeneralRe: Translating Win32API and their Structs problems Pin
yoaz14-Oct-04 8:41
yoaz14-Oct-04 8:41 
GeneralListView Add Data Pin
mfcuser13-Oct-04 10:06
mfcuser13-Oct-04 10:06 
GeneralRe: ListView Add Data Pin
Anonymous13-Oct-04 10:55
Anonymous13-Oct-04 10:55 
GeneralRe: ListView Add Data Pin
mfcuser13-Oct-04 11:28
mfcuser13-Oct-04 11:28 
GeneralRe: ListView Add Data Pin
mfcuser13-Oct-04 11:43
mfcuser13-Oct-04 11:43 
GeneralRe: ListView Add Data Pin
jagan7914-Oct-04 7:01
jagan7914-Oct-04 7:01 
GeneralRe: ListView Add Data Pin
mfcuser14-Oct-04 8:29
mfcuser14-Oct-04 8:29 
GeneralRe: ListView Add Data Pin
mfcuser14-Oct-04 8:32
mfcuser14-Oct-04 8:32 
GeneralRe: ListView Add Data Pin
jagan7914-Oct-04 12:39
jagan7914-Oct-04 12:39 
GeneralFileSharing violation. Pin
pat27088113-Oct-04 9:43
pat27088113-Oct-04 9:43 
GeneralOwner drawn combobox Pin
Roland F13-Oct-04 9:22
Roland F13-Oct-04 9:22 
GeneralGetting thumbnails of webpages Pin
yyylny13-Oct-04 9:09
yyylny13-Oct-04 9:09 
GeneralDirectX control library Pin
Mark Tutt13-Oct-04 8:42
Mark Tutt13-Oct-04 8:42 
GeneralRe: DirectX control library Pin
Steve Maier13-Oct-04 8:55
professionalSteve Maier13-Oct-04 8:55 
GeneralRe: DirectX control library Pin
Nick Parker13-Oct-04 8:55
protectorNick Parker13-Oct-04 8:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.