~ubuntu-branches/ubuntu/precise/unzip/precise-proposed

« back to all changes in this revision

Viewing changes to win32/nt.h

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-06-06 17:57:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040606175746-nl7p2dgp3aobyc2c
Tags: upstream-5.51
ImportĀ upstreamĀ versionĀ 5.51

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  Copyright (c) 1990-2000 Info-ZIP.  All rights reserved.
 
3
 
 
4
  See the accompanying file LICENSE, version 2000-Apr-09 or later
 
5
  (the contents of which are also included in unzip.h) for terms of use.
 
6
  If, for some reason, all these files are missing, the Info-ZIP license
 
7
  also may be found at:  ftp://ftp.info-zip.org/pub/infozip/license.html
 
8
*/
 
9
/* nt.h:  central header for EF_NTSD "SD" extra field */
 
10
 
 
11
#ifndef _NT_H
 
12
#define _NT_H
 
13
 
 
14
#define NTSD_BUFFERSIZE (1024)  /* threshold to cause malloc() */
 
15
#define OVERRIDE_BACKUP     1   /* we have SeBackupPrivilege on remote */
 
16
#define OVERRIDE_RESTORE    2   /* we have SeRestorePrivilege on remote */
 
17
#define OVERRIDE_SACL       4   /* we have SeSystemSecurityPrivilege on remote */
 
18
 
 
19
typedef struct {
 
20
    BOOL bValid;                /* are our contents valid? */
 
21
    BOOL bProcessDefer;         /* process deferred entry yet? */
 
22
    BOOL bUsePrivileges;        /* use privilege overrides? */
 
23
    DWORD dwFileSystemFlags;    /* describes target file system */
 
24
    BOOL bRemote;               /* is volume remote? */
 
25
    DWORD dwRemotePrivileges;   /* relevant only on remote volumes */
 
26
    DWORD dwFileAttributes;
 
27
    char RootPath[MAX_PATH+1];  /* path to network / filesystem */
 
28
} VOLUMECAPS, *PVOLUMECAPS, *LPVOLUMECAPS;
 
29
 
 
30
BOOL SecuritySet(char *resource, PVOLUMECAPS VolumeCaps, uch *securitydata);
 
31
BOOL GetVolumeCaps(char *rootpath, char *name, PVOLUMECAPS VolumeCaps);
 
32
BOOL ValidateSecurity(uch *securitydata);
 
33
BOOL ProcessDefer(PDWORD dwDirectoryCount, PDWORD dwBytesProcessed,
 
34
                  PDWORD dwDirectoryFail, PDWORD dwBytesFail);
 
35
 
 
36
#endif /* _NT_H */