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.

66 lines
1.4 KiB

  1. #ifndef __APP_VERIFIER_UTIL_H__
  2. #define __APP_VERIFIER_UTIL_H__
  3. ///////////////////////////////////////////////////////////////////////////
  4. //
  5. // Report an error using a dialog box.
  6. // The message format string is loaded from the resources.
  7. //
  8. void __cdecl
  9. AVErrorResourceFormat(
  10. UINT uIdResourceFormat,
  11. ...
  12. );
  13. ///////////////////////////////////////////////////////////////////////////
  14. //
  15. // Load a string from resources.
  16. // Return TRUE if we successfully loaded and FALSE if not.
  17. //
  18. // N.B. CString::LoadString doesn't work in cmd line mode
  19. //
  20. BOOL
  21. AVLoadString(
  22. ULONG uIdResource,
  23. WCHAR* szBuffer,
  24. ULONG uBufferLength
  25. );
  26. ///////////////////////////////////////////////////////////////////////////
  27. //
  28. // Load a string from resources.
  29. // Return TRUE if we successfully loaded and FALSE if not.
  30. //
  31. // N.B. CString::LoadString doesn't work in cmd line mode
  32. //
  33. BOOL
  34. AVLoadString(
  35. ULONG uIdResource,
  36. wstring& strText
  37. );
  38. /////////////////////////////////////////////////////////////////////////////
  39. BOOL
  40. AVRtlCharToInteger(
  41. IN LPCTSTR String,
  42. IN ULONG Base OPTIONAL,
  43. OUT PULONG Value
  44. );
  45. /////////////////////////////////////////////////////////////////////////////
  46. BOOL
  47. AVWriteStringHexValueToRegistry(
  48. HKEY hKey,
  49. LPCTSTR szValueName,
  50. DWORD dwValue
  51. );
  52. #endif //#ifndef __APP_VERIFIER_UTIL_H__