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.

83 lines
1.8 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: dllmain.cpp
  8. //
  9. //--------------------------------------------------------------------------
  10. //+-------------------------------------------------------------------------
  11. // Function: DllRegisterServer
  12. //
  13. // Synopsis: Add registry entries for this library.
  14. //
  15. // Returns: HRESULT
  16. //--------------------------------------------------------------------------
  17. #include "global.hxx"
  18. HINSTANCE hInstance = NULL;
  19. /*extern HRESULT WINAPI SpcASNRegisterServer(LPCWSTR dllName);
  20. extern HRESULT WINAPI SpcASNUnregisterServer();
  21. extern HRESULT WINAPI OidASNRegisterServer(LPCWSTR pszDllName);
  22. extern HRESULT WINAPI OidASNUnregisterServer(void);
  23. extern BOOL AttributeInit(HMODULE hInst); */
  24. STDAPI DllRegisterServer ( void )
  25. {
  26. HRESULT hr = S_OK;
  27. return hr;
  28. }
  29. //+-------------------------------------------------------------------------
  30. // Function: DllUnregisterServer
  31. //
  32. // Synopsis: Remove registry entries for this library.
  33. //
  34. // Returns: HRESULT
  35. //--------------------------------------------------------------------------
  36. STDAPI DllUnregisterServer ( void )
  37. {
  38. HRESULT hr = S_OK;
  39. return hr;
  40. }
  41. BOOL WINAPI DllMain(
  42. HMODULE hInstDLL,
  43. DWORD fdwReason,
  44. LPVOID lpvReserved)
  45. {
  46. if (fdwReason == DLL_PROCESS_ATTACH)
  47. {
  48. DisableThreadLibraryCalls((HINSTANCE)hInstDLL);
  49. hInstance = (HINSTANCE)hInstDLL;
  50. }
  51. return(TRUE);
  52. }
  53. HINSTANCE GetInstanceHandle()
  54. {
  55. return hInstance;
  56. }
  57. /*
  58. #if !DBG
  59. int _cdecl main(int argc, char * argv[])
  60. {
  61. return 0;
  62. }
  63. #endif
  64. */