search for: create_alway

Displaying 10 results from an estimated 10 matches for "create_alway".

Did you mean: create_always
2004 Aug 06
2
Please 30 second to look a my code
...= 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; speex_encoder_ctl(state, S...
2003 Jan 06
0
Desktop.ini (part) solution
...) 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' with NORMAL attributes. Then, the...
2004 Aug 06
0
Please 30 second to look a my code
...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 > &gt...
2011 Sep 03
1
Patch to build hivex lib on Windows
Hi I'm just posting this here in case someone is interested in building hivex on Windows (mingw32). The attached patch allows building the lib but not the tools (hivexsh etc..) as there are some more problems to solve. In short terms, this patch replaces file i/o functions and mmap(), munmap() with their win32api pendants. cu -- Unix _IS_ user friendly - it's just selective about
2002 Mar 02
0
Longman dictionary installer debugging
...warn:file:FILE_DoOpenFile (F:\_INS0433._MP): return = HFILE_ERROR error= 2 trace:file:FILE_DoOpenFile F:\_INS0433._MP OF_READ OF_SHARE_COMPAT OF_CREATE trace:file:FILE_DoOpenFile F:\_INS0433._MP 1000 trace:file:CreateFileA F:\_INS0433._MP GENERIC_READ GENERIC_WRITE FILE_SHARE_READ FILE_SHARE_WRITE CREATE_ALWAYS trace:file:FILE_DoOpenFile (F:\_INS0433._MP): OK, return = 88 trace:file:Win32HandleToDosFileHandle Got 6 for h32 88 fixme:file:_lclose16 stdio handle closed, need proper conversion fixme:file:_lclose16 stdio handle closed, need proper conversion fixme:file:_lclose16 stdio handle closed, need pro...
2001 Dec 06
2
Problem report: SHRINKER.ERR, fix to DEVICE_Open/CreateFileA?
...f6e.tmp 0806d388:Ret kernel32.GetTempFileNameA() retval=0000cf6e ret=007617b2 0806d388:Call kernel32.CreateFileA(40616d3c "C:\\WINDOWS\\000cf6e.tmp",40000000,00000000,00000000,00000002,00000080,00000000) ret=00761013 0806d388:trace:file:CreateFileA C:\WINDOWS\000cf6e.tmp GENERIC_WRITE CREATE_ALWAYS 0806d388:trace:dosfs:DOSFS_GetFullName C:\WINDOWS\000cf6e.tmp (last=0) 0806d388:trace:string:lstrcpynA (0x40612210, "/mnt/dos", 1024) 0806d388:trace:dosfs:DOSFS_FindUnixName /mnt/dos,WINDOWS\000cf6e.tmp 0806d388:trace:heap:HeapAlloc (403b0000,00000002,0000022c): returning 4042ef68 0806d...
2020 Sep 11
0
Wine release 5.17
...k_from_strmbase_pin(). wintrust/tests: Add more tests for CryptCATOpen() file modes. wintrust: Assign the file open mode directly instead of treating it as a bitmask. wintrust: Translate a lack of open mode flags to OPEN_ALWAYS. wintrust: Translate CRYPTCAT_OPEN_CREATENEW to CREATE_ALWAYS. include: Add more setupapi error codes. include: Add a couple more SIP indirect data flags. mssign32: Use public SPC_* flag definitions. include: Add catalog file version constants. server: Use GENERIC_READ | GENERIC_WRITE in inherit_console(). include: Use ioc...
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
2007 Nov 30
0
Wine release 0.9.50
...e bar gradients and match colours with win2k. Dmitry Timoshkov (5): winex11.drv: Get rid of unused variables. server: Make timer id allocation algorithm conform to the Windows one. kernel32: Set last error to ERROR_ALREADY_EXISTS if CreateFile succeeds and file existed before for CREATE_ALWAYS and OPEN_ALWAYS. kernel32: Mask out FILE_ATTRIBUTE_NOT_CONTENT_INDEXED to prevent a test failure under Windows. winex11.drv: Use display device guid managed by explorer. EA Durbin (4): kernel32: Add stub implementation of GetConsoleInputExeNameA. kernel32: Add stub impleme...
2017 Nov 09
10
Experiment on how to improve our temporary file handing.
Currently a power failure or other hard crash can cause lld leave a temporary file around. The same is true for other llvm tools. As an example, put a breakpoint in Writer.cpp:236 ("writeBuildId()") and restart the run a few times. You will get t.tmp43a735a t.tmp4deeabb t.tmp9bacdd3 t.tmpe4115c4 t.tmpeb01fff The same would happen if there was a fatal error between the