Changeset 21552
- Timestamp:
- Jan 11, 2011, 12:12:11 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
include/win/winsock2.h (modified) (3 diffs)
-
src/ws2_32/socket.cpp (modified) (1 diff)
-
src/ws2_32/ws2_32.def (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win/winsock2.h
r21456 r21552 306 306 unsigned int PeakBandwidth; 307 307 unsigned int Latency; 308 unsigned int DelayVariation;308 unsigned int DelayVariation; 309 309 SERVICETYPE ServiceType; 310 310 unsigned int MaxSduSize; … … 338 338 ); 339 339 340 #ifndef _tagBLOB_DEFINED 341 #define _tagBLOB_DEFINED 342 #define _BLOB_DEFINED 343 #define _LPBLOB_DEFINED 344 typedef struct _BLOB { 345 ULONG cbSize; 346 BYTE *pBlobData; 347 } BLOB, *LPBLOB; 348 #endif 349 350 #ifndef __CSADDR_DEFINED__ 351 #define __CSADDR_DEFINED__ 352 353 typedef struct _SOCKET_ADDRESS { 354 LPSOCKADDR lpSockaddr; 355 INT iSockaddrLength; 356 } SOCKET_ADDRESS, *PSOCKET_ADDRESS, *LPSOCKET_ADDRESS; 357 358 typedef struct _CSADDR_INFO { 359 SOCKET_ADDRESS LocalAddr; 360 SOCKET_ADDRESS RemoteAddr; 361 INT iSocketType; 362 INT iProtocol; 363 } CSADDR_INFO, *PCSADDR_INFO, *LPCSADDR_INFO; 364 #endif 365 366 /*socket address list */ 367 typedef struct _SOCKET_ADDRESS_LIST { 368 INT iAddressCount; 369 SOCKET_ADDRESS Address[1]; 370 } SOCKET_ADDRESS_LIST, *LPSOCKET_ADDRESS_LIST; 371 372 /* addressfamily protocol pairs */ 373 typedef struct _AFPROTOCOLS { 374 INT iAddressFamily; 375 INT iProtocol; 376 } AFPROTOCOLS, *PAFPROTOCOLS, *LPAFPROTOCOLS; 377 378 /* client query definitions */ 379 typedef enum _WSAEcomparator { 380 COMP_EQUAL = 0, 381 COMP_NOTLESS 382 } WSAECOMPARATOR, *PWSAECOMPARATOR, *LPWSAECOMPARATOR; 383 384 typedef struct _WSAVersion { 385 DWORD dwVersion; 386 WSAECOMPARATOR ecHow; 387 } WSAVERSION, *PWSAVERSION, *LPWSAVERSION; 388 389 390 typedef struct _WSAQuerySetA { 391 DWORD dwSize; 392 LPSTR lpszServiceInstanceName; 393 LPGUID lpServiceClassId; 394 LPWSAVERSION lpVersion; 395 LPSTR lpszComment; 396 DWORD dwNameSpace; 397 LPGUID lpNSProviderId; 398 LPSTR lpszContext; 399 DWORD dwNumberOfProtocols; 400 LPAFPROTOCOLS lpafpProtocols; 401 LPSTR lpszQueryString; 402 DWORD dwNumberOfCsAddrs; 403 LPCSADDR_INFO lpcsaBuffer; 404 DWORD dwOutputFlags; 405 LPBLOB lpBlob; 406 } WSAQUERYSETA, *PWSAQUERYSETA, *LPWSAQUERYSETA; 407 408 typedef struct _WSAQuerySetW { 409 DWORD dwSize; 410 LPWSTR lpszServiceInstanceName; 411 LPGUID lpServiceClassId; 412 LPWSAVERSION lpVersion; 413 LPWSTR lpszComment; 414 DWORD dwNameSpace; 415 LPGUID lpNSProviderId; 416 LPWSTR lpszContext; 417 DWORD dwNumberOfProtocols; 418 LPAFPROTOCOLS lpafpProtocols; 419 LPWSTR lpszQueryString; 420 DWORD dwNumberOfCsAddrs; 421 LPCSADDR_INFO lpcsaBuffer; 422 DWORD dwOutputFlags; 423 LPBLOB lpBlob; 424 } WSAQUERYSETW, *PWSAQUERYSETW, *LPWSAQUERYSETW; 425 426 DECL_WINELIB_TYPE_AW(WSAQUERYSET) 427 DECL_WINELIB_TYPE_AW(PWSAQUERYSET) 428 DECL_WINELIB_TYPE_AW(LPWSAQUERYSET) 340 429 341 430 /* Function declarations */ … … 369 458 LPINT lpFromlen, LPWSAOVERLAPPED lpOverlapped, 370 459 LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine); 460 INT WINAPI WSALookupServiceBeginA( LPWSAQUERYSETA, DWORD, LPHANDLE); 461 INT WINAPI WSALookupServiceBeginW( LPWSAQUERYSETW, DWORD, LPHANDLE); 462 #define WSALookupServiceBegin WINELIB_NAME_AW(WSALookupServiceBegin) 371 463 372 464 extern INT WINAPI ioctlsocket(SOCKET s, LONG cmd, ULONG *argp); -
trunk/src/ws2_32/socket.cpp
r21420 r21552 325 325 return 0; 326 326 } 327 328 /*********************************************************************** 329 * WSALookupServiceBeginA (WS2_32.59) 330 */ 331 INT WINAPI WSALookupServiceBeginA( LPWSAQUERYSETA lpqsRestrictions, 332 DWORD dwControlFlags, 333 LPHANDLE lphLookup) 334 { 335 FIXME("(%p 0x%08lx %p) Stub!\n", lpqsRestrictions, dwControlFlags, 336 lphLookup); 337 WSASetLastError(WSA_NOT_ENOUGH_MEMORY); 338 return SOCKET_ERROR; 339 } 340 341 /*********************************************************************** 342 * WSALookupServiceBeginW (WS2_32.60) 343 */ 344 INT WINAPI WSALookupServiceBeginW( LPWSAQUERYSETW lpqsRestrictions, 345 DWORD dwControlFlags, 346 LPHANDLE lphLookup) 347 { 348 FIXME("(%p 0x%08lx %p) Stub!\n", lpqsRestrictions, dwControlFlags, 349 lphLookup); 350 WSASetLastError(WSA_NOT_ENOUGH_MEMORY); 351 return SOCKET_ERROR; 352 } -
trunk/src/ws2_32/ws2_32.def
r21322 r21552 81 81 82 82 ; WSAJoinLeaf @58 83 ; WSALookupServiceBeginA@5984 ; WSALookupServiceBeginW@6083 WSALookupServiceBeginA = _WSALookupServiceBeginA@12 @59 84 WSALookupServiceBeginW = _WSALookupServiceBeginW@12 @60 85 85 ; WSALookupServiceEnd @61 86 86 ; WSALookupServiceNextA @62
Note:
See TracChangeset
for help on using the changeset viewer.
