WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
 
Forum
Forum Rules Snippets forum rules

In this forum all the registered users may post their snippets of code they whish to share with the WinAsm Studio community following these basic rules:
* Only snippets of code are accepted in the topics of this forum.
* Discussions, suggestions, requests etc. must be posted in the "Discussions" topic.
* Do not post copyrighted material.
Administrators/moderators may edit, move or delete the entries that do not follow the preceding rules.

 

Minimizing open windows, here is my source code how to minimize all open applications with COM

Vortex
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 140
Member No.: 8
Joined: 13-May 04


Here is how to minimize all open applications with COM :

CODE
.386
.model flat,stdcall
option casemap:none

include� � �\masm32\include\windows.inc
include� � �\masm32\include\kernel32.inc
include� � �\masm32\include\ole32.inc
include� � �MinimizeAll.inc

includelib� \masm32\lib\kernel32.lib
includelib� \masm32\lib\ole32.lib

.data

CLSID_Shell� �GUID sCLSID_Shell

IID_IDispatch GUID sIID_IDispatch


.data?

pShell� � � � �dd ?

.code

start:

� � invoke� � � CoInitialize,NULL

� � invoke� � � CoCreateInstance,ADDR CLSID_Shell,NULL,\
� � � � � � � � CLSCTX_INPROC_SERVER,ADDR IID_IDispatch,ADDR pShell� � � � � �

� � coinvoke� � pShell,IShellDispatch,MinimizeAll

� � coinvoke� � pShell,IShellDispatch,Release

� � invoke� � � CoUninitialize
� �
� � invoke� � � ExitProcess,0

END start


Attached File ( Number of downloads: 25 )
 Login or Register to download

Sponsored Links
PMEmail PosterUsers Website
Top
Gunner
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 213
Member No.: 27608
Joined: 11-October 09


Very cool!
PMEmail PosterUsers Website
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topic

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian