VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/SharedFolders/driver/vbsfhlp.h@ 61908

Last change on this file since 61908 was 58203, checked in by vboxsync, 10 years ago

VBoxGuestR0LibSharedFolders.h: Moved from VBoxGuestLib to include/VBox/VBoxGuestLibSharedFolders.h where it belongs (not merging it into VBoxGuestLib.h because it includes VBox/shflsvc.h.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1/* $Id: vbsfhlp.h 58203 2015-10-12 15:56:32Z vboxsync $ */
2/** @file
3 *
4 * VirtualBox Windows Guest Shared Folders
5 *
6 * File System Driver helpers
7 */
8
9/*
10 * Copyright (C) 2012 Oracle Corporation
11 *
12 * This file is part of VirtualBox Open Source Edition (OSE), as
13 * available from http://www.virtualbox.org. This file is free software;
14 * you can redistribute it and/or modify it under the terms of the GNU
15 * General Public License (GPL) as published by the Free Software
16 * Foundation, in version 2 as it comes in the "COPYING" file of the
17 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
18 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
19 */
20#ifndef __VBSFHLP__H
21#define __VBSFHLP__H
22
23#include <ntifs.h>
24#include <ntverp.h>
25
26#include <VBox/log.h>
27#include <VBox/VBoxGuestLibSharedFolders.h>
28
29
30void vbsfHlpSleep (ULONG ulMillies);
31NTSTATUS vbsfHlpCreateDriveLetter (WCHAR Letter, UNICODE_STRING *pDeviceName);
32NTSTATUS vbsfHlpDeleteDriveLetter (WCHAR Letter);
33
34/**
35 * Convert VBox IRT file attributes to NT file attributes
36 *
37 * @returns NT file attributes
38 * @param fMode IRT file attributes
39 *
40 */
41uint32_t VBoxToNTFileAttributes (uint32_t fMode);
42
43/**
44 * Convert VBox IRT file attributes to NT file attributes
45 *
46 * @returns NT file attributes
47 * @param fMode IRT file attributes
48 *
49 */
50uint32_t NTToVBoxFileAttributes (uint32_t fMode);
51
52/**
53 * Convert VBox error code to NT status code
54 *
55 * @returns NT status code
56 * @param vboxRC VBox error code
57 *
58 */
59NTSTATUS VBoxErrorToNTStatus (int vboxRC);
60
61PVOID vbsfAllocNonPagedMem (ULONG ulSize);
62void vbsfFreeNonPagedMem (PVOID lpMem);
63
64#if defined(DEBUG) || defined (LOG_ENABLED)
65PCHAR MajorFunctionString(UCHAR MajorFunction, LONG MinorFunction);
66#endif
67
68NTSTATUS vbsfShflStringFromUnicodeAlloc(PSHFLSTRING *ppShflString, const WCHAR *pwc, uint16_t cb);
69
70#endif /* __VBSFHLP__H */
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette