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.

59 lines
1.6 KiB

  1. /*
  2. * valid.h - Validation functions description.
  3. *
  4. * Taken from URL code by ChrisPi 9-11-95
  5. *
  6. */
  7. #ifndef _VALID_H_
  8. #define _VALID_H_
  9. /* Prototypes
  10. *************/
  11. /* valid.c */
  12. extern BOOL IsValidHWND(HWND);
  13. #ifdef DEBUG
  14. extern BOOL IsValidFileCreationMode(DWORD);
  15. extern BOOL IsValidHANDLE(HANDLE);
  16. extern BOOL IsValidHEVENT(HANDLE);
  17. extern BOOL IsValidHFILE(HANDLE);
  18. extern BOOL IsValidHGLOBAL(HGLOBAL);
  19. extern BOOL IsValidHMENU(HMENU);
  20. extern BOOL IsValidHICON(HICON);
  21. extern BOOL IsValidHINSTANCE(HINSTANCE);
  22. extern BOOL IsValidHKEY(HKEY);
  23. extern BOOL IsValidHMODULE(HMODULE);
  24. extern BOOL IsValidHPROCESS(HANDLE);
  25. extern BOOL IsValidHTEMPLATEFILE(HANDLE);
  26. extern BOOL IsValidIconIndex(HRESULT, LPCTSTR, UINT, int);
  27. extern BOOL IsValidPCFILETIME(PCFILETIME);
  28. extern BOOL IsValidPCPOINT(PCPOINT);
  29. extern BOOL IsValidPCPOINTL(PCPOINTL);
  30. extern BOOL IsValidPCSECURITY_ATTRIBUTES(PCSECURITY_ATTRIBUTES);
  31. extern BOOL IsValidPCWIN32_FIND_DATA(PCWIN32_FIND_DATA);
  32. extern BOOL IsValidPathResult(HRESULT, LPCTSTR, UINT);
  33. extern BOOL IsValidExtension(LPCTSTR);
  34. extern BOOL IsValidRegistryValueType(DWORD);
  35. extern BOOL IsValidShowCmd(int);
  36. extern BOOL IsValidHotkey(WORD);
  37. extern BOOL IsValidPath(LPCTSTR);
  38. #if defined(UNICODE)
  39. extern BOOL IsValidPathA(PCSTR);
  40. #else // defined(UNICODE)
  41. #define IsValidPathA IsValidPath
  42. #endif // defined(UNICODE)
  43. #ifdef _COMPARISONRESULT_DEFINED_
  44. extern BOOL IsValidCOMPARISONRESULT(COMPARISONRESULT);
  45. #endif /* _COMPARISONRESULT_DEFINED_ */
  46. #endif /* DEBUG */
  47. #endif /* _VALID_H_ */