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.

91 lines
2.4 KiB

  1. /**************************************************************************
  2. *
  3. * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. * PURPOSE.
  7. *
  8. * Copyright (c) 1992 - 1995 Microsoft Corporation. All Rights Reserved.
  9. *
  10. **************************************************************************/
  11. /****************************************************************************
  12. *
  13. * profile.h: Registry access
  14. *
  15. * Vidcap32 Source code
  16. *
  17. ***************************************************************************/
  18. /*
  19. * utility functions to read and write values to the profile,
  20. * using mmtools.ini for Win16 or current user\software\microsoft\mm tools
  21. * in the registry for Win32
  22. */
  23. /*
  24. * read a BOOL flag from the profile, or return default if
  25. * not found.
  26. */
  27. BOOL mmGetProfileFlag(LPTSTR appname, LPTSTR valuename, BOOL bDefault);
  28. /*
  29. * write a boolean value to the registry, if it is not the
  30. * same as the default or the value already there
  31. */
  32. VOID mmWriteProfileFlag(LPTSTR appname, LPTSTR valuename, BOOL bValue, BOOL bDefault);
  33. /*
  34. * read a UINT from the profile, or return default if
  35. * not found.
  36. */
  37. UINT mmGetProfileInt(LPTSTR appname, LPTSTR valuename, UINT uDefault);
  38. /*
  39. * write a UINT to the profile, if it is not the
  40. * same as the default or the value already there
  41. */
  42. VOID mmWriteProfileInt(LPTSTR appname, LPTSTR valuename, UINT uValue, UINT uDefault);
  43. /*
  44. * read a string from the profile into pResult.
  45. * result is number of bytes written into pResult
  46. */
  47. DWORD
  48. mmGetProfileString(
  49. LPTSTR appname,
  50. LPTSTR valuename,
  51. LPTSTR pDefault,
  52. LPTSTR pResult,
  53. int cbResult
  54. );
  55. /*
  56. * write a string to the profile
  57. */
  58. VOID mmWriteProfileString(LPTSTR appname, LPTSTR valuename, LPTSTR pData);
  59. /*
  60. * read binary values from the profile into pResult.
  61. * result is number of bytes written into pResult
  62. */
  63. DWORD
  64. mmGetProfileBinary(
  65. LPTSTR appname,
  66. LPTSTR valuename,
  67. LPVOID pDefault,
  68. LPVOID pResult, // if NULL, return the required buffer size
  69. int cbSize);
  70. /*
  71. * write binary data to the profile
  72. */
  73. VOID
  74. mmWriteProfileBinary(LPTSTR appname, LPTSTR valuename, LPVOID pData, int cbData);
  75.