vm_file_win.h

来自「audio-video-codecs.rar语音编解码器」· C头文件 代码 · 共 46 行

H
46
字号
/*
//
//                  INTEL CORPORATION PROPRIETARY INFORMATION
//     This software is supplied under the terms of a license agreement or
//     nondisclosure agreement with Intel Corporation and may not be copied
//     or disclosed except in accordance with the terms of that agreement.
//       Copyright(c) 2003-2007 Intel Corporation. All Rights Reserved.
//
*/
/*
 * VM 64-bits buffered file operations library
 *    Windows definitions
 */
#ifndef  VM_FILE_WIN_H
#  define VM_FILE_WIN_H
#  include <windows.h>
#  include <Winbase.h>
#  include <stdarg.h>
#  include <string.h>
#  include "vm_mutex.h"
#  if _MSC_VER >= 1400
#    pragma warning( disable: 4996 )
#  endif

#    define VM_TEMPORARY_PREFIX 0x55

#define vm_stdin  (vm_file *)3
#define vm_stderr (vm_file *)1
#define vm_stdout (vm_file *)2


typedef struct {
  HANDLE fd;
  vm_mutex lck;
  vm_char *tbuf;    /* temporary buffer for character io operations */
  Ipp64u fsize;
  Ipp32u fattributes;
  Ipp8u   ftemp; /* temporary flag sign - added to support temporary files VM_TEMPORARY_PREFIX - temporary file */
  } vm_file;

typedef struct {
  HANDLE handle;
  WIN32_FIND_DATA ent;
  } vm_dir;
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?