TORN@DO presents: cRACKER's n0TES
API Details for Window Geneating


BitBlt
The BitBlt function performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source device context into a destination device context.
    BOOL BitBlt(
      HDC  hdcDest,	                       // handle of destination device context 
      int  nXDest,	                       // x-coord of dest rectangle's upper-left corner
      int  nYDest,	                       // x-coord of dest rectangle's upper-left corner
      int  nWidth,	                       // width of destination rectangle 
      int  nHeight,	                       // height of destination rectangle 
      HDC  hdcSrc,	                       // handle of source device context 
      int  nXSrc,	                       // x-coord of src rectangle's upper-left corner
      int  nYSrc,	                       // y-coord of src rectangle's upper-left corner
      DWORD  dwRop 	                       // raster operation code 
   );
Returns
If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE. To get extended error information, call GetLastError.




CreateWindow
The CreateWindow function creates an overlapped, pop-up, or child window. It specifies the window class, window title, window style, and (optionally) the initial position and size of the window. The function also specifies the window's parent or owner, if any, and the window's menu.
    HWND CreateWindow(
      LPCTSTR  lpClassName,	               // address of registered class name
      LPCTSTR  lpWindowName,	               // address of window name
      DWORD  dwStyle,	                       // window style
      int  x,	                               // horizontal position of window
      int  y,	                               // vertical position of window
      int  nWidth,	                       // window width
      int  nHeight,	                       // window height
      HWND  hWndParent,  	               // handle of parent or owner window
      HMENU  hMenu,	                       // handle of menu or child-window identifier
      HANDLE  hInstance,	               // handle of application instance
      LPVOID  lpParam 	                       // address of window-creation data
     );
Returns
If the function succeeds, the return value is the handle of the new window.

If the function fails, the return value is NULL. To get extended error information, call GetLastError.




CreateWindowExA / CreateWindowExW
The CreateWindowEx function creates an overlapped, pop-up, or child window with an extended style; otherwise, this function is identical to the CreateWindow function.

For more information about creating a window and for full descriptions of the other parameters of CreateWindowEx, see CreateWindow.

     HWND CreateWindowEx(
      DWORD  dwExStyle,	                      // extended window style
      LPCTSTR  lpClassName,	              // address of registered class name
      LPCTSTR  lpWindowName,	              // address of window name
      DWORD  dwStyle,	                      // window style
      int  x,	                              // horizontal position of window
      int  y,	                              // vertical position of window
      int  nWidth,	                      // window width
      int  nHeight,	                      // window height
      HWND  hWndParent, 	              // handle of parent or owner window
      HMENU  hMenu,	                      // handle of menu, or child-window identifier
      HINSTANCE  hInstance,	              // handle of application instance
      LPVOID  lpParam 	                      // address of window-creation data
   );
Returns
If the function succeeds, the return value is the handle of the new window.

If the function fails, the return value is NULL.




SendMessageA / SendMessageW
The SendMessage function sends the specified message to a window or windows. The function calls the window procedure for the specified window and does not return until the window procedure has processed the message. The PostMessage function, in contrast, posts a message to a thread's message queue and returns immediately.
    LRESULT SendMessage(
      HWND  hwnd,	                      // handle of destination window
      UINT  uMsg,	                      // message to send
      WPARAM  wParam,	                      // first message parameter
      LPARAM  lParam 	                      // second message parameter
     );
Returns
The return value specifies the result of the message processing and depends on the message sent.




ShowWindow
The ShowWindow function sets the specified window's show state.
    BOOL ShowWindow(
      HWND  hwnd,	                      // handle of window
      int  nCmdShow 	                      // show state of window
    );
Returns
If the window was previously visible, the return value is TRUE. If the window was previously hidden, the return value is FALSE.




UpdateWindow
The UpdateWindow function updates the client area of the specified window by sending a WM_PAINT message to the window if the window's update region is not empty. The function sends a WM_PAINT message directly to the window procedure of the specified window, bypassing the application queue. If the update region is empty, no message is sent.
    BOOL UpdateWindow(
      HWND  hwnd 	                      // handle of window  
    );
Returns
If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE.





The cRACKER's n0tES are divided into 10 main parts:
 00. INDEX
 01. Assembly for Crackers (CoRN2)
 02. SoftICE (Boot Menu, Setup, Commands)
 03. Breakpoints & Win API Details
        1 Crippled Programs
        2 Dialog Boxes
        3 Drive Type Checks
        4 File Accesses
        5 Registry Accesses
        6 Serial Catching
        7 Time & Date Accesses
        8 Window Generating
 04. Jump Instructions
 05. SET Instructions
 06. Tips & Tricks for Cracking
 07. Window Messages For Crackers
 08. Identifying Functions, Arguments, and Variables (Rhayader)
 09. Commerical Protection Systems
 10. Bitmanipulation (Cruehead)
 11. General Cracking Theory
 12. FAQ

 +A. How to contact me
 +B. What's New?



The cRACKER's n0TES are Copyright © 1998-2000 by TORN@DO of ID. All Rights Reserved. Archived and Re-hosted by Werdstaff