Source code of Windows XP (NT5)
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.

87 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. infp.h
  5. Abstract:
  6. Headers of inf read/write
  7. Author:
  8. Jin Huang (jinhuang) 09-Dec-1996
  9. Revision History:
  10. --*/
  11. #ifndef _infp_
  12. #define _infp_
  13. #define SCE_KEY_MAX_LENGTH 256
  14. #define MAX_STRING_LENGTH 511
  15. typedef DWORD SCEINF_STATUS;
  16. /*
  17. #define SCEINF_SUCCESS NO_ERROR
  18. #define SCEINF_PROFILE_NOT_FOUND ERROR_FILE_NOT_FOUND
  19. #define SCEINF_NOT_ENOUGH_MEMORY ERROR_NOT_ENOUGH_MEMORY
  20. #define SCEINF_ALREADY_RUNNING ERROR_SERVICE_ALREADY_RUNNING
  21. #define SCEINF_INVALID_PARAMETER ERROR_INVALID_PARAMETER
  22. #define SCEINF_CORRUPT_PROFILE ERROR_BAD_FORMAT
  23. #define SCEINF_INVALID_DATA ERROR_INVALID_DATA
  24. #define SCEINF_ACCESS_DENIED ERROR_ACCESS_DENIED
  25. #define SCEINF_OTHER_ERROR 10L
  26. */
  27. typedef struct _SCE_HINF_ {
  28. BYTE Type;
  29. HINF hInf;
  30. } SCE_HINF, *PSCE_HINF;
  31. //
  32. // function prototypes
  33. //
  34. SCESTATUS
  35. SceInfpOpenProfile(
  36. IN PCWSTR ProfileName,
  37. OUT HINF *hInf
  38. );
  39. SCESTATUS
  40. SceInfpCloseProfile(
  41. IN HINF hInf
  42. );
  43. SCESTATUS
  44. SceInfpGetDescription(
  45. IN HINF hInf,
  46. OUT PWSTR *Description
  47. );
  48. SCESTATUS
  49. SceInfpGetSecurityProfileInfo(
  50. IN HINF hInf,
  51. IN AREA_INFORMATION Area,
  52. OUT PSCE_PROFILE_INFO *ppInfoBuffer,
  53. OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL
  54. );
  55. SCESTATUS
  56. SceInfpGetUserSection(
  57. IN HINF hInf,
  58. IN PWSTR Name,
  59. OUT PSCE_USER_PROFILE *pOneProfile,
  60. OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL
  61. );
  62. /*
  63. SCESTATUS
  64. SceInfpInfErrorToSceStatus(
  65. IN SCEINF_STATUS InfErr
  66. );
  67. */
  68. #endif