M
MuZZy
HI,
I would really appreciate some hwlp with this:
Here is the WinAPI struct used in call to winapi function wavInGetDevCaps:
typedef struct
{
WORD wMid;
WORD wPid;
MMVERSION vDriverVersion;
TCHAR szPname[MAXPNAMELEN];
DWORD dwFormats;
WORD wChannels;
WORD wReserved1;
} WAVEINCAPS
I need to convert it into c# struct:
[StructLayout(LayoutKind.Sequential)] public struct WAVEINCAPS
{
Int16 wMid;
Int16 wPid;
int vDriverVersion;
public char[] szPname;
int dwFormats;
Int16 wChannels;
Int16 wReserved;
}
Well, first i'm not sure i need to use this attribute,
second, i don't know how to set size of szPname in declaration (seems
like it's not the way c# operates with arrays)
Any ideas on thaat?
Thank you in advance,
Andrey
I would really appreciate some hwlp with this:
Here is the WinAPI struct used in call to winapi function wavInGetDevCaps:
typedef struct
{
WORD wMid;
WORD wPid;
MMVERSION vDriverVersion;
TCHAR szPname[MAXPNAMELEN];
DWORD dwFormats;
WORD wChannels;
WORD wReserved1;
} WAVEINCAPS
I need to convert it into c# struct:
[StructLayout(LayoutKind.Sequential)] public struct WAVEINCAPS
{
Int16 wMid;
Int16 wPid;
int vDriverVersion;
public char[] szPname;
int dwFormats;
Int16 wChannels;
Int16 wReserved;
}
Well, first i'm not sure i need to use this attribute,
second, i don't know how to set size of szPname in declaration (seems
like it's not the way c# operates with arrays)
Any ideas on thaat?
Thank you in advance,
Andrey