Skip to content

Instantly share code, notes, and snippets.

@cosmin
Created March 30, 2009 09:41
Show Gist options
  • Save cosmin/87713 to your computer and use it in GitHub Desktop.
Save cosmin/87713 to your computer and use it in GitHub Desktop.
// Show a hidden Altiris Client Service, worked against older versions.
#include <stdio.h>
#include <windows.h>
int main( void )
{
HWND hWnd;
char szWindowName[] = "Altiris Client Service";
printf( "Finding window %s\n", szWindowName );
hWnd = FindWindow( NULL, szWindowName );
if ( hWnd == NULL )
{
printf( "ERROR! Could not find window %s\n", szWindowName );
exit( 1 );
}
ShowWindow( hWnd, SW_SHOW );
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment