본문 바로가기
스마트 장치 개발

C#에서 aygshell.dll 사용 방법

by leo21c 2009. 6. 29.
SMALL

C#으로 테스트한 결과 WM5.0, PPC 2003 se 등에서는 정상적으로 DLL을 인식하여

작동하지 않는다. 에뮬레이터가 아닌 WM5.0 PDA로직접 테스트를 해 보았다.

WM6.0 에뮬레이터에서는 정상 작동하는 것을 확인했다.

따라서 aygshell.dll은 WM6.0 이상 PDA나 스마트폰에서는 정상 작동 할 것으로 예상된다.

.NET CE5.0에서도 작동한다고 하는데 관심이 없어서 에뮬레이터로 테스트 해 보지 않았다.

[DllImport("aygshell.dll")]
static extern UInt32 SndOpen(string pszSoundFile, ref IntPtr phSound);

[DllImport("aygshell.dll")]
static extern UInt32 SndPlayAsync(IntPtr hSound, uint dwFlags);

[DllImport("aygshell.dll")]
static extern UInt32 SndClose(IntPtr hSound);

[DllImport("aygshell.dll")]
static extern UInt32 SndStop(int SoundScope, IntPtr hSound);

[DllImport("aygshell.dll")]
static extern UInt32 SndPlaySync(string pszSoundFile, uint dwFlags);

LIST