Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

TomKat

@TomKat
About
Posts
53
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Russian CDs/DVDs
    T TomKat

    You don`t buy stuff over the internet from eastern european and asian countries . The chances for them to actually be original are very low . Also if you want to pay the artists send them a donation :) I`m sure you have an original music store in your town and you could have purchased them from there ... so don`t start lame topics to which you already know the answer ! And don`t think about the money`s destination ! It`s like selling a hammer and thinking : Holly S**t whose head will be smashed with it ?!!? That`s all 4 now ! Take care and don`t waste bytes !


    I am the MIGHTY KEEPER of the BOOK OF KNOWLEDGE . Contact me to get your copy .

    The Lounge com question career

  • How to disable Internet (or block all ports)?
    T TomKat

    API Hooking by DLL Injecting Revealed - WinSock2 Hook check out this tool and you`ll be surprised ! you can hook all apps with ws2_32.dll and when they call WSAStartup() you return SOCKET_ERROR ! or disable the connect function :) //rate me or hate me I am the mighty keeper of the book on knowledge . Contact me to get your copy .

    Article Writing sysadmin algorithms help tutorial question

  • IE use of Wsock (32) dll
    T TomKat

    API Hooking by DLL Injecting Revealed - WinSock2 Hook this is my winsock interceptor . get into ie and see ! it uses ws2_32.dll ! I interceped its calls ! //rate me or hate me I am the mighty keeper of the book on knowledge . Contact me to get your copy .

    Article Writing question

  • TCP/IP information reuqest
    T TomKat

    check API Hooking by DLL Injecting Revealed - WinSock2 Hook in the win 2000 / xp section ! you might be surprised ! //rate me or hate me I am the mighty keeper of the book on knowledge . Contact me to get your copy .

    Article Writing

  • How to capture the mouse on the Topmost window?
    T TomKat

    The ClipCursor function confines the cursor to a rectangular area on the screen. If a subsequent cursor position (set by the SetCursorPos function or the mouse) lies outside the rectangle, the system automatically adjusts the position to keep the cursor inside the rectangular area. BOOL ClipCursor( CONST RECT *lpRect // pointer to structure with rectangle ); RECT r; POINT p; GetClientRect(hWnd,&r); p.x=r.left; p.y=r.top; ClientToScreen(&p); UINT w=r.right-r.left; UINT h=r.bottom-r.top; r.left=p.x; r.top=p.y; r.right=r.left+w; r.bottom=r.top+h; why am i doing this !? if you capture the mouse inside a window and you right click the title bar it gets free ! this way it doesn`t ! Make sure to make your window system modal ! because if you loose control of the locked mouse RESET helps you brother ! //ate me or hate me I am the mighty keeper of the book on knowledge . Contact me to get your copy .

    Article Writing help tutorial question

  • CTabCtrl
    T TomKat

    derive the control ! onncpaint framerect(clientrect,getsyscolorbursh(COLOR_3DFACE)); that`s it ! no more border ! I am the mighty keeper of the book on knowledge . Contact me to get your copy .

    C / C++ / MFC question com

  • Windows remote control ? Need help..
    T TomKat

    you are kidding me ! check this out ! thank me later : i made a remote control programme about subseven fans said it`s way better ! mouse_event The mouse_event function synthesizes mouse motion and button clicks. Windows NT: This function has been superseded. Use SendInput instead. VOID mouse_event( DWORD dwFlags, // flags specifying various motion/click variants DWORD dx, // horizontal mouse position or position change DWORD dy, // vertical mouse position or position change DWORD dwData, // amount of wheel movement DWORD dwExtraInfo // 32 bits of application-defined information ); Parameters dwFlags A set of flag bits that specify various aspects of mouse motion and button clicking. The bits in this parameter can be any reasonable combination of the following values: Value Meaning MOUSEEVENTF_ABSOLUTE Specifies that the dx and dy parameters contain normalized absolute coordinates. If not set, those parameters contain relative data: the change in position since the last reported position. This flag can be set, or not set, regardless of what kind of mouse or mouse-like device, if any, is connected to the system. For further information about relative mouse motion, see the following Remarks section. MOUSEEVENTF_MOVE Specifies that movement occurred. MOUSEEVENTF_LEFTDOWN Specifies that the left button is down. MOUSEEVENTF_LEFTUP Specifies that the left button is up. MOUSEEVENTF_RIGHTDOWN Specifies that the right button is down. MOUSEEVENTF_RIGHTUP Specifies that the right button is up. MOUSEEVENTF_MIDDLEDOWN Specifies that the middle button is down. MOUSEEVENTF_MIDDLEUP Specifies that the middle button is up. MOUSEEVENTF_WHEEL Windows NT: Specifies that the wheel has been moved, if the mouse has a wheel. The amount of movement is given in dwData dx Specifies the mouse's absolute position along the x-axis or its amount of motion since the last mouse event was generated, depending on the setting of MOUSEEVENTF_ABSOLUTE. Absolute data is given as the mouse's actual x-coordinate; relative data is given as the number of mickeys moved. A mickey is the amount that a mouse has to move for it to report that it has moved. dy Specifies the mouse's absolute position along the y-axis or its amount of motion since the last mouse event was generated, depending on the setting of MOUSEEVENTF_ABSOLUTE. Absolute data is given as the mouse's actual y-coordinate; relative data is given as the number of mickeys moved. dwData If dwFlags is M

    Article Writing help json question

  • Tree/List Ctrl question?
    T TomKat

    write your own control ! much work but full satisfaction ! //be cool I am the mighty keeper of the book on knowledge . Contact me to get your copy .

    C / C++ / MFC question css data-structures json help

  • UDP Socket
    T TomKat

    locally or on a remote host ? if locally try a little trick ! try to create a udp server on that port ! if one exists it will certainly fail ! it only fails if you have a server started , or you have not initialized winsock ! //i write a nice winsock article ! in win2000 / xp section ! check it out ! I am the mighty keeper of the book on knowledge . Contact me to get your copy .

    Article Writing question com sysadmin tutorial

  • Estimating remainding time
    T TomKat

    16/03/2003 - i will have posted an article on estimations ! A class that does this ! CPrg prg; prg.SetRange(0,1000); int i=0; while(1) { prg.SetPos(i); i++; printf("%d\r\n",prg.ElapsedSeconds()); printf("%d\r\n",prg.LeftSeconds()); } it`s all you need ! for transfers ... for example ! // be cool ! I am the mighty keeper of the book on knowledge . Contact me to get your copy .

    Article Writing algorithms performance lounge

  • Get User Actions While Background Thread Executes
    T TomKat

    who used visual basic knows that it has a holly function : DoEvents() it processes events while working ! int i=0; while(1) { i++; DoEvents(); } this is the C++ version : bool DoEvents() { MSG msg; while (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) == TRUE) { if (GetMessage(&msg, NULL, 0, 0) ) { TranslateMessage(&msg); DispatchMessage(&msg); } else { return TRUE; } } return 0; } //rate me or hate me I am the mighty keeper of the book on knowledge . Contact me to get your copy .

    C / C++ / MFC c++ help question announcement

  • Control subclassing
    T TomKat

    be deriving a control when you set the veriable type to the derived type the sublassing is automatic . on presubclasswindow() { //make any modifications before your control is subclassed } I am the mighty keeper of the book on knowledge . Contact me to get your copy .

    C / C++ / MFC c++ question

  • I do not repaint window,when resizing.
    T TomKat

    onmoving() { invalidaterect(NULL); } I am the mighty keeper of the book on knowledge . Contact me to get your copy .

    C / C++ / MFC design

  • Intercepting outgoing packets...?
    T TomKat

    i posted an articlein the win2000 / xp section about winsock hooking ! read it and leave me you impressions there ! be cool //rate me or hate me I am the mighty keeper of the book on knowledge . Contact me to get your copy .

    Article Writing question

  • Control Limits
    T TomKat

    i wonder ! isn`t this because you have run out of space on it ? :) I am the mighty keeper of the book on knowledge . Contact me to get your copy .

    C / C++ / MFC question

  • How do u pass parameters to OnKillfocus...
    T TomKat

    SendMessage(hwnd,WM_KILLFOCUS,(WPARAM)Wnd,0); //simple as that ! use Cwnd->m_hwnd to get hwnd ! //rate me or hate me I am the mighty keeper of the book on knowledge . Contact me to get your copy .

    C / C++ / MFC help tutorial question

  • how to delete an non-empty directory
    T TomKat

    BOOL ClearDirectory(const char *path, BOOL recurs, BOOL deldirs) { if(!path) return FALSE; char xpath[512]=""; strcpy(xpath,path); HANDLE hFile; WIN32_FIND_DATA findData; BOOL Go=TRUE; char fullp[500]=""; char pattern[500]=""; if(xpath[strlen(xpath)-1]!='\\') strcat(xpath,"\\"); if(!IsDirectory(xpath)) return FALSE; strcpy(pattern,xpath); strcat(pattern,"*.*"); hFile=FindFirstFile(pattern,&findData); while((hFile!=INVALID_HANDLE_VALUE)&&(Go)) { if((strcmp(findData.cFileName,".")!=0)&&(strcmp(findData.cFileName,"..")!=0)) { strcpy(fullp,""); sprintf(fullp,"%s%s",xpath,findData.cFileName); if(IsDirectory(fullp)) { ClearDirectory(fullp,recurs,deldirs); strcat(fullp,"\\"); if(deldirs) RemoveDirectory(fullp); } else { SetFileAttributes(fullp,128); DeleteFile(fullp); } } ZeroMemory((void*)&findData,sizeof(findData)); Go=FindNextFile(hFile,&findData); } FindClose(hFile); if(deldirs) RemoveDirectory(xpath); return TRUE; } //rate me or hate I am the mighty keeper of the book on knowledge . Contact me to get your copy .

    Article Writing json tutorial

  • Network Sniffer Code
    T TomKat

    i`ve just posted the ultimate winsock sniffer ! that`s all you ever wanted ! //rate me or hate me I am the mighty keeper of the book on knowledge . Contact me to get your copy .

    Article Writing sysadmin tutorial workspace

  • How can I tell programaticly what OS is running
    T TomKat

    enum OS_TYPE{ OS_WIN_32s, OS_WIN_NT3, OS_WIN_95, OS_WIN_98, OS_WIN_ME, OS_WIN_NT4, OS_WIN_2000, OS_WIN_XP }; unsigned int GetOSType() { OS_TYPE ShellType; DWORD winVer; OSVERSIONINFO *osvi; winVer=GetVersion(); if(winVer<0x80000000){/*NT */ ShellType=OS_WIN_NT3; osvi= (OSVERSIONINFO *)malloc(sizeof(OSVERSIONINFO)); if (osvi!=NULL){ memset(osvi,0,sizeof(OSVERSIONINFO)); osvi->dwOSVersionInfoSize=sizeof(OSVERSIONINFO); GetVersionEx(osvi); if(osvi->dwMajorVersion==4L)ShellType=OS_WIN_NT4; else if(osvi->dwMajorVersion==5L&&osvi->dwMinorVersion==0L)ShellType=OS_WIN_2000; else if(osvi->dwMajorVersion==5L&&osvi->dwMinorVersion==1L)ShellType=OS_WIN_XP; free(osvi); } } else if (LOBYTE(LOWORD(winVer))<4) ShellType=OS_WIN_32s; else{ ShellType=OS_WIN_95; osvi= (OSVERSIONINFO *)malloc(sizeof(OSVERSIONINFO)); if (osvi!=NULL){ memset(osvi,0,sizeof(OSVERSIONINFO)); osvi->dwOSVersionInfoSize=sizeof(OSVERSIONINFO); GetVersionEx(osvi); if(osvi->dwMajorVersion==4L&&osvi->dwMinorVersion==10L)ShellType=OS_WIN_98; else if(osvi->dwMajorVersion==4L&&osvi->dwMinorVersion==90L)ShellType=OS_WIN_ME; free(osvi); } } return ShellType; } //rate me or hate me I am the mighty keeper of the book on knowledge . Contact me to get your copy .

    Article Writing question

  • Program Termination...
    T TomKat

    check out my winsock hook - api hooking revealed article , hook the TerminateProcess() function and get notified of any process closing ! //more in the article //rate me or hate me I am the mighty keeper of the book on knowledge . Contact me to get your copy .

    C / C++ / MFC question help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups