View Full Version : Using Ops?
SnackySmores
01-31-2004, 02:09 AM
Hi guys,
How do I use the QCD Op Codes? I tried to understand it from the examples in the PDK, but I need Help on how to use them.
do you guys have any code examples (preferably in Delphi but C/C++ will do)
I am making a QCD plugin for SharpE(a replacement shell www.lowdimension.net)
Thanx
Tokelil
01-31-2004, 02:32 AM
A few exampels:
Set volume of player to 100%:
QCDCallbacks->Service(opSetVolume, NULL, 100, 0);
Get player volume:
long iVolume = QCDCallbacks->Service(opGetVolume, NULL, 0, 0);
I hope that gets you started...
QCD Password Protector 1.0 plug-in has source kode with it (Delphi) (http://www.quinnware.com/list_plugins.php?plugin=56) and my Q.Blog plug-in has the source attached as support file. (C/C++)
plover
01-31-2004, 03:03 AM
Here's a couple of examples with type-safe encapsulations (C++):
HWND getParentWnd()
{
--return reinterpret_cast<HWND>(QCDCallbacks->Service(opGetParentWnd, 0, 0, 0));
}
bool getPluginFolder(char* buf, int bufSize)
{
--return static_cast<bool>(
----QCDCallbacks->Service(opGetPluginFolder, static_cast<void*>(buf), bufSize, 0));
}
Good luck!
SnackySmores
01-31-2004, 01:18 PM
thank you guys, you replied almost instantly.
I started reading the source code of the files you told me to see, gotta a lot of learning to do.
when I finish I'll post the results
cya
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.