FreeRDP
sam.h
1 
20 #ifndef WINPR_UTILS_SAM_H
21 #define WINPR_UTILS_SAM_H
22 
23 #include <winpr/winpr.h>
24 #include <winpr/wtypes.h>
25 
26 typedef struct winpr_sam WINPR_SAM;
27 
29 {
30  LPSTR User;
31  UINT32 UserLength;
32  LPSTR Domain;
33  UINT32 DomainLength;
34  BYTE LmHash[16];
35  BYTE NtHash[16];
36 };
37 typedef struct winpr_sam_entry WINPR_SAM_ENTRY;
38 
39 #ifdef __cplusplus
40 extern "C"
41 {
42 #endif
43 
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);
48 
49  WINPR_API void SamResetEntry(WINPR_SAM_ENTRY* entry);
50  WINPR_API void SamFreeEntry(WINPR_SAM* sam, WINPR_SAM_ENTRY* entry);
51 
52  WINPR_API WINPR_SAM* SamOpen(const char* filename, BOOL readOnly);
53  WINPR_API void SamClose(WINPR_SAM* sam);
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif /* WINPR_UTILS_SAM_H */
Definition: sam.h:29