NetTunnelWindows/NetTunnelSDK/misc.h

19 lines
385 B
C
Raw Normal View History

2023-06-15 01:35:37 +00:00
#pragma once
#include <windows.h>
2023-06-15 01:35:37 +00:00
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
#endif
#ifdef __cplusplus // If used by C++ code,
extern "C" {
// we need to export the C interface
#endif
void RemoveTailLineBreak(TCHAR* pInputStr, int strSize);
int RunPipeCmd(TCHAR* pszCmd, TCHAR* pszResultBuffer, int dwResultBufferSize);
#ifdef __cplusplus
}
#endif