Displaying 20 results from an estimated 51 matches for "file_share_read".
2001 Sep 14
5
wine serial support
Hi,
I use wine to run a terminal emulator (NetTerm).
It connects to a Linux Server (it was meant to run from windows) that runs a commerce software.
This Linux commerce software sends the terminal emulator escape codes to interface with a
"ticket" printer attached to a serial port.
The reason to go thru all this problem is that the printer has a proprietary, closed source driver
for
2016 Feb 09
2
Compilation failure using mingw-w64 and gcc-5.3.0
...-MT decode.o -MD -MP -MF $depbase.Tpo -c -o
decode.o decode.c &&\
mv -f $depbase.Tpo $depbase.Po
decode.c: In function 'DecoderSession_destroy':
decode.c:270:5: error: unknown type name 'HANDLE'
HANDLE fh = CreateFile_utf8(d->outfilename,
GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
^
decode.c:270:17: warning: implicit declaration of function
'CreateFile_utf8' [-Wimplicit-function-declaration]
HANDLE fh = CreateFile_utf8(d->outfilename,
GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHA...
2016 Feb 08
2
Compilation failure using mingw-w64 and gcc-5.3.0
Hello,
Upon compiling the flac tree today, after many successful compilations over
the last few weeks, a new error is appearing before compilation bails out.
This is a cross-compilation using gcc-5.3.0 running on GNU/Linux, with the
objects being built for a mingw-w64-x86_64 host.
Among other things, the compiler is looking for windows_unicode_filenames.h
but it isn't there. Also, I'm
2013 Apr 20
1
One tiny Windows Unicode patch
...bag/file.c
index dd2880c..a3706f1 100644
--- a/src/share/grabbag/file.c
+++ b/src/share/grabbag/file.c
@@ -127,8 +127,8 @@ FLAC__bool grabbag__file_are_same(const char *f1, const char *f2)
BY_HANDLE_FILE_INFORMATION info1, info2;
HANDLE h1, h2;
BOOL ok = 1;
- h1 = CreateFile(f1, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
- h2 = CreateFile(f2, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
+ h1 = CreateFile_utf8(f1, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
+ h2 = CreateFile_utf8(f2, GENERIC...
2003 Sep 24
0
CreateFile for EXE images vs other files
This question isn't directly Samba related, but Samba has helped me figure out part of the problem. When I CreateFile on an existing file like so:
CreateFile(FileName, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_DELETE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
Samba shows that I have the file opened with this type of lock
DENY_NONE 0x20089 RDONLY
When the file is locked in this manner, I am unable to rename the file.
However, Windows launches executables over Samba shares wi...
2020 Jun 30
3
Issues with FLOCK on NFS Share
On 30/06/2020 14:55, Ralph Boehme via samba wrote:
> Howdy!
>
> Am 6/30/20 um 2:37 PM schrieb Georg.Biberger--- via samba:
>> We are using Samba 4.10.16 as a readonly file server on a linux box with SLES 12. All is working fine with our NAS NFS Shares. We are now trying to integrate new NFS Shares from an archive provider. We have some problems with samba not responding, when
2006 Mar 21
0
wine and Mankind (the one from www.mankind.net) - possible networking or file creation problem
...The server that distributes the updates is np.mankind. But I
don't capture any other packets. I would expect an attempt to connect to
it or any other of Mankind's servers.
This may also be related to some other thing I have noticed:
trace:file:CreateFileW L"mk.cfg" GENERIC_READ FILE_SHARE_READ
FILE_SHARE_WRITE creation 3 attributes 0x80
trace:file:RtlDosPathNameToNtPathName_U
(L"mk.cfg",0x7f9de618,(nil),(nil))
trace:file:RtlGetFullPathName_U (L"mk.cfg" 520 0x7f9de38c (nil))
trace:file:wine_nt_to_unix_file_name L"\\??\\C:\\Programme\\Mankind\
\Mankind\\mk.cfg&quo...
2001 Dec 04
2
Serial Errors
....
Can anyone make sense out of it, as I can't. Can I solve the
problem using setserial or stty. Any help will be greatly appreciated.
Thanks,
Carlos E. Saldarriaga
-------------- next part --------------
trace:file:CreateFileA C:\Program Files\Inetcam230\programs\IConfig.exe GENERIC_READ FILE_SHARE_READ OPEN_EXISTING
trace:file:CreateFileA C:\windows\system\avicap32.dll GENERIC_READ FILE_SHARE_READ OPEN_EXISTING
trace:file:CreateFileA C:\windows\system\msvcrt20.dll GENERIC_READ FILE_SHARE_READ OPEN_EXISTING
trace:comm:COMM_Init COM1 = /dev/ttyS0
trace:comm:COMM_Init LPT1 = /dev/lp0
trace:comm:C...
2008 Feb 13
1
Flash Movie Player Control in VB
...e ActiveX controller
does load properly.) Unfortunately, I don't have access to the source, nor
do I have any VB experience.
Looking at the file channel of debug output, I notice:
trace:file:CreateFileW L"C|/Program
Files/TimeMAPS/Graphics/Flash/070100_NeedsWants.swf/" GENERIC_READ
FILE_SHARE_READ creation 3 attributes 0x80
trace:file:RtlDosPathNameToNtPathName_U (L"C|/Program
Files/TimeMAPS/Graphics/Flash/070100_NeedsWants.swf/",0x33d8b8,(nil),(nil))
trace:file:RtlGetFullPathName_U (L"C|/Program
Files/TimeMAPS/Graphics/Flash/070100_NeedsWants.swf/" 520 0x33d610 (nil))
w...
2001 Sep 20
2
win32:DEVICE_Open Unknown VxD A:. Try --winver nt40 or win31 !
...ase, the culprit is seagate's seatools:
http://www.seagate.com/support/seatools/
I installed wine under debian unstable (Version: 0.0.20010824-1) and when I
run the windows binary under wine, it runs but fails to write the floppy and
wine fails with:
trace:file:CreateFileA \\.\A: QUERY_ACCESS FILE_SHARE_READ FILE_SHARE_WRITE OPEN_EXISTING
fixme:win32:DEVICE_Open Unknown VxD A:. Try --winver nt40 or win31 !
The only replaceable DLL wine loads is advapi32.dll, and I tried to provide
one from w2k and win98 ("advapi32" = "native, builtin") but it didn't help.
Of course, changing...
2014 Sep 26
4
Patch to add buffering to decoding too
...WAVE/AIFF headers if necessary */
if(!d->analysis_mode && !d->test_only && d->format != FORMAT_RAW) {
+#ifdef _WIN32
+ if(strcmp(outfilename, "-") && d->total_samples > 0) {
+ HANDLE fh = CreateFile_utf8(outfilename, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
+ if(fh != INVALID_HANDLE_VALUE) {
+ if (GetFileType(fh) == FILE_TYPE_DISK) {
+ LARGE_INTEGER size;
+ size.QuadPart = d->total_samples * d->channels * ((d->bps+7)/8) + 512;
+ if(d->foreign_metadata) {...
2020 Jul 01
0
Issues with FLOCK on NFS Share
...t setting :-(
> Can we see your smb.conf ?
Hi,
I have now set
kernel share modes = no
which solves this issue!
Attached my smb.conf.
I was wondering if the kernel_flock function in source3/lib/system.c is correct implemented. E.g. when the function is called with parameter share_mode set to FILE_SHARE_READ|FILE_SHARE_WRITE, then the function flock is not be called.
void kernel_flock(int fd, uint32_t share_mode, uint32_t access_mask)
{
#ifdef HAVE_KERNEL_SHARE_MODES
int kernel_mode = 0;
if (share_mode == FILE_SHARE_WRITE) {
kernel_mode = LOCK_MAND|LOCK_WRITE;
}...
2014 Sep 27
0
Patch to add buffering to decoding too
...rSession *d, FLAC__bool error_occurred)
{
if(0 != d->fout && d->fout != stdout) {
+#ifdef _WIN32
+ if(!error_occurred) {
+ FLAC__off_t written_size = ftello(d->fout);
+ if(written_size > 0) {
+ HANDLE fh = CreateFile_utf8(d->outfilename, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
+ if(fh != INVALID_HANDLE_VALUE) {
+ if(GetFileType(fh) == FILE_TYPE_DISK) {
+ LARGE_INTEGER size;
+ size.QuadPart = written_size;
+ if(SetFilePointerEx(fh, size, NULL, FILE_CURRENT)) /* correct the file size...
2001 Dec 12
0
Solid Edge 7
Hi, I try to install Solid Edge 7.0 (one CAD prg), but wine give alway:
"trace:file:CreateFileA D:\Setup.exe GENERIC_READ FILE_SHARE_READ
OPEN_EXISTING
trace:file:CreateFileA C:\WINDOWS\_delis32.ini GENERIC_READ FILE_SHARE_READ
OPEN_EXISTING
warn:file:CreateFileA Unable to get full filename from
'C:\WINDOWS\_delis32.ini'(GLE2)
err:win:WIN_FindWndPtr window 10022 belongs to other process
err:win:WIN_FindWndPtr window 10021...
2010 Mar 25
4
CreateFile \\\\.\\x: non-root
Hello,
I have a usb data aquisition device interfaced by mass storage protocol. I open it like:
hEcgDrive=CreateFile("\\\\.\\g:",
GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL | FILE_FLAG_NO_BUFFERING |
FILE_FLAG_WRITE_THROUGH | FILE_FLAG_OVERLAPPED,
NULL);
for communication I use
DeviceIoControl(hEcgDrive,
IOCTL_SCSI_PASS_THROUGH_DIRECT,
....
with a 'custom' scsi operation code as wrapper.
O...
2020 Jul 01
2
Issues with FLOCK on NFS Share
...t setting :-(
> Can we see your smb.conf ?
Hi,
I have now set
kernel share modes = no
which solves this issue!
Attached my smb.conf.
I was wondering if the kernel_flock function in source3/lib/system.c is correct implemented. E.g. when the function is called with parameter share_mode set to FILE_SHARE_READ|FILE_SHARE_WRITE, then the function flock is not be called.
void kernel_flock(int fd, uint32_t share_mode, uint32_t access_mask)
{
#ifdef HAVE_KERNEL_SHARE_MODES
int kernel_mode = 0;
if (share_mode == FILE_SHARE_WRITE) {
kernel_mode = LOCK_MAND|LOCK_WRITE;
}...
2004 Nov 06
3
Calling CreateFile on an instance of File - possible?
...l != Qfalse)){
rb_raise(rb_eTypeError,"Argument must be true or false");
}
rbPath = rb_funcall(self,rb_intern("path"),0,0);
dwAttr = GetFileAttributes(StringValuePtr(rbPath));
h = CreateFile(
(LPCTSTR)StringValuePtr(rbPath),
FILE_ALL_ACCESS,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
dwAttr,
NULL
);
if(h == INVALID_HANDLE_VALUE){
printf("Error opening file: %s\n",ErrorDescription(GetLastError()));
return Qnil;
}
...
}
I''ve tried various flags for the different arguments, all to no avail....
2004 Oct 28
5
Application crashes when File->open is clicked
Hello,
I found a bug in Latest wine releases. I found it in the
wine-20040914,wine-20040813 rpms for the RedHat Distributions.I had
tested it in RedHat-9.0,7.3 systems.
The bug is that, when we try to open(file->open) from any windows
applications, the application hangs. For eg., even in Notepad, when I
click File-> Open, wine shows the following error.
---------
wine: Unhandled
2004 May 09
0
Wine crash after update
...quot;system.dat" (L"SYSTEM.DAT")
0009:trace:heap:RtlFreeHeap (0x40330000,00000002,403307e0): returning TRUE
0009:trace:dosfs:DOSFS_GetFullName returning /win/windows/system.dat = L"C:\\WINDOWS\\SYSTEM.DAT"
0009:trace:file:CreateFileW L"c:\\system.1st" GENERIC_READ FILE_SHARE_READ OPEN_EXISTING attributes 0x0
0009:trace:dosfs:DOSFS_GetFullName L"c:\\system.1st" (last=1)
0009:trace:dosfs:DOSFS_FindUnixName /win,L"system.1st"
0009:trace:heap:RtlAllocateHeap (0x40330000,00000002,00000210): returning 403307e0
0009:trace:dosfs:DOSFS_OpenDir "/win"
0...
2007 Sep 25
2
Using callbacks with ReadFileEx
...dows::File
extend Windows::Handle
extend Windows::Error
extend Windows::Synchronize
class Error < StandardError; end
def self.read_async(file, length=nil, offset=0, &block)
handle = CreateFile(
file,
FILE_READ_DATA,
FILE_SHARE_READ,
0,
OPEN_EXISTING,
FILE_FLAG_OVERLAPPED | FILE_FLAG_NO_BUFFERING,
0
)
if handle == INVALID_HANDLE_VALUE
raise Error, get_last_error
end
func = Win32::API::Callback.new(''LLP'', '...