Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.5 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: dvosal.h
  6. * Content:
  7. * This module the DirectPlayVoice O/S abstraction layer.
  8. * Allows the DLL to run with all strings as Unicode, regardless
  9. * of the platform.
  10. *
  11. * History:
  12. * Date By Reason
  13. * ==== == ======
  14. * 10/07/99 rodtoll Created
  15. *
  16. ***************************************************************************/
  17. #ifndef __DVOSAL_H
  18. #define __DVOSAL_H
  19. #include <windows.h>
  20. HRESULT OSAL_Initialize();
  21. HRESULT OSAL_DeInitialize();
  22. BOOL OSAL_IsUnicodePlatform();
  23. BOOL OSAL_CheckIsUnicodePlatform();
  24. HRESULT OSAL_AllocAndConvertToANSI( LPSTR *lpstrAnsiString, LPCWSTR lpwstrUnicodeString );
  25. int OSAL_WideToAnsi(LPSTR lpStr,LPCWSTR lpWStr,int cchStr);
  26. int OSAL_AnsiToWide(LPWSTR lpWStr,LPCSTR lpStr,int cchWStr);
  27. int OSAL_WideToTChar(LPTSTR lpTStr,LPCWSTR lpWStr,int cchTStr);
  28. int OSAL_TCharToWide(LPWSTR lpWStr,LPCTSTR lpTStr,int cchWStr);
  29. /*
  30. void OSAL_CreateEvent( LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState, LPCWSTR lpName );
  31. void OSAL_CreateSemaphore( LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, LONG lInitialCount, LONG lMaximumCount, LPCTSTR lpName );
  32. #define OSAL_ReleaseSemaphore( x, y, z ) ReleaseSemaphore( x, y, z )
  33. #define OSAL_CloseHandle( x ) CloseHandle( x )
  34. #define OSAL_SetEvent( x ) SetEvent( x )
  35. void OSAL_sprintf( LPWSTR lpOut, LPWSTR lpFmt, ... );
  36. void OSAL_strcpy(
  37. void OSAL_lstrcpy( LPWSTR lpString1, LPWSTR lpString2 );
  38. */
  39. #endif