20 #ifndef WINPR_UTILS_SAM_H
21 #define WINPR_UTILS_SAM_H
23 #include <winpr/winpr.h>
24 #include <winpr/wtypes.h>
26 typedef struct winpr_sam WINPR_SAM;
44 WINPR_API WINPR_SAM_ENTRY* SamLookupUserA(WINPR_SAM* sam, LPCSTR User, UINT32 UserLength,
45 LPCSTR Domain, UINT32 DomainLength);
46 WINPR_API WINPR_SAM_ENTRY* SamLookupUserW(WINPR_SAM* sam, LPCWSTR User, UINT32 UserLength,
47 LPCWSTR Domain, UINT32 DomainLength);
49 WINPR_API
void SamResetEntry(WINPR_SAM_ENTRY* entry);
50 WINPR_API
void SamFreeEntry(WINPR_SAM* sam, WINPR_SAM_ENTRY* entry);
52 WINPR_API WINPR_SAM* SamOpen(
const char* filename, BOOL readOnly);
53 WINPR_API
void SamClose(WINPR_SAM* sam);