---
name: "CryptSIPRetrieveSubjectGuid"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/CryptSIPRetrieveSubjectGuid"
---

# CryptSIPRetrieveSubjectGuid(3w)

## NAME

**CryptSIPRetrieveSubjectGuid** (CRYPT32.@)

## SYNOPSIS

BOOL CryptSIPRetrieveSubjectGuid\
  (\
   LPCWSTR *FileName*,\
   HANDLE  *hFileIn*,\
   GUID\*   *pgSubject*\
  )

## DESCRIPTION

Determine the right **SIP** GUID for the given file.

## PARAMS

*FileName* **\[In\]**  Filename.

*hFileIn* **\[In\]**  Optional handle to the file.

*pgSubject* **\[Out\]**  The **SIP**'s **GUID**.

## RETURNS

**Success:** **TRUE**. *pgSubject* contains the **SIP** GUID.

**Failure:** **FALSE**. (Look at **[GetLastError(3w)](/GetLastError/3w.md)**).

## NOTES

On failure *pgSubject* will contain a **NULL** GUID. The handle is always preferred above the filename.

## IMPLEMENTATION

Declared in **"mssip.h"**.

Implemented in **"dlls/crypt32/sip.c"**.

Debug channel **"crypt"**.
