Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
928 B

  1. #include <nt.h>
  2. #include <ntrtl.h>
  3. #include <nturtl.h>
  4. #include <windows.h>
  5. #include <winsock2.h>
  6. #include <wsipx.h>
  7. #include <svcguid.h>
  8. #include <stdio.h>
  9. #include <stdlib.h>
  10. #include <rpc.h>
  11. #include <rpcdce.h>
  12. GUID ServiceClassId = { /* 5b50962a-e5a5-11cf-a555-00c04fd8d4ac */
  13. 0x5b50962a,
  14. 0xe5a5,
  15. 0x11cf,
  16. {0xa5, 0x55, 0x00, 0xc0, 0x4f, 0xd8, 0xd4, 0xac}
  17. };
  18. _cdecl
  19. main(int argc, char **argv)
  20. {
  21. DWORD ret;
  22. WSADATA wsaData;
  23. WSAStartup( MAKEWORD(1, 1), &wsaData );
  24. ret = WSARemoveServiceClass( &ServiceClassId );
  25. if ( ret )
  26. {
  27. printf("Error: WSARemoveServiceClass returned 0x%X\n", ret );
  28. printf(" GetLastError returned 0x%X\n", GetLastError() );
  29. WSACleanup();
  30. return -1;
  31. }
  32. printf( "Service class was removed\n" );
  33. WSACleanup();
  34. return(0);
  35. }