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.
62 lines
1.5 KiB
62 lines
1.5 KiB
/*++
|
|
|
|
Copyright (c) 2001 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
ParseDDE.h
|
|
|
|
Abstract:
|
|
|
|
Helpful routines for parsing DDE commands.
|
|
|
|
Notes:
|
|
|
|
None
|
|
|
|
History:
|
|
|
|
08/14/2001 robkenny Inserted inside the ShimLib namespace.
|
|
|
|
--*/
|
|
|
|
#pragma once
|
|
|
|
|
|
//==============================================================================
|
|
//
|
|
// This code was copied from:
|
|
// \nt\shell\shell32\unicpp\dde.cpp
|
|
//
|
|
//==============================================================================
|
|
#include <dde.h>
|
|
#include <ddeml.h>
|
|
|
|
#include "ShimLib.h"
|
|
|
|
|
|
namespace ShimLib
|
|
{
|
|
|
|
// If this were included in ShimProto.h, we would have to include all kinds of DDE include files
|
|
typedef HDDEDATA (WINAPI *_pfn_DdeClientTransaction)(
|
|
LPBYTE pData, // pointer to data to pass to server
|
|
DWORD cbData, // length of data
|
|
HCONV hConv, // handle to conversation
|
|
HSZ hszItem, // handle to item name string
|
|
UINT wFmt, // clipboard data format
|
|
UINT wType, // transaction type
|
|
DWORD dwTimeout, // time-out duration
|
|
LPDWORD pdwResult // pointer to transaction result
|
|
);
|
|
|
|
|
|
|
|
// Extracts an alphabetic string and looks it up in a list of possible
|
|
// commands, returning a pointer to the character after the command and
|
|
// sticking the command index somewhere.
|
|
UINT* GetDDECommands(LPSTR lpCmd, const char * lpsCommands[], BOOL fLFN);
|
|
void GetGroupPath(LPCSTR pszName, CString & csPath, DWORD dwFlags, INT iCommonGroup);
|
|
|
|
|
|
}; // end of namespace ShimLib
|