Leaked source code of windows server 2003
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.
 
 
 
 
 
 

79 lines
1.6 KiB

/*++
Copyright (c) 2001 Microsoft Corporation
Module Name:
srvsnap.h
Abstract:
This module implements making SnapShots availible over the network
Author:
David Kruse (dkruse) 22-March-2001
Revision History:
--*/
#ifndef _SRVSNAP_
#define _SRVSNAP_
typedef struct _SRV_SNAPSHOT_ARRAY
{
ULONG NumberOfSnapShots; // The number of SnapShots for the volume
ULONG NumberOfSnapShotsReturned; // The number of SnapShots being returned
ULONG SnapShotArraySize; // The size (in bytes) needed for the array
WCHAR SnapShotMultiSZ[1]; // The multiSZ array of SnapShot names
} SRV_SNAPSHOT_ARRAY, *PSRV_SNAPSHOT_ARRAY;
NTSTATUS
SrvSnapRefreshSnapShotsForShare(
IN PSHARE Share
);
NTSTATUS
SrvSnapRemoveShare(
IN PSHARE_SNAPSHOT SnapShare
);
NTSTATUS
SrvSnapEnumerateSnapShots(
IN PWORK_CONTEXT WorkContext
);
NTSTATUS
SrvSnapGetRootHandle(
IN PWORK_CONTEXT WorkContext,
OUT HANDLE* RootHandle
);
NTSTATUS
SrvSnapGetNameString(
IN PWORK_CONTEXT WorkContext,
OUT PUNICODE_STRING* pathName,
OUT BOOLEAN* FreePath
);
BOOLEAN
SrvSnapParseToken(
IN PWSTR Source,
IN ULONG SourceSizeInBytes,
OUT PLARGE_INTEGER TimeStamp
);
NTSTATUS
SrvSnapEnumerateSnapShotsAsDirInfo(
IN PWORK_CONTEXT WorkContext,
IN PVOID Buffer,
IN ULONG BufferLength,
IN PUNICODE_STRING FileResumeName,
IN BOOLEAN SingleEntries,
IN OUT PSRV_DIRECTORY_INFORMATION DirectoryInformation
);
#endif // _SRVSNAP_