home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn Internet 2000 May
/
MICD_2000_05.iso
/
CBuilder5
/
INSTALL
/
DATA1.CAB
/
Program_Built_Files
/
Include
/
wn95scm.h
< prev
next >
Wrap
C/C++ Source or Header
|
2000-02-01
|
1KB
|
42 lines
/********************************************************************************/
/* Copyright (C) 1997 Microsoft Corp.
/********************************************************************************/
#ifndef _WN95SCMH_
#pragma option push -b -a8 -pc -A- /*P_O_Push*/
#define _WN95SCMH_
#ifdef __cplusplus
extern "C"{
#endif
// Numeric constants
#define SERVICE_UNKNOWN 0
enum enumSQLSCMCommands {SQLSCMCmd_STOP,
SQLSCMCmd_PAUSE,
SQLSCMCmd_START,
SQLSCMCmd_CONTINUE};
// Function prototypes
BOOL _declspec(dllimport) SQLSCMLocalServiceControlA(LPSTR lpszSvc,int iCommand,LPDWORD pdwErr,int iCount,void *lpStartParameter);
BOOL _declspec(dllimport) SQLSCMLocalServiceControlW(LPWSTR lpszSvc,int iCommand,LPDWORD pdwErr,int iCount,void *lpStartParameter);
DWORD _declspec(dllimport) SQLSCMGetLocalServiceStateA(LPSTR lpszSvc,LPDWORD pdwErr);
DWORD _declspec(dllimport) SQLSCMGetLocalServiceStateW(LPWSTR pwszSvc,LPDWORD pdwErr);
#ifdef UNICODE
#define SQLSCMLocalServiceControl SQLSCMLocalServiceControlW
#define SQLSCMGetLocalServiceState SQLSCMGetLocalServiceStateW
#else
#define SQLSCMLocalServiceControl SQLSCMLocalServiceControlA
#define SQLSCMGetLocalServiceState SQLSCMGetLocalServiceStateA
#endif // !UNICODE
#ifdef __cplusplus
}
#endif
#pragma option pop /*P_O_Pop*/
#endif