windows-nt/Source/XPSP1/NT/base/fs/utils/openfiles/query.h
2020-09-26 16:20:57 +08:00

64 lines
1.6 KiB
C

// *********************************************************************************
//
// Copyright (c) Microsoft Corporation
//
// Module Name:
//
// Query.h
//
// Abstract:
//
// macros and function prototypes of Query.cpp
//
// Author:
//
// Akhil Gokhale (akhil.gokhale@wipro.com) 1-Nov-2000
//
// Revision History:
//
// Akhil Gokhale (akhil.gokhale@wipro.com) 1-Nov-2000 : Created It.
//
// *********************************************************************************
#ifndef _QUERY_H
#define _QUERY_H
#include "openfiles.h"
#define COL_WIDTH_HOSTNAME 15
#define COL_WIDTH_ID 8
#define COL_WIDTH_ACCESSED_BY 20
#define COL_WIDTH_TYPE 10
#define COL_WIDTH_LOCK 10
#define COL_WIDTH_OPEN_MODE 15
#define COL_WIDTH_OPEN_FILE 36
#define MAX_OUTPUT_COLUMN 7
#define COL_HOSTNAME GetResString(IDS_STRING_HOSTNAME)
#define COL_ID GetResString(IDS_STRING_ID)
#define COL_ACCESSED_BY GetResString(IDS_STRING_ACCESSED_BY)
#define COL_TYPE GetResString(IDS_STRING_TYPE)
#define COL_LOCK GetResString(IDS_STRING_LOCK)
#define COL_OPEN_MODE GetResString(IDS_STRING_OPEN_MODE)
#define COL_OPEN_FILE GetResString(IDS_STRING_OPEN_FILE)
#define MAC_OS GetResString(IDS_MAC_OS)
#define RV_ERROR_C_CPP_FUNCTIONS -1
BOOL QueryOpenFiles(LONG argc,
LPCTSTR argv[]);
BOOL DoQuery(PTCHAR pszServer,
BOOL bShowNoHeader,
PTCHAR pszFormat,
BOOL bVerbose);
BOOL GetHostName(PTCHAR pszServer);
BOOL GetHostNameFromFQDN(LPTSTR pszServer);
#endif