• ResMaster.dll 开发是一个DLL,可用于查询和变化的系统显示的模式。 我写了这个DLL使用自动播放媒体工作室4.0,虽然应当可以调用的任何Win32程序编写的C、C++、德尔菲,VB,等等。 你可能想要使用这DLL更改用户的显示设置的,当应用程序的开始和然后设置回来的时退出应用程序的。

    ResMaster.dll 是用C++编写并没有任何外部的依赖关系。 它暴露了三种功能:

    -支GetCurrentDisplayMode()

    返回显示当前所设置的格式的宽度、高度、定每象素占多少位,频率。 例如1024,768,32,75装置1024×768至32bits per pixel75赫兹。 这是一个好主意,以检索和储存这一信息在开始应用程序,以便可以恢复后,或在应用程序退出。

    -支GetAllDisplayModes()

    返回的所有显示的模式支持的主要显示在一个半号delimited string. 例如:

    320,200,8,60;320,200,8,75;320,200,16,60;等等...

    -int SetDisplayMode(int nWidth,int nHeight,int nBPP,int nFreq)

    改变模式显示与指定的价值观。 返回1如果成功,0,如果它失败。 内部功能检查第一次,以确保该模式的支持。 然而,你还是应该做一些检查你自己的。 这是一个好主意,来提示用户,以确保他们想要改变自己的决议显示,即使是暂时的。

  • ResMaster.dll था होना करने के लिए विकसित एक DLL है कि कर सकते हैं इस्तेमाल किया जा करने के लिए क्वेरी और एक प्रणाली के प्रदर्शन मोड । मैं यह लिखा था DLL के साथ उपयोग के लिए ऑटोप्ले मीडिया स्टूडियो 4.0, हालांकि यह होना चाहिए प्रतिदेय से किसी भी Win32 कार्यक्रम में लिखा C, C++, डेल्फी, VB, आदि. तुम चाहते हो सकता है का उपयोग करने के लिए इस DLL बदलने के लिए एक उपयोगकर्ता के प्रदर्शन सेटिंग्स जब अपने आवेदन शुरू होता है, और फिर सेट करने के लिए, यह फिर से वापस जब आवेदन बाहर निकलता है ।

    ResMaster.dll में लिखा गया था, सी++ और नहीं करता है किसी भी बाहरी निर्भरता है । यह तीन कार्यों:

    - LPCTSTR GetCurrentDisplayMode()

    रिटर्न के प्रदर्शन के वर्तमान सेटिंग्स प्रारूप में चौड़ाई,ऊंचाई,BITSPERPIXEL,आवृत्ति. उदाहरण के लिए 1024,768,32,75 मतलब 1024x768 पर 32 बिट्स प्रति पिक्सेल के साथ एक 75 हर्ट्ज. यह एक अच्छा विचार है करने के लिए पुनः प्राप्त करने और दुकान में इस informaiton के शुरू में अपने आवेदन कर सकते हैं ताकि आप इसे बाद में बहाल या जब अपने अनुप्रयोग से बाहर निकालता है ।

    - LPCTSTR GetAllDisplayModes()

    रिटर्न सभी प्रदर्शन मोड द्वारा समर्थित प्राथमिक प्रदर्शन में एक अर्द्ध बृहदान्त्र सीमांकित स्ट्रिंग. उदाहरण के लिए:

    320,200,8,60;320,200,8,75;320,200,16,60;आदि...

    - int SetDisplayMode(पूर्णांक nWidth, पूर्णांक nHeight, पूर्णांक nBPP, पूर्णांक nFreq)

    परिवर्तन प्रदर्शन मोड के साथ specfied मूल्यों. रिटर्न 1 यदि सफल, 0 अगर यह विफल रहता है । आंतरिक रूप से समारोह के पहले जांच करने के लिए सुनिश्चित करें कि मोड का समर्थन किया है । हालाँकि, आप चाहिए अभी भी कुछ की जाँच करता है, अपने स्वयं के. यह एक अच्छा विचार है करने के लिए उपयोगकर्ता का संकेत करने के लिए सुनिश्चित करें कि वे चाहते हैं परिवर्तित करने के लिए प्रदर्शन संकल्प, यहां तक कि अस्थायी रूप से ।

  • ResMaster.dll was developed to be a DLL that can be used to query and change a system's display modes. I wrote this DLL for use with AutoPlay Media Studio 4.0, although it should be callable from any Win32 program written in C, C++, Delphi, VB, etc. You might want to use this DLL to change a user's display settings when your application starts and then to set it back again when the application exits.

    ResMaster.dll was written in C++ and does not have any external dependencies. It exposes three functions:

    - LPCTSTR GetCurrentDisplayMode()

    Returns the display's current settings in the format WIDTH,HEIGHT,BITSPERPIXEL,FREQUENCY. For example 1024,768,32,75 means 1024x768 at 32 bits per pixel with a 75 Hertz. It is a good idea to retrieve and store this informaiton at the start of your application so that you can restore it later or when your application exits.

    - LPCTSTR GetAllDisplayModes()

    Returns all display modes supported by the primary display in a semi-colon delimited string. For example:

    320,200,8,60;320,200,8,75;320,200,16,60;etc...

    - int SetDisplayMode(int nWidth, int nHeight, int nBPP, int nFreq)

    Changes the display mode with the specfied values. Returns 1 if successful, 0 if it fails. Internally the function checks first to make sure that the mode is supported. However, you should still do some checks of your own. It is a good idea to prompt the user to make sure that they want to change their display resolution, even temporarily.