You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.1 KiB
65 lines
1.1 KiB
/*++
|
|
|
|
Copyright (c) 1996-1999 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
intidll.c
|
|
|
|
Abstract:
|
|
|
|
This file handles the DLLInitialize spooler API
|
|
|
|
Environment:
|
|
|
|
Win32 subsystem, DriverUI module, user mode
|
|
|
|
Revision History:
|
|
|
|
07/17/96 -amandan-
|
|
Created it.
|
|
|
|
--*/
|
|
|
|
|
|
#include "gpdparse.h"
|
|
|
|
//
|
|
// Global instance handle and critical section
|
|
//
|
|
|
|
|
|
BOOL
|
|
DllMain(
|
|
HANDLE hModule,
|
|
ULONG ulReason,
|
|
PCONTEXT pContext
|
|
)
|
|
|
|
/*++
|
|
|
|
Routine Description:
|
|
|
|
This function is called when the system loads/unloads the DriverUI module.
|
|
At DLL_PROCESS_ATTACH, InitializeCriticalSection is called to initialize
|
|
the critical section objects.
|
|
At DLL_PROCESS_DETACH, DeleteCriticalSection is called to release the
|
|
critical section objects.
|
|
|
|
Arguments:
|
|
|
|
hModule handle to DLL module
|
|
ulReason reason for the call
|
|
pContext pointer to context (not used by us)
|
|
|
|
|
|
Return Value:
|
|
|
|
TRUE if DLL is initialized successfully, FALSE otherwise.
|
|
|
|
--*/
|
|
|
|
{
|
|
return TRUE;
|
|
}
|
|
|