Leaked source code of windows server 2003
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.

41 lines
600 B

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. isuni.c
  5. Abstract:
  6. Covering routine for RtlIsUnicode string, since this is declare a BOOL
  7. API and Rtl is BOOLEAN
  8. Author:
  9. Steve Wood (stevewo) 16-Dec-1993
  10. Revision History:
  11. --*/
  12. #include <nt.h>
  13. #include <ntrtl.h>
  14. #include <nturtl.h>
  15. #include <windows.h>
  16. BOOL
  17. WINAPI
  18. IsTextUnicode(
  19. CONST VOID* lpv,
  20. int iSize,
  21. LPINT lpiResult
  22. )
  23. {
  24. if (RtlIsTextUnicode( lpv, iSize, lpiResult )) {
  25. return TRUE;
  26. }
  27. else {
  28. return FALSE;
  29. }
  30. }