Source code of Windows XP (NT5)
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.

41 lines
922 B

  1. #include <windows.h>
  2. #include <tapi.h>
  3. #include <faxdev.h>
  4. int __cdecl wmain( int argc, LPWSTR argv[])
  5. {
  6. HPROPSHEETPAGE hPropSheet;
  7. PFAXDEVCONFIGURE pFaxDevConfigure;
  8. HMODULE hMod;
  9. PROPSHEETHEADER psh;
  10. InitCommonControls();
  11. hMod = LoadLibrary( L"obj\\i386\\netcntrc.dll");
  12. if (!hMod) {
  13. return -1;
  14. }
  15. pFaxDevConfigure = (PFAXDEVCONFIGURE) GetProcAddress( hMod, "FaxDevConfigure" );
  16. if (!pFaxDevConfigure) {
  17. return -1;
  18. }
  19. if (!pFaxDevConfigure( &hPropSheet )) {
  20. return -1;
  21. }
  22. psh.dwSize = sizeof(PROPSHEETHEADER);
  23. psh.dwFlags = 0;
  24. psh.hwndParent = NULL;
  25. psh.hInstance = GetModuleHandle( NULL );
  26. psh.pszIcon = NULL;
  27. psh.pszCaption = TEXT("NetCentric Internet Fax Configuration");
  28. psh.nPages = 1;
  29. psh.nStartPage = 0;
  30. psh.phpage = &hPropSheet;
  31. psh.pfnCallback = NULL;
  32. return PropertySheet( &psh );
  33. }