execute.h

来自「This software performs code conversion o」· C头文件 代码 · 共 41 行

H
41
字号
// execute.h

#ifndef EXECUTE_H
#define EXECUTE_H

#ifdef __cplusplus
extern "C" {
#endif


int ExecuteA ( const char *szCmdLine, int nCmdShow, unsigned long dwTimeOut, int *pExitCode ) ;
int ExecuteW ( const wchar_t *szCmdLine, int nCmdShow, unsigned long dwTimeOut, int *pExitCode ) ;
int ExecuteViaComspecA ( const char *szCmdLine ) ;
int ExecuteViaComspecW ( const wchar_t *szCmdLine ) ;
size_t EncodeArgumentToCrtStyleA ( const char *szSrc, char *szDst ) ;
size_t EncodeArgumentToCrtStyleW ( const wchar_t *szSrc, wchar_t *szDst ) ;


#ifdef UNICODE
#define Execute ExecuteW
#define ExecuteViaComspec ExecuteViaComspecW
#define EncodeArgumentToCrtStyle EncodeArgumentToCrtStyleW
#else
#define Execute ExecuteA
#define ExecuteViaComspec ExecuteViaComspecA
#define EncodeArgumentToCrtStyle EncodeArgumentToCrtStyleA
#endif


#define system ExecuteViaComspecA
#define _wsystem ExecuteViaComspecW


#ifdef __cplusplus
}
#endif

#endif


⌨️ 快捷键说明

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