diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/nw/convert/nwconv/map.h | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'private/nw/convert/nwconv/map.h')
-rw-r--r-- | private/nw/convert/nwconv/map.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/private/nw/convert/nwconv/map.h b/private/nw/convert/nwconv/map.h new file mode 100644 index 000000000..58007d7d8 --- /dev/null +++ b/private/nw/convert/nwconv/map.h @@ -0,0 +1,62 @@ +/*+-------------------------------------------------------------------------+ + | Copyright 1993-1994 (C) Microsoft Corporation - All rights reserved. | + +-------------------------------------------------------------------------+*/ + +#ifndef _HMAPFILE_ +#define _HMAPFILE_ + +#ifdef __cplusplus +extern "C"{ +#endif + + +typedef struct _MAP_LINE { + struct _MAP_LINE *next; + struct _MAP_LINE *prev; + + LPTSTR Line; +} MAP_LINE; + +typedef struct _MAP_SECTION { + struct _MAP_SECTION *next; + struct _MAP_SECTION *prev; + + LPTSTR Name; + MAP_LINE *FirstLine; + MAP_LINE *LastLine; + ULONG LineCount; +} MAP_SECTION; + +typedef struct _MAP_FILE { + HANDLE hf; + BOOL Modified; + + MAP_SECTION *FirstSection; + MAP_SECTION *LastSection; + MAP_SECTION *CurrentSection; + MAP_LINE *CurrentLine; + ULONG SectionCount; + TCHAR Name[]; +} MAP_FILE; + +#define FILE_CACHE_SIZE 2048 +#define MAX_LINE_LEN 512 + +#define SECTION_BEGIN_CHAR '[' +#define SECTION_END_CHAR ']' +#define COMMENT_CHAR ';' +#define WORD_DELIMITER ',' + +BOOL MapFileCreate(HWND hDlg, LPTSTR FileName, LPTSTR Server); +DWORD map_UsersEnum(MAP_FILE *hMap, USER_LIST **lpUsers); +DWORD map_GroupsEnum(MAP_FILE *hMap, GROUP_LIST **lpGroups); + +MAP_FILE *map_Open(TCHAR *FileName); +void map_Close(MAP_FILE *hMap); + +#ifdef __cplusplus +} +#endif + +#endif + |