mIRC PID Dll source

By independentt on Sep 15, 2009

This source will make a dll when compiled that will work with mIRC by using $dll(dll,GetStuPID,$null) identifier in mIRC

#include <windows.h>
#include <stdlib.h>
int __declspec(dllexport) __stdcall GetStuPID(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause)
{
DWORD pid = GetCurrentProcessId();
sprintf(data, "%u", pid);
return 3;
}

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.