WHELLOC.H

#ifdef WIN16 
#define APIENTRY FAR PASCAL
#define UNREFERENCED_PARAMETER
#endif

#define IDM_ABOUT 100
#define IDM_PROTSEQ 200
#define IDM_SERVER 300
#define IDM_EXIT 400
#define IDM_ENDPOINT 500
#define IDM_SEND 600
#define IDM_BIND 700

#define IDD_PROTSEQNAME 201
#define IDD_SERVERNAME 301
#define IDD_ENDPOINTNAME 401
#define IDD_MESSAGE 501

#define CNLEN 25 /* computer name length */
#define UNCLEN CNLEN+2 /* \\computername */
#define PATHLEN 260 /* Path */
#define MSGLEN 300 /* arbitrary large number for message size */
#define MAXPROTSEQ 20 /* protocol sequence "ncacn_np" */

#define DEFAULT_ENDPOINT "\\pipe\\whello"
#define DEFAULT_PROT_SEQ "ncacn_np"
#define DEFAULT_MESSAGE "hello, world"

#define EXCEPT_MSG "The remote procedure call failed. \
Please make sure the server application is running and \
that the server name and endpoint name are correct."


int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int);
BOOL InitApplication(HANDLE);
BOOL InitInstance(HANDLE, int);

LONG APIENTRY MainWndProc(HWND, UINT, UINT, LONG);
BOOL APIENTRY About(HWND, UINT, UINT, LONG);
BOOL APIENTRY Protseq(HWND, UINT, UINT, LONG);
BOOL APIENTRY Server(HWND, UINT, UINT, LONG);
BOOL APIENTRY Endpoint(HWND, UINT, UINT, LONG);
BOOL APIENTRY Send(HWND, UINT, UINT, LONG);
RPC_STATUS Bind(HWND);