File:  [WindowsNT SDKs] / mstools / samples / wsock / wsock.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:24:28 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-nov-1993, ntsdk-jul-1993, HEAD
Microsoft Windows NT Build 511 (SDK Final Release) 07-24-1993


/******************************************************************************\
*       This is a part of the Microsoft Source Code Samples. 
*       Copyright (C) 1993 Microsoft Corporation.
*       All rights reserved. 
*       This source code is only intended as a supplement to 
*       Microsoft Development Tools and/or WinHelp documentation.
*       See these sources for detailed information regarding the 
*       Microsoft samples programs.
\******************************************************************************/

#define WSA_ACCEPT   (WM_USER + 0)
#define WSA_READ     (WM_USER + 1)

#define IDM_ABOUT 100
#define IDM_HOSTNAME  102
#define IDM_LISTEN  103
#define IDM_CONNECT  104
#define IDM_ALISTEN  105
#define IDM_CANCEL   106
#define IDM_TLISTEN  107
#define IDM_SENDTCP  108

/*
*   Structure passed into the accept thread
*/
typedef struct {
   int    nThread;  // Thread number.
   HWND  hWnd;
   } THREADPACK, *PTHREADPACK;


 
BOOL InitApplication(HANDLE);
BOOL InitInstance(HANDLE, int);
void SetConnectMenus( HWND );
LONG APIENTRY MainWndProc(HWND, UINT, UINT, LONG);
LRESULT APIENTRY About(HWND, UINT, UINT, LONG);
LRESULT APIENTRY GetHostName(HWND, UINT, UINT, LONG);
LRESULT APIENTRY DisplayHostEnt(HWND, UINT, UINT, LONG);
LRESULT APIENTRY GetTcpPort(HWND, UINT, UINT, LONG);
LRESULT APIENTRY GetSendString(HWND, UINT, UINT, LONG);

/* GLOBAL VARIABLES ======================================*/
PHOSTENT phe;

#define IDD_EDIT                    201
#define IDD_TEXT                    202
#define IDD_ALIAS                   203
#define IDD_HOSTNAME                206
#define IDD_LBALIAS                                             207
#define IDD_LBADDR                                              208


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.