UTIL.H

/*------------------------------------------------*\ 
*
*Copyright (c) 1997 Microsoft Corporation
*
*Module Name:
*
*util.h
*
*Abstract:
*
*Utility functions for Service Provider
*implementation.
*
\*------------------------------------------------*/


#ifndef __UTIL_H__
#define __UTIL_H__


//
//TO DO:Change the file name below to suit your provider
//

#define DLL_FILENAME_A"STUBWPP.DLL"



#defineMAX_MSG_LEN1024

#define REGKEY_CLASSES_A"CLSID"
#define REGKEY_INPROCSERVER_A"InprocServer32"

#define REGKEY_CLASSES_WL REGKEY_CLASSES_A
#define REGKEY_INPROCSERVER_WL REGKEY_INPROCSERVER_A


#define g_mbstowcs(pwszDest, pszSrc, dwDestSize)MultiByteToWideChar(CP_ACP, 0, (pszSrc), -1, (pwszDest), (dwDestSize))
#define g_wcstombs(pszDest, pwszSrc, dwDestSize)WideCharToMultiByte(CP_ACP, 0, (pwszSrc), -1, (pszDest), (dwDestSize), NULL, NULL)


#define leave(x){ hRetCode = x; goto leave_routine; }


#endif /* __UTIL_H__ */