int nCmdShow;
{
FARPROC lpfnDlgProc;
+ WSADATA wsadata;
+ WORD versionrequested;
+ int rc;
+ versionrequested = 0x0101; /* Version 1.1 */
+ rc = WSAStartup(versionrequested, &wsadata);
+ if (rc) {
+ MessageBox(NULL, "Couldn't initialize Winsock library", "",
+ MB_OK | MB_ICONSTOP);
+ return FALSE;
+ }
+ if (versionrequested != wsadata.wVersion) {
+ WSACleanup();
+ MessageBox(NULL, "Winsock version 1.1 not available", "",
+ MB_OK | MB_ICONSTOP);
+ return FALSE;
+ }
+
lpfnDlgProc = MakeProcInstance(OpenGssapiDlg, hInstance);
DialogBox (hInstance, "OPENGSSAPIDLG", NULL, lpfnDlgProc);
FreeProcInstance(lpfnDlgProc);
+ WSACleanup();
return 0;
}
/*+*************************************************************************
gss ICON gss.ico
-OPENGSSAPIDLG DIALOG 63, 65, 303, 51
+OPENGSSAPIDLG DIALOG 63, 65, 330, 71
STYLE DS_ABSALIGN | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Open GSSAPI Connection"
FONT 8, "MS Sans Serif"
BEGIN
- CONTROL "To Host:", -1, "STATIC", NOT WS_GROUP, 3, 10, 33, 10
- CONTROL "", GSS_CONNECT_NAME, "COMBOBOX", CBS_DROPDOWN | WS_VSCROLL | WS_GROUP | WS_TABSTOP, 42, 9, 256, 60
- CONTROL "Test", GSS_OK, "BUTTON", WS_GROUP | WS_TABSTOP | BS_DEFPUSHBUTTON, 27, 30, 51, 14
- CONTROL "Exit", GSS_CANCEL, "BUTTON", WS_TABSTOP, 97, 30, 51, 14
+ CONTROL "Host Port Service:", -1, "STATIC", NOT WS_GROUP, 5, 10, 60, 10
+ CONTROL "Example: foo 34000 sample@foo.bar.com", -1, "STATIC", NOT WS_GROUP, 70, 25, 256, 10
+ CONTROL "", GSS_CONNECT_NAME, "COMBOBOX", CBS_DROPDOWN | WS_VSCROLL | WS_GROUP | WS_TABSTOP, 70, 9, 256, 60
+ CONTROL "Test", GSS_OK, "BUTTON", WS_GROUP | WS_TABSTOP | BS_DEFPUSHBUTTON, 70, 50, 51, 14
+ CONTROL "Exit", GSS_CANCEL, "BUTTON", WS_TABSTOP, 150, 50, 51, 14
END