Windows NT 4.0 source code leak
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.

56 lines
1.2 KiB

4 years ago
  1. /*
  2. * utility functions to read and write values to the profile,
  3. * using mmtools.ini for Win16 or current user\software\microsoft\mm tools
  4. * in the registry for Win32
  5. */
  6. /*
  7. * read a BOOL flag from the profile, or return default if
  8. * not found.
  9. */
  10. BOOL mmGetProfileFlag(LPSTR appname, LPSTR valuename, BOOL bDefault);
  11. /*
  12. * write a boolean value to the registry, if it is not the
  13. * same as the default or the value already there
  14. */
  15. VOID mmWriteProfileFlag(LPSTR appname, LPSTR valuename, BOOL bValue, BOOL bDefault);
  16. /*
  17. * read a UINT from the profile, or return default if
  18. * not found.
  19. */
  20. UINT mmGetProfileInt(LPSTR appname, LPSTR valuename, UINT uDefault);
  21. /*
  22. * write a UINT to the profile, if it is not the
  23. * same as the default or the value already there
  24. */
  25. VOID mmWriteProfileInt(LPSTR appname, LPSTR valuename, UINT uValue, UINT uDefault);
  26. /*
  27. * read a string from the profile into pResult.
  28. * result is number of bytes written into pResult
  29. */
  30. DWORD
  31. mmGetProfileString(
  32. LPSTR appname,
  33. LPSTR valuename,
  34. LPSTR pDefault,
  35. LPSTR pResult,
  36. int cbResult
  37. );
  38. /*
  39. * write a string to the profile
  40. */
  41. VOID mmWriteProfileString(LPSTR appname, LPSTR valuename, LPSTR pData);