This is actually a /bin/sh script, /bin/bash is not needed.
[wine/multimedia.git] / files / smb.h
blobdd4138985b1a36508dcb59295383b039c73555c9
1 /*
2 * Copyright (C) 2002 Mike McCormack
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __INC_SMB__
20 #define __INC_SMB__
22 static inline int SMB_isSepW (WCHAR c) {return (c == '\\' || c == '/');}
23 static inline int SMB_isUNCW (LPCWSTR filename) {return (filename && SMB_isSepW (filename[0]) && SMB_isSepW (filename[1]));}
25 NTSTATUS WINAPI SMB_ReadFile(HANDLE hFile, LPVOID buffer, DWORD bytesToRead,
26 PIO_STATUS_BLOCK io_status);
27 extern HANDLE WINAPI SMB_CreateFileW( LPCWSTR filename, DWORD access, DWORD sharing,
28 LPSECURITY_ATTRIBUTES sa, DWORD creation,
29 DWORD attributes, HANDLE template );
31 typedef struct tagSMB_DIR
33 int current;
34 int num_entries;
35 unsigned char **entries;
36 unsigned char *buffer;
37 } SMB_DIR;
39 extern SMB_DIR* WINAPI SMB_FindFirst(LPCWSTR filename);
40 extern BOOL WINAPI SMB_FindNext(SMB_DIR *dir, WIN32_FIND_DATAW *data );
41 extern BOOL WINAPI SMB_CloseDir(SMB_DIR *dir);
43 #endif /* __INC_SMB__ */