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 >
C/C++ Source or Header  |  2000-02-01  |  1KB  |  42 lines

  1. /********************************************************************************/
  2. /* Copyright (C) 1997 Microsoft Corp.
  3. /********************************************************************************/
  4.  
  5. #ifndef _WN95SCMH_
  6. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  7. #define _WN95SCMH_
  8.  
  9. #ifdef __cplusplus
  10. extern "C"{
  11. #endif 
  12.  
  13. // Numeric constants
  14. #define SERVICE_UNKNOWN                             0
  15. enum enumSQLSCMCommands                                  {SQLSCMCmd_STOP,
  16.                                                     SQLSCMCmd_PAUSE,
  17.                                                     SQLSCMCmd_START,
  18.                                                     SQLSCMCmd_CONTINUE};
  19.  
  20. // Function prototypes
  21. BOOL _declspec(dllimport)   SQLSCMLocalServiceControlA(LPSTR lpszSvc,int iCommand,LPDWORD pdwErr,int iCount,void *lpStartParameter);
  22. BOOL _declspec(dllimport)   SQLSCMLocalServiceControlW(LPWSTR lpszSvc,int iCommand,LPDWORD pdwErr,int iCount,void *lpStartParameter);
  23. DWORD _declspec(dllimport)  SQLSCMGetLocalServiceStateA(LPSTR lpszSvc,LPDWORD pdwErr);
  24. DWORD _declspec(dllimport)  SQLSCMGetLocalServiceStateW(LPWSTR pwszSvc,LPDWORD pdwErr);
  25.  
  26. #ifdef UNICODE
  27. #define SQLSCMLocalServiceControl  SQLSCMLocalServiceControlW
  28. #define SQLSCMGetLocalServiceState SQLSCMGetLocalServiceStateW
  29. #else
  30. #define SQLSCMLocalServiceControl  SQLSCMLocalServiceControlA
  31. #define SQLSCMGetLocalServiceState SQLSCMGetLocalServiceStateA
  32. #endif // !UNICODE
  33.  
  34.  
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38.  
  39. #pragma option pop /*P_O_Pop*/
  40. #endif
  41.  
  42.