Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
dcb8273a
Commit
dcb8273a
authored
Apr 24, 1999
by
Juergen Schmied
Committed by
Alexandre Julliard
Apr 24, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made internal format more compatible.
parent
46187022
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
165 additions
and
135 deletions
+165
-135
pidl.c
dlls/shell32/pidl.c
+127
-125
pidl.h
dlls/shell32/pidl.h
+38
-10
No files found.
dlls/shell32/pidl.c
View file @
dcb8273a
This diff is collapsed.
Click to expand it.
dlls/shell32/pidl.h
View file @
dcb8273a
...
@@ -25,22 +25,42 @@
...
@@ -25,22 +25,42 @@
* The structure of the pidl seems to be a union. The first byte of the
* The structure of the pidl seems to be a union. The first byte of the
* PIDLDATA desribes the type of pidl.
* PIDLDATA desribes the type of pidl.
*
*
* first byte - my Computer 0x1F
* object ! first byte ! format ! living space
* control/printer 0x2E
* ----------------------------------------------------------------
* drive 0x23
* my computer 0x1F mycomp (2) (usual)
* folder 0x31
* drive 0x23 drive (usual)
* drive: the second byte is the start of a string
* control/printer 0x2E
* C : \
* drive 0x2F drive (lnk/persistant)
* 43 3A 5C
* folder/file 0x30 folder/file (1) (lnk/persistant)
* file: see the PIDLDATA structure
* folder 0x31 folder (usual)
* value 0x32 file (usual)
* workgroup 0x41 network (3)
* computer 0x42 network (4)
* whole network 0x47 network (5)
* share 0xc3 metwork (6)
*
* guess: the persistant elements are non tracking
*
* (1) dummy byte is used, attributes are empty
* (2) IID_MyComputer = 20D04FE0L-3AEA-1069-A2D8-08002B30309D
* (3) two strings "workgroup" "microsoft network"
* (4) one string "\\sirius"
* (5) one string "whole network"
* (6) one string "\\sirius\c"
*/
*/
#define PT_DESKTOP 0x00
/* internal */
#define PT_DESKTOP 0x00
/* internal */
#define PT_MYCOMP 0x1F
#define PT_MYCOMP 0x1F
#define PT_SPECIAL 0x2E
#define PT_DRIVE 0x23
#define PT_DRIVE 0x23
#define PT_SPECIAL 0x2E
#define PT_DRIVE1 0x2F
#define PT_FOLDER1 0x30
#define PT_FOLDER 0x31
#define PT_FOLDER 0x31
#define PT_VALUE 0x32
#define PT_VALUE 0x32
#define PT_WORKGRP 0x41
#define PT_COMP 0x42
#define PT_NETWORK 0x47
#define PT_SHARE 0xc3
#pragma pack(1)
#pragma pack(1)
typedef
BYTE
PIDLTYPE
;
typedef
BYTE
PIDLTYPE
;
...
@@ -49,6 +69,10 @@ typedef struct tagPIDLDATA
...
@@ -49,6 +69,10 @@ typedef struct tagPIDLDATA
{
PIDLTYPE
type
;
/*00*/
{
PIDLTYPE
type
;
/*00*/
union
union
{
struct
{
struct
{
BYTE
dummy
;
GUID
guid
;
}
mycomp
;
struct
{
CHAR
szDriveName
[
4
];
/*01*/
{
CHAR
szDriveName
[
4
];
/*01*/
/* end of MS compatible*/
/* end of MS compatible*/
DWORD
dwSFGAO
;
/*05*/
DWORD
dwSFGAO
;
/*05*/
...
@@ -64,6 +88,10 @@ typedef struct tagPIDLDATA
...
@@ -64,6 +88,10 @@ typedef struct tagPIDLDATA
/* Here are comming two strings. The first is the long name.
/* Here are comming two strings. The first is the long name.
The second the dos name when needed or just 0x00 */
The second the dos name when needed or just 0x00 */
}
file
,
folder
,
generic
;
}
file
,
folder
,
generic
;
struct
{
WORD
dummy
;
/*01*/
CHAR
szNames
[
1
];
/*03*/
}
network
;
}
u
;
}
u
;
}
PIDLDATA
,
*
LPPIDLDATA
;
}
PIDLDATA
,
*
LPPIDLDATA
;
#pragma pack(4)
#pragma pack(4)
...
@@ -111,7 +139,7 @@ LPITEMIDLIST WINAPI _ILCreateValue(LPCSTR, LPCSTR);
...
@@ -111,7 +139,7 @@ LPITEMIDLIST WINAPI _ILCreateValue(LPCSTR, LPCSTR);
* data is binary / sizes are bytes
* data is binary / sizes are bytes
*/
*/
DWORD
WINAPI
_ILGetData
(
PIDLTYPE
,
LPCITEMIDLIST
,
LPVOID
,
UINT
);
DWORD
WINAPI
_ILGetData
(
PIDLTYPE
,
LPCITEMIDLIST
,
LPVOID
,
UINT
);
LPITEMIDLIST
WINAPI
_ILCreate
(
PIDLTYPE
,
LPVOID
,
UINT16
);
LPITEMIDLIST
WINAPI
_ILCreate
(
PIDLTYPE
,
LP
C
VOID
,
UINT16
);
/*
/*
* helper functions (getting struct-pointer)
* helper functions (getting struct-pointer)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment