Displaying 20 results from an estimated 40 matches for "generic_writ".
Did you mean:
generic_write
2016 Feb 09
2
Compilation failure using mingw-w64 and gcc-5.3.0
...SOURCE=2 -msse2 -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_S...
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
2001 Dec 04
2
Serial Errors
...leases.
See documentation/keyboard for more information.
trace:file:CreateFileA C:\WINDOWS\SYSTEM\wineoss.drv GENERIC_READ FILE_SHARE_READ OPEN_EXISTING
warn:file:CreateFileA Unable to get full filename from 'C:\WINDOWS\SYSTEM\wineoss.drv' (GLE 2)
trace:file:CreateFileA CONIN$ GENERIC_READ GENERIC_WRITE FILE_SHARE_READ FILE_SHARE_WRITE OPEN_EXISTING
trace:file:CreateFileA CONOUT$ GENERIC_WRITE FILE_SHARE_READ FILE_SHARE_WRITE OPEN_EXISTING
trace:file:FILE_DoOpenFile AVICAP.DLL OF_READ OF_SHARE_COMPAT
trace:file:FILE_DoOpenFile AVICAP.DLL 0000
trace:file:FILE_DoOpenFile found /usr/share/wine-c/...
2004 Aug 06
2
Please 30 second to look a my code
...itten;
char nrBytes = 0;
int nbBytes = 0;
int bit_rate, frame_size, test=0;
bool first=true;
WaveFile = CreateFile(_T("\\Temp\\tempsound.wav"), GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
SpeexFile = CreateFile(_T("\\Temp\\tempsound.spx"), GENERIC_WRITE, 0, NULL,CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
speex_bits_init(&bits); //init encoded bits buffer
state = speex_encoder_init(&speex_nb_mode); //Init encoder in narrowband mode
speex_encoder_ctl(state, SPEEX_GET_FRAME_SIZE, &frame_size);//Get frame size
int tmp=0;
spe...
2014 Sep 26
4
Patch to add buffering to decoding too
.../* write the 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->fo...
2014 Sep 27
0
Patch to add buffering to decoding too
..._destroy(DecoderSession *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)) /* cor...
2003 Jan 06
0
Desktop.ini (part) solution
...on a samba
(2.2.7a, but also earlier) systems. This causes the dreaded Desktop.ini
problem (yay!) and probably some others too!
The test code in windows:
#include "stdafx.h"
#include <windows.h>
int main(int argc, char* argv[])
{
HANDLE f;
f =
CreateFile("H:\\test.x",GENERIC_WRITE,FILE_SHARE_WRITE,NULL,CREATE_ALWAYS,FI
LE_ATTRIBUTE_NORMAL,NULL);
CloseHandle(f);
f =
CreateFile("H:\\test.x",GENERIC_WRITE,FILE_SHARE_WRITE,NULL,CREATE_ALWAYS,FI
LE_ATTRIBUTE_HIDDEN,NULL);
CloseHandle(f);
return 0;
}
Now in windows, the first call creates the file 'test.x'...
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...
2004 Aug 06
0
Please 30 second to look a my code
...int nbBytes = 0;
> int bit_rate, frame_size, test=0;
> bool first=true;
>
> WaveFile = CreateFile(_T("\\Temp\\tempsound.wav"), GENERIC_READ, 0,
> NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
> SpeexFile = CreateFile(_T("\\Temp\\tempsound.spx"), GENERIC_WRITE, 0,
> NULL,CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
>
> speex_bits_init(&bits); //init encoded bits buffer
> state = speex_encoder_init(&speex_nb_mode); //Init encoder in
> narrowband mode
> speex_encoder_ctl(state, SPEEX_GET_FRAME_SIZE, &frame_size);//Get...
2001 Nov 23
5
Communications problem
...ot;Unknown
Communications problem". I think my configuration of wine and the com port
is ok, i have spent
some time reading manuals and howtos but cant seem to find the flaw.
can somone help.
Here folows some output i got using -debugmsg +comm,+file
trace:file:CreateFileA COM2 GENERIC_READ GENERIC_WRITE OPEN_EXISTING
trace:file:CreateFileA opening device 'COM2'
trace:file:DOSFS_CreateCommPort COM2 c0000000 40000000
trace:comm:SetCommTimeouts (60,0x405c521c)
trace:comm:BuildCommDCBAndTimeoutsA (COM2 96,n,8,1,0x405c51d8,(nil))
trace:comm:EscapeCommFunction handle 96, function=6
trace:comm:E...
2009 Jul 27
5
Problems with Pass4Sure's Network+ Demo
All:
My employer has required me to pass a computer security certification
exam. The folks at Pass4Sure have what I consider the best program.
However, it does not want to play nice under Wine. I installed the Demo
version of the Network+ test program. It is a native Windows Java
application. It wanted to install GDIPLUS and msxml6. I used
Winetricks to install them and then tried to run
2004 Aug 19
1
Serial Communication
I try to use SimoComU, a tool to control frequency converters, on Wine.
Since version 2004-07-16 it opens its main window, and most functions
seem to work. Anyway, it does not communicate over the serial line. I
see the following output:
trace:file:CreateFileW L"COM1" GENERIC_READ GENERIC_WRITE OPEN_EXISTING
attributes 0x0
trace:file:RtlDosPathNameToNtPathName_U (L"COM1",0x4066eed4,(nil),(nil))
trace:file:RtlGetFullPathName_U (L"COM1" 520 0x4066ec4c (nil))
trace:file:get_dos_device L"COM1" -> "/home/met/.wine/dosdevices/com1"
trace:file:CreateFi...
2006 May 26
13
win32-dir, unicode
Hi,
I''ve got a preliminary version of the pure Ruby version of win32-dir in
CVS. However, I was hoping to work out the Unicode issue. Run this:
from = "C:\\test"
to = "?????"
Dir.mkdir(from) unless File.exists?(from)
Dir.create_junction(to, from)
It works, but my explorer (and dos) window shows the name garbled. I
don''t think it''s a font
2008 Jan 25
1
Windows share modes and Linux file locking, flock & fcntl
...if(argc < 2)
{
printf("No argument.\n");
return 2;
}
else
{
filename = argv[1];
}
printf("Try to open file with share mode\n");
while(1)
{
handle = CreateFile(
filename,
GENERIC_READ | GENERIC_WRITE, /* desired access */
0, /* share mode: no sharing */
NULL, /* security attributes */
OPEN_EXISTING, /* creation disposition - fail if not found */
0, /* dwFlagsAndAttributes - i think we can ignore this
since the file exists */...
2020 Jun 09
0
include in smb.conf
...GRGWGX;;;BA)(A;;0x001e01bf;;;BA)(A;OICIIO;GRGX;;;SO)(A;;0x001200a9;;;SO)
Now, provided you have the key, you can easily decipher it, for
instance, (A;OICIIO;WOWDGRGWGX;;;CO) is:
(ACCESS_ALLOWED_ACE_TYPE;OBJECT_INHERIT_ACE CONTAINER_INHERIT_ACE
INHERIT_ONLY_ACE;WRITE_OWNER WRITE_DAC GENERIC_READ GENERIC_WRITE
GENERIC_EXECUTE;;;SECURITY_CREATOR_OWNER_RID)
See here:
https://docs.microsoft.com/en-us/windows/win32/secauthz/ace-strings
and here:
https://docs.microsoft.com/en-us/windows/win32/secauthz/sid-strings?redirectedfrom=MSDN
Rowland
2009 Mar 23
1
I/O error 32 (share error) while opening executable
...devices/c:/dgtsys
trace:file:GetShortPathNameA "C:\\condi\\CONDILNK.EXE"
trace:file:GetShortPathNameW L"C:\\condi\\CONDILNK.EXE"
trace:file:GetShortPathNameW returning L"C:\\condi\\CONDILNK.EXE"
trace:file:CreateFileW L"C:\\condi\\CONDILNK.EXE" GENERIC_READ
GENERIC_WRITE FILE_SHARE_READ FILE_SHARE_WRITE creation 3 attributes
0x0
trace:file:RtlDosPathNameToNtPathName_U (L"C:\\condi\
\CONDILNK.EXE",0x7e69b640,(nil),(nil))
trace:file:RtlGetFullPathName_U (L"C:\\condi\\CONDILNK.EXE" 520
0x7e69b384 (nil))
trace:file:wine_nt_to_unix_file_name L&q...
2010 Nov 20
1
Log entries from different threads are mixed with each other
...th the log.
Code:
0009:Call ntdll.RtlFreeHeap(00110000,00000000,0015b690) ret=7e0c9926
0009:trace:heap:RtlFreeHeap (0x110000,70000062,0x15b690): r002d:Call ntdl0009:Ret ntdll.RtlFreeHeap() retval=00000001 ret=7e0c9926
0009:trace:file:CreateFileW L"\\\\.\\Global\\oreans32" GENERIC_READ GENERIC_WRITE cr002d:trace:ole:NdrClientC0009:trace:file:RtlDosPathNameToNtPathName_U (L"002d:trace:ole:NDRCContextUnmarshall *0x54e860=0009:trace:file:RtlGetFullPathName_U (002d:trace:rpc:RpcBindingFree (0x11f104) = 0x11f130
0009:trace:heap:RtlAllocateHeap (0x110000,70000062,00000036): returning 0002d:Re...
2004 Nov 16
0
Re: Win32, file descriptors and rb
...e anything to a file when I tried.
>
> See my note on the ML for more details.
>
Use this code instead of case:
if(dwAccess & FILE_ALL_ACCESS)
args[1] = INT2FIX(O_RDWR);
else if(dwAccess & GENERIC_READ)
args[1] = INT2FIX(O_RDONLY);
else if(dwAccess & GENERIC_WRITE)
args[1] = INT2FIX(O_WRONLY);
else if(dwAccess)
args[1] = INT2FIX(0);
Regards,
Park Heesob
--MIME Multi-part separator--
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
2008 Mar 06
4
dot matrix POS parallel printer problems
I have a application that writes to the LPT1 directly,
in wine there is a lot of missing characters in the printout,
in the console printing to /dev/lp0 works ok.
I'm using puppy linux.
Any help welcome.
Thank you